aboutsummaryrefslogtreecommitdiff
path: root/plugin/autopath/metrics.go (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-07-25using promauto package to ensure all created metrics are properly registered ↵Gravatar Zou Nengren 1-1/+2
(#4025) Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
2020-03-31introduce metric naming test (#3789)Gravatar Zou Nengren 1-0/+1
* introduce metric naming test Signed-off-by: zounengren <zounengren@cmss.chinamobile.com> * Update metrics.go Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
2020-03-26Cleanup metrics (#3776)Gravatar Miek Gieben 1-1/+1
Cleanup a variety of metric issues. * Eliminate department of redundancy "count_total" naming. * Use the plural of the unit when appropriate. (ex, "requests") * Remove label names from metric names where appropriate. (ex, "rcode") * Simplify request metrics by consolidating type label in to the base request counter. * Re-generate man pages. Signed-off-by: Ben Kochie <superq@gmail.com> Co-authored-by: Ben Kochie <superq@gmail.com>
2018-09-19Ensure Re-register of metrics variables after a reload (#2080)Gravatar Francois Tur 1-4/+0
* - ensure plugins that use prometheus.MustRegister, re-register after reload - removing once.Do on the startup function was simplest way to do it. * - fix underscored names (advice of bot) * - tune existing UT for reload, and add a test verifying failing reload does not prevent correct registering for metrics * - ensure different ports for tests that can run in same time ..
2018-04-25plugin/autopath: per server metrics (#1730)Gravatar Miek Gieben 1-3/+2
Implement per server metrics in autopath; also don't export the metric. Updated readme as well.
2017-12-27metrics: correctly register all metrics (#1335)Gravatar Miek Gieben 1-9/+1
After initial startup, see if prometheus is loaded and if so, register our metrics with it. Stop doing the init() func and just use the sync.Once so we don't double registrer our metrics.
2017-10-15plugin/autopath: Add metrics and remove log line (#1143)Gravatar Miek Gieben 1-0/+29
* plugin/autopath: Add namespace selector and metrics Add a namespace, so autopathing only is performed in this namespace. This will make caching work for the cluster again. Also export metrics that we've done a successful autopath * dont shadow * Fix * Back the namespacing changes