fix dcgm exporter discovery (#21800)
* fix dcgm exporter discovery * q * fix service match
Ilya Mashchenko committed
Feb 21, 2026 at 23:16 UTC
4bd1ef5f0610f51194fa1dd7e10c9016c909e645
2 files changed
+15
-6
src/go/plugin/go.d/config/go.d/dcgm.conf
+6
-6
@@ -1,9 +1,9 @@
1
## All available configuration options, their descriptions and default values:
2
## https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/collector/dcgm#readme
3
4
-jobs:
5
- - name: local
6
- url: http://127.0.0.1:9400/metrics
7
- update_every: 30
8
- # Keep update_every aligned with dcgm-exporter collection interval.
9
- # If you change one side, update the other side too.
4
+#jobs:
5
+# - name: local
6
+# url: http://127.0.0.1:9400/metrics
7
+# update_every: 30
8
+# ## Keep update_every aligned with dcgm-exporter collection interval.
9
+# ## If you change one side, update the other side too.
src/go/plugin/go.d/config/go.d/sd/net_listeners.conf
+9
@@ -99,6 +99,13 @@ services:
99
url: http://{{.Address}}
100
node: '_local'
101
102
+ - id: "dcgm"
103
+ match: '{{ eq .Comm "dcgm-exporter" }}'
104
+ config_template: |
105
+ name: local
106
+ update_every: 30
107
+ url: http://{{.Address}}/metrics
108
+
109
- id: "dnsdist"
110
match: '{{ and (eq .Port "8083") (eq .Comm "dnsdist") }}'
111
config_template: |
@@ -525,6 +532,8 @@ services:
532
expected_prefix: 'django_'
533
{{ else if eq $name "traefik" -}}
534
expected_prefix: 'traefik_'
535
+ {{ else if eq $name "ripe_atlas_exporter" -}}
536
+ expected_prefix: 'atlas_'
537
{{ else if eq $name "pushgateway" -}}
538
expected_prefix: 'pushgateway_'
539
selector: