Skip to content

Commit

Permalink
fix: Add missing tenant label to some loki_write metrics
Browse files Browse the repository at this point in the history
Re-add missing files
  • Loading branch information
towolf committed Dec 18, 2024
1 parent d8ba009 commit f9367e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/component/common/loki/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ func NewMetrics(reg prometheus.Registerer) *Metrics {
m.encodedBytes = prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "loki_write_encoded_bytes_total",
Help: "Number of bytes encoded and ready to send.",
}, []string{HostLabel})
}, []string{HostLabel, TenantLabel})
m.sentBytes = prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "loki_write_sent_bytes_total",
Help: "Number of bytes sent.",
}, []string{HostLabel})
}, []string{HostLabel, TenantLabel})
m.droppedBytes = prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "loki_write_dropped_bytes_total",
Help: "Number of bytes dropped because failed to be sent to the ingester after all retries.",
}, []string{HostLabel, TenantLabel, ReasonLabel})
m.sentEntries = prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "loki_write_sent_entries_total",
Help: "Number of log entries sent to the ingester.",
}, []string{HostLabel})
}, []string{HostLabel, TenantLabel})
m.droppedEntries = prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "loki_write_dropped_entries_total",
Help: "Number of log entries dropped because failed to be sent to the ingester after all retries.",
Expand Down

0 comments on commit f9367e0

Please sign in to comment.