mirror of
https://github.com/hikhvar/mqtt2prometheus.git
synced 2026-02-14 18:09:53 +00:00
Rename received_messages metric to be more conventional
This patch renames the ``received_messages`` metric to ``mqtt2prometheus_received_messages_total``, making it a bit more in line with conventional Prometheus metric naming. I also slightly adjusted the descriptions.
This commit is contained in:
@@ -13,14 +13,14 @@ const (
|
|||||||
var defaultInstrumentation = instrumentation{
|
var defaultInstrumentation = instrumentation{
|
||||||
messageMetric: prometheus.NewCounterVec(
|
messageMetric: prometheus.NewCounterVec(
|
||||||
prometheus.CounterOpts{
|
prometheus.CounterOpts{
|
||||||
Name: "received_messages",
|
Name: "mqtt2prometheus_received_messages_total",
|
||||||
Help: "received messages per topic and status",
|
Help: "Total number of messages received per topic and status",
|
||||||
}, []string{"status", "topic"},
|
}, []string{"status", "topic"},
|
||||||
),
|
),
|
||||||
connectedMetric: prometheus.NewGauge(
|
connectedMetric: prometheus.NewGauge(
|
||||||
prometheus.GaugeOpts{
|
prometheus.GaugeOpts{
|
||||||
Name: "mqtt2prometheus_connected",
|
Name: "mqtt2prometheus_connected",
|
||||||
Help: "is the mqtt2prometheus exporter connected to the broker",
|
Help: "Whether the mqtt2prometheus exporter is connected to the broker",
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user