apiVersion: v1
kind: ConfigMap
metadata:
labels:
{{- include "fluentd.labels" . | nindent 4 }}
name: fluentd-prometheus-conf-{{ include "fluentd.shortReleaseName" . }}
data:
prometheus.conf: |-
@type prometheus
@id in_prometheus
bind "0.0.0.0"
port 24231
metrics_path "/metrics"
@type forward
bind 0.0.0.0
port 24224
@type prometheus
name fluentd_input_status_num_records_total
type counter
desc The total number of incoming records
tag ${tag}
hostname ${hostname}
@type copy
@type prometheus
name fluentd_output_status_num_records_total
type counter
desc The total number of outgoing records
tag ${tag}
hostname ${hostname}
@type prometheus_output_monitor
interval 10
hostname ${hostname}
@type prometheus_monitor
@id in_prometheus_monitor
#
# @type prometheus_output_monitor
# @id in_prometheus_output_monitor
#