Skip to content

Commit

Permalink
[PLAT-15181] Fix code to make volume metrics visible
Browse files Browse the repository at this point in the history
Summary: [PLAT-15181] Fix code to make volume metrics visible

Test Plan:
{F283021}

{F283020}

{F283019}

{F283022}

manually deployed YBA to reproduce the issue,
then updated the chart with the fix.
screenshots attached

Reviewers: sneelakantan, vkumar, sanketh

Reviewed By: sneelakantan

Subscribers: yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D37870
  • Loading branch information
amannijhawan committed Sep 9, 2024
1 parent b33c394 commit 5e6e0ee
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions stable/yugaware/templates/configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -499,10 +499,6 @@ data:
target_label: __metrics_path__
replacement: /api/v1/nodes/${1}/proxy/metrics
metric_relabel_configs:
# Keep all metrics that match our pod names
- source_labels: ["pod"]
regex: "(.*)-yb-(.*)"
action: keep
- source_labels: ["__name__"]
regex: "kubelet_volume_stats_used_bytes|kubelet_volume_stats_capacity_bytes"
action: keep
Expand Down Expand Up @@ -600,9 +596,9 @@ data:

{{- end }}
{{- end }}

{{- if and (not .Values.useNginxProxy) (.Values.tls.enabled) }}

- job_name: 'platform'
metrics_path: "/api/v1/prometheus_metrics"
scheme: https
Expand All @@ -627,7 +623,7 @@ data:


{{- if .Values.prometheus.selfMonitor }}

- job_name: 'prometheus'
metrics_path: "/metrics"
static_configs:
Expand Down

0 comments on commit 5e6e0ee

Please sign in to comment.