Replies: 4 comments 14 replies
-
Provide the full config and command you used to run it along with the versions, etc. used. |
Beta Was this translation helpful? Give feedback.
-
FluentBit Version 3.0.7 Docker-Compose Part: fluentbit:
image: ${fluentbit_version}
container_name: fluentbit
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "2"
command:
- '--config=/fluent-bit/etc/fluent-bit.yml'
privileged: true
ports:
- 2021
networks:
- observability
volumes:
- /proc:/host/proc:ro
- /run/systemd:/run/systemd:ro
- /sys:/host/sys:ro
- /:/host/root:ro
- /observability/fluent-bit.yml:/fluent-bit/etc/fluent-bit.yml:ro
- /:/host:ro,rslave
pid: host fluent-bit.yml service:
flush: 1
log_level: info
# parsers_file: parsers.conf
pipeline:
inputs:
- name: node_exporter_metrics
tag: node_metrics
scrape_interval: 2
outputs:
- name: prometheus_exporter
match: node_metrics
host: 0.0.0.0
port: 2021
# add user-defined labels
add_label:
- app fluent-bit
- color blue
# inputs:
# - name: systemd
# tag: host.*
# systemd_filter: _SYSTEMD_UNIT=docker.service
# outputs:
# - name: stdout
# match: "*" I think that should be everything |
Beta Was this translation helpful? Give feedback.
-
In a completely different environment, I had the same problem. My environment: I think this problem may be caused by a bug in node_exporter_metrics. |
Beta Was this translation helpful? Give feedback.
-
Is the problem the systemd metrics failing? Potentially you can turn off that collection and see where it repros? |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I installed Fluent Bit as a Docker container to monitor the metrics of the host system (Linux System), not just the metrics of the container. I added /proc, /run/systemd, /sys, and / as volumes. However, it seems like the container is only monitoring itself.
There are also two errors in the logs:
[input:node_exporter_metrics:node_exporter_metrics.0] systemd init failed
[input:node_exporter_metrics:node_exporter_metrics.0] could not set systemd collector for Node Exporter Metrics plugin
Any Ideas?
Beta Was this translation helpful? Give feedback.
All reactions