export config file hash in a metric (#3768)
Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
This commit is contained in:
parent
1766568398
commit
1dba31ee7d
4 changed files with 19 additions and 3 deletions
|
@ -14,4 +14,11 @@ var (
|
|||
Name: "failed_count_total",
|
||||
Help: "Counter of the number of failed reload attempts.",
|
||||
})
|
||||
|
||||
reloadInfo = prometheus.NewGaugeVec(prometheus.GaugeOpts{
|
||||
Namespace: plugin.Namespace,
|
||||
Subsystem: "reload",
|
||||
Name: "version_info",
|
||||
Help: "A metric with a constant '1' value labeled by hash, and value which type of hash generated.",
|
||||
}, []string{"hash", "value"})
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue