flb // vmetrics

install | vmetrics | metrics injection | dashboard and acceptance

requirements

make sure the prometheus-like service – here vmetrics – is reachable

vmetrics=x.x.x.x

nmap -p 8428 $vmetrics

as well as the remote write api

curl -I http://$vmetrics:8428/api/v1/write

flb setup

cd /etc/fluent-bit/
mv -i fluent-bit.conf fluent-bit.conf.dist

# https://pub.nethence.com/bin/monitoring/fluent-bit.conf.vmetrics
vi fluent-bit.conf

ready to go

tail -F /var/log/fluent-bit*log

systemctl restart fluent-bit
systemctl status fluent-bit
journalctl -xeu fluent-bit

acceptance

see dashboard and acceptance

resources

flb

https://docs.fluentbit.io/manual/pipeline/inputs/node-exporter-metrics

https://docs.fluentbit.io/manual/pipeline/outputs/prometheus-remote-write

vmetrics

https://docs.victoriametrics.com/keyConcepts.html#instant-query

https://docs.victoriametrics.com/#prometheus-setup

https://docs.victoriametrics.com/Single-server-VictoriaMetrics.html#prometheus-setup

prometheus

https://prometheus.io/docs/concepts/jobs_instances/

https://prometheus.io/docs/practices/remote_write/

troubles

https://github.com/fluent/fluent-bit/issues/5501

moar

https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/README.md#how-to-import-data-in-native-format

https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/README.md#sending-data-via-opentelemetry

https://docs.victoriametrics.com/#how-to-scrape-prometheus-exporters-such-as-node-exporter


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun