summaryrefslogtreecommitdiff
path: root/service/metrics/config.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-10 17:12:11 +0300
committerValery Piashchynski <[email protected]>2020-02-10 17:12:11 +0300
commit04f8180bae119d0aa9be53db52165d3391a58efa (patch)
treec556ac35977a4bd2e80a4b28be46cca264ff96a3 /service/metrics/config.go
parent02be3eec1d8323a16031e86c1ddcc5c52c440176 (diff)
Update go.mod/go.sum
New Register method
Diffstat (limited to 'service/metrics/config.go')
-rw-r--r--service/metrics/config.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/service/metrics/config.go b/service/metrics/config.go
index c2f85201..341d0c70 100644
--- a/service/metrics/config.go
+++ b/service/metrics/config.go
@@ -15,6 +15,14 @@ type Config struct {
Collect map[string]Collector
}
+type NamedCollector struct {
+ // Name of the collector
+ Name string
+
+ // Collector structure
+ Collector
+}
+
// Collector describes single application specific metric.
type Collector struct {
// Namespace of the metric.