Debian Codegraph @

internal/metrics/info.go

raw symbols SCIP
1 package metricsscip-go gomod github.com/xperimental/nextcloud-exporter . `github.com/xperimental/nextcloud-exporter/internal/metrics`/
2
3 import (
4 "github.com/prometheus/client_golang/prometheusscip-go gomod github.com/prometheus/client_golang v1.20.5 `github.com/prometheus/client_golang/prometheus`/"
5 )
6
7 func RegisterInfoMetricscip-go gomod github.com/xperimental/nextcloud-exporter . `github.com/xperimental/nextcloud-exporter/internal/metrics`/RegisterInfoMetric().(version, gitCommit string) error {
8 infoMetric := prometheusscip-go gomod github.com/prometheus/client_golang v1.20.5 `github.com/prometheus/client_golang/prometheus`/.NewGaugescip-go gomod github.com/prometheus/client_golang v1.20.5 `github.com/prometheus/client_golang/prometheus`/NewGauge().(prometheusscip-go gomod github.com/prometheus/client_golang v1.20.5 `github.com/prometheus/client_golang/prometheus`/.GaugeOptsscip-go gomod github.com/prometheus/client_golang v1.20.5 `github.com/prometheus/client_golang/prometheus`/GaugeOpts#{
9 Namescip-go gomod github.com/prometheus/client_golang v1.20.5 `github.com/prometheus/client_golang/prometheus`/CounterOpts#Name.: metricPrefixscip-go gomod github.com/xperimental/nextcloud-exporter . `github.com/xperimental/nextcloud-exporter/internal/metrics`/metricPrefix. + "exporter_info",
10 Helpscip-go gomod github.com/prometheus/client_golang v1.20.5 `github.com/prometheus/client_golang/prometheus`/CounterOpts#Help.: "Information about the nextcloud-exporter.",
11 ConstLabelsscip-go gomod github.com/prometheus/client_golang v1.20.5 `github.com/prometheus/client_golang/prometheus`/CounterOpts#ConstLabels.: prometheusscip-go gomod github.com/prometheus/client_golang v1.20.5 `github.com/prometheus/client_golang/prometheus`/.Labelsscip-go gomod github.com/prometheus/client_golang v1.20.5 `github.com/prometheus/client_golang/prometheus`/Labels#{
12 "version": version,
13 "commit": gitCommit,
14 },
15 })
16 infoMetric.Setscip-go gomod github.com/prometheus/client_golang v1.20.5 `github.com/prometheus/client_golang/prometheus`/Gauge#Set().(1)
17
18 return prometheusscip-go gomod github.com/prometheus/client_golang v1.20.5 `github.com/prometheus/client_golang/prometheus`/.Registerscip-go gomod github.com/prometheus/client_golang v1.20.5 `github.com/prometheus/client_golang/prometheus`/Register().(infoMetric)
19 }