prometheus: Implement mgmt_checkapply_total metric

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
Julien Pivotto
2017-02-12 21:24:58 +01:00
parent bdb8368e89
commit e8855f7621
6 changed files with 113 additions and 22 deletions

View File

@@ -438,9 +438,10 @@ func (obj *Main) Run() error {
newGraph.Flags = pgraph.Flags{Debug: obj.Flags.Debug}
// pass in the information we need
newGraph.AssociateData(&resources.Data{
Converger: converger,
Prefix: pgraphPrefix,
Debug: obj.Flags.Debug,
Converger: converger,
Prometheus: prom,
Prefix: pgraphPrefix,
Debug: obj.Flags.Debug,
})
// apply the global noop parameter if requested