Hi do fluent-bit internal metrics contain Kubernet...
# fluent-operator
h
Hi do fluent-bit internal metrics contain Kubernetes metadata, like k8s.pod.name, k8s.cluster.name, etc.? I do not see any so I am just wondering if I am missing configuration or the metadata is just not available.
you can use the k8s filter for that
h
As far as I am aware FILTER does not work on internal metrics at the moment.
l
ooh, sorry I missed it’s for internal metrics
👍 1
p
you can add labels to metrics though via remote write or prom exporter - however those labels would need to be from env vars passed in by DownwardAPI
Adding labels though is generally frowned upon as it can explode your storage for Prometheus. What do you mean by does it contain K8S metdata, type of metric would contain that? A label on the metric or some additional metric?
h
I am wondering if there is a way to enrich the internal metrics the same way I can enrich Log s with Kubernetes filter. I know filters were not supported for internal metrics in the past.
p
What do you mean by enrich though? The only real thing for Prometheus is adding labels and that is generally not recommended.
For label issues - see here: https://prometheus.io/docs/practices/naming/#labels Do you want the metric name to include the pod name or something similar? Which metric? As it stands, metrics do not support running custom filters. Only processors to add labels or otherwise mutate them: https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/yaml/configuration-file#config_processors
h
I will take a look at the document.