Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugin/action/cardinality/cardinality.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ func parseFields(fields []cfg.FieldSelector) *parsedFields {
func (p *Plugin) registerMetrics(ctl *metric.Ctl, prefix string) {
var metricName string
if prefix == "" {
metricName = "cardinality_unique_values_count"
metricName = "cardinality_unique_values"
} else {
metricName = fmt.Sprintf(`cardinality_%s_unique_values_count`, prefix)
metricName = fmt.Sprintf(`cardinality_%s_unique_values`, prefix)
}
p.cardinalityUniqueValuesGauge = ctl.RegisterGaugeVec(
metricName,
Expand Down
2 changes: 1 addition & 1 deletion plugin/output/clickhouse/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func Factory() (pipeline.AnyPlugin, pipeline.AnyConfig) {
func (p *Plugin) registerMetrics(ctl *metric.Ctl) {
p.insertErrorsMetric = ctl.RegisterCounter("output_clickhouse_errors_total", "Total clickhouse insert errors")
p.queriesCountMetric = ctl.RegisterCounter("output_clickhouse_queries_count_total", "How many queries sent by clickhouse output plugin")
p.bannedEndpointsMetric = ctl.RegisterGauge("output_clickhouse_banned_endpoints_count", "Current number of endpoints banned by circuit breaker")
p.bannedEndpointsMetric = ctl.RegisterGauge("output_clickhouse_banned_endpoints", "Current number of endpoints banned by circuit breaker")
p.bannedEndpointsMetric.Set(0)
}

Expand Down
2 changes: 1 addition & 1 deletion plugin/output/elasticsearch/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func (p *Plugin) registerMetrics(ctl *metric.Ctl) {
p.sendErrorMetric = ctl.RegisterCounterVec("output_elasticsearch_send_error_total", "Total elasticsearch send errors", "status_code")
p.indexingErrorsMetric = ctl.RegisterCounter("output_elasticsearch_index_error_total", "Number of elasticsearch indexing errors")
p.bannedEndpointsMetric = ctl.RegisterGauge(
"output_elasticsearch_banned_endpoints_count",
"output_elasticsearch_banned_endpoints",
"Current number of endpoints banned by circuit breaker",
)
p.bannedEndpointsMetric.Set(0)
Expand Down
2 changes: 1 addition & 1 deletion plugin/output/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func (p *Plugin) Out(event *pipeline.Event) {
func (p *Plugin) registerMetrics(ctl *metric.Ctl) {
p.sendErrorMetric = ctl.RegisterCounterVec("output_http_send_error_total", "Total HTTP send errors", "status_code")
p.bannedEndpointsMetric = ctl.RegisterGauge(
"output_http_banned_endpoints_count",
"output_http_banned_endpoints",
"Current number of endpoints banned by circuit breaker",
)
p.bannedEndpointsMetric.Set(0)
Expand Down
2 changes: 1 addition & 1 deletion plugin/output/loki/loki.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ func (p *Plugin) send(root *insaneJSON.Root) (int, error) {
func (p *Plugin) registerMetrics(ctl *metric.Ctl) {
p.sendErrorMetric = ctl.RegisterCounterVec("output_loki_send_error_total", "Total Loki send errors", "status_code")
p.bannedEndpointsMetric = ctl.RegisterGauge(
"output_loki_banned_endpoints_count",
"output_loki_banned_endpoints",
"Current number of endpoints banned by circuit breaker",
)
p.bannedEndpointsMetric.Set(0)
Expand Down
2 changes: 1 addition & 1 deletion plugin/output/splunk/splunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func (p *Plugin) registerMetrics(ctl *metric.Ctl) {
"status_code",
)
p.bannedEndpointsMetric = ctl.RegisterGauge(
"output_splunk_banned_endpoints_count",
"output_splunk_banned_endpoints",
"Current number of endpoints banned by circuit breaker",
)
p.bannedEndpointsMetric.Set(0)
Expand Down
Loading