Skip to content

Commit

Permalink
batchRetries to countersWithHost (grafana#7392)
Browse files Browse the repository at this point in the history
**What this PR does / why we need it**:
Metric promtail_batch_retries_total is absent when has value == 0

**Which issue(s) this PR fixes**:
Fixes grafana#7261
  • Loading branch information
gelo22 authored Nov 8, 2022
1 parent 6848ea3 commit 8b89343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/pkg/promtail/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func NewMetrics(reg prometheus.Registerer, streamLagLabels []string) *Metrics {
}, []string{HostLabel})

m.countersWithHost = []*prometheus.CounterVec{
m.encodedBytes, m.sentBytes, m.droppedBytes, m.sentEntries, m.droppedEntries,
m.encodedBytes, m.sentBytes, m.droppedBytes, m.sentEntries, m.droppedEntries, m.batchRetries,
}

streamLagLabelsMerged := []string{HostLabel, ClientLabel}
Expand Down

0 comments on commit 8b89343

Please sign in to comment.