Merge pull request #13447 from ptodev/update-puppetdb-metric-label

Change metric label for Puppet SD from 'http' to 'puppetdb'
This commit is contained in:
Julien Pivotto 2024-01-26 15:40:15 +01:00 committed by GitHub
commit 960b6266e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ func NewDiscovery(conf *SDConfig, logger log.Logger, metrics discovery.Discovere
d.Discovery = refresh.NewDiscovery(
refresh.Options{
Logger: logger,
Mech: "http",
Mech: "puppetdb",
Interval: time.Duration(conf.RefreshInterval),
RefreshF: d.refresh,
MetricsInstantiator: m.refreshMetrics,