We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0bd044 commit db58823Copy full SHA for db58823
prometheus.go
@@ -43,12 +43,20 @@ var hepFileFlushesError = prometheus.NewCounter(
43
},
44
)
45
46
+var clientLastMetricTimestamp = prometheus.NewGauge(
47
+ prometheus.GaugeOpts{
48
+ Name: "hfp_client_in_last_metric_timestamp",
49
+ Help: "Inbound client's last metric arrival",
50
+ },
51
+)
52
+
53
func startMetrics(wg *sync.WaitGroup) {
54
prometheus.MustRegister(connectedClients)
55
prometheus.MustRegister(connectionStatus)
56
prometheus.MustRegister(hepBytesInFile)
57
prometheus.MustRegister(hepFileFlushesSuccess)
58
prometheus.MustRegister(hepFileFlushesError)
59
+ prometheus.MustRegister(clientLastMetricTimestamp)
60
61
http.Handle("/metrics", promhttp.Handler())
62
http.ListenAndServe(":"+*PrometheusPort, nil)
0 commit comments