Skip to content

Commit b0fe07a

Browse files
authored
feat: add missing prometheus metrics (#342)
Add missing prometheus metrics for monitoring Signed-off-by: jcriadomarco <[email protected]> Signed-off-by: jcriadomarco <[email protected]>
1 parent c2040c8 commit b0fe07a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

config-reloader/templates/prometheus.conf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,24 @@
1212
@type prometheus_output_monitor
1313
@id in_prometheus_output_monitor
1414
</source>
15+
16+
<source>
17+
@type prometheus_tail_monitor
18+
</source>
19+
20+
<filter **>
21+
@type prometheus
22+
@id filter_prometheus
23+
@log_level warn
24+
25+
<metric>
26+
name fluentd_input_status_num_records_total
27+
type counter
28+
desc The total number of incoming records
29+
<labels>
30+
tag ${tag_parts[0]}
31+
hostname ${hostname}
32+
</labels>
33+
</metric>
34+
</filter>
1535
{{- end -}}

0 commit comments

Comments
 (0)