You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am trying to use the node_exporter_metrics plugin to retrieve some host metrics (and subsequently send them to opensearch, but that doesn't matter here).
In order to do so, I have the following docker compose configuration:
services:
[...]
fluent-bit:
[...]
image: fluent/fluent-bit:latest
container_name: fluent-bit
volumes:
- "./fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf:ro"
- "./parsers.conf:/fluent-bit/etc/parsers.conf:ro"
- "./journal_transform.lua:/fluent-bit/scripts/journal_transform.lua:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro" # this is for docker
- /var/log:/host/var/log:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /run/log/journal:/run/log/journal:ro
- /etc/machine-id:/etc/machine-id:ro
environment:
[...]
path.procfs: /host/proc
path.sysfs: /host/sysfs
ports:
- "2020:2020" # Fluent Bit metrics endpoint
privileged: true # just to be sure v1
user: root # just to be sure v2
the relevant part of the fluent bit conf looks like this:
[...]
# Host Metrics Collection
[INPUT]
Name node_exporter_metrics
Tag node.metrics
Scrape_Interval 10
path.procfs /host/procfs
path.sysfs /host/sysfs
# Available metrics groups
Metrics cpu,memory,network,disk,diskio,process
[...]
... but no CPU metrics are being collected.
Instead, after starting up fluent bit, I see log messages like below:
Expected behavior
I'd expect the CPU metrics getting collected without an error in the logs.
Your Environment
Version used: 3.1.10 fluent/fluent-bit:latest from docker hub
Environment name and version (e.g. Kubernetes? What version?): docker 27.3.1
Operating System and version: image from docker hub, debian 12.7 as the host system
Additional context
What puzzles me is the path the log message contains: /devices/system/cpu/cpu[0-9]*
Because this path does not exist obviously, it either has to be /sys/devices/system/cpu/cpu[0-9]* or in my case /host/sys/devices/system/cpu/cpu[0-9]*
But maybe the log message just doesn't print the full path, I don't fully understand the code here.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am trying to use the node_exporter_metrics plugin to retrieve some host metrics (and subsequently send them to opensearch, but that doesn't matter here).
In order to do so, I have the following docker compose configuration:
the relevant part of the fluent bit conf looks like this:
... but no CPU metrics are being collected.
Instead, after starting up fluent bit, I see log messages like below:
Expected behavior
I'd expect the CPU metrics getting collected without an error in the logs.
Your Environment
Additional context
What puzzles me is the path the log message contains:
/devices/system/cpu/cpu[0-9]*
Because this path does not exist obviously, it either has to be
/sys/devices/system/cpu/cpu[0-9]*
or in my case/host/sys/devices/system/cpu/cpu[0-9]*
But maybe the log message just doesn't print the full path, I don't fully understand the code here.
The text was updated successfully, but these errors were encountered: