Skip to content

Commit

Permalink
add metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
anton.voskresensky committed Sep 4, 2024
1 parent 9bff5eb commit 9516276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/cluster-settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (c *ClusterSettingsCollector) Collect(ch chan<- prometheus.Metric) {
ch <- prometheus.MustNewConstMetric(c.excludeExists, prometheus.CounterValue, 0, "transient")
}

path = "persistent.cluster..routing.allocation.total_shards_per_node"
path = "persistent.cluster.routing.allocation.total_shards_per_node"
if _, ok := walk(settings, path); ok {
ch <- prometheus.MustNewConstMetric(c.totalShardsPerNodeExists, prometheus.CounterValue, 1, "persistent")
} else {
Expand Down

0 comments on commit 9516276

Please sign in to comment.