From 4363795a627e9d850df118c6592d38ae99d41dd0 Mon Sep 17 00:00:00 2001 From: Nicolas Lamirault Date: Fri, 2 Feb 2024 16:13:21 +0100 Subject: [PATCH] [prometheus-nats-exporter] Support connz_detailed and accstatz metrics (#4212) * Add: support connz_detailed metrics Signed-off-by: Nicolas Lamirault * Add: support accstatz metrics Signed-off-by: Nicolas Lamirault --------- Signed-off-by: Nicolas Lamirault --- charts/prometheus-nats-exporter/Chart.yaml | 2 +- charts/prometheus-nats-exporter/templates/deployment.yaml | 6 ++++++ charts/prometheus-nats-exporter/values.yaml | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/prometheus-nats-exporter/Chart.yaml b/charts/prometheus-nats-exporter/Chart.yaml index 48a677ad5a06..c794bd295fe4 100644 --- a/charts/prometheus-nats-exporter/Chart.yaml +++ b/charts/prometheus-nats-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 0.14.0 description: A Helm chart for prometheus-nats-exporter name: prometheus-nats-exporter -version: 2.15.0 +version: 2.16.0 home: https://github.com/nats-io/prometheus-nats-exporter sources: - https://github.com/nats-io/prometheus-nats-exporter diff --git a/charts/prometheus-nats-exporter/templates/deployment.yaml b/charts/prometheus-nats-exporter/templates/deployment.yaml index 45daa106df86..83822a53091c 100644 --- a/charts/prometheus-nats-exporter/templates/deployment.yaml +++ b/charts/prometheus-nats-exporter/templates/deployment.yaml @@ -31,12 +31,18 @@ spec: {{- if .Values.config.metrics.varz }} - "-varz" {{- end }} + {{- if .Values.config.metrics.accstatz }} + - "-accstatz" + {{- end }} {{- if .Values.config.metrics.channelz }} - "-channelz" {{- end }} {{- if .Values.config.metrics.connz }} - "-connz" {{- end }} + {{- if .Values.config.metrics.connz_detailed }} + - "-connz_detailed" + {{- end }} {{- if .Values.config.metrics.routez }} - "-routez" {{- end }} diff --git a/charts/prometheus-nats-exporter/values.yaml b/charts/prometheus-nats-exporter/values.yaml index d47b27ae5bb7..202b66473172 100644 --- a/charts/prometheus-nats-exporter/values.yaml +++ b/charts/prometheus-nats-exporter/values.yaml @@ -43,8 +43,10 @@ config: namespace: default port: 8222 metrics: + accstatz: true channelz: true connz: true + connz_detailed: true jsz: true gatewayz: true leafz: true