opendut icon indicating copy to clipboard operation
opendut copied to clipboard

Export traces and logs from Netbird

Open kKdH opened this issue 1 year ago • 2 comments

We are interested in the logs and traces of netbird. Therefore the configuration of Netbird should be adjusted to export these information to the OpenTelemetry collector.

kKdH avatar Mar 28 '24 09:03 kKdH

@reimarstier please add some infos about required Netbird configuration

kKdH avatar Mar 28 '24 09:03 kKdH

Netbird exposes a metrics endpoint here: https://github.com/netbirdio/netbird/pull/517. Logs may need an exporter on the container itself.

Configuration parameters of netbird management service are the following:

root@da63af8bb856:/# /go/bin/netbird-mgmt management --help | grep metrics
      --disable-anonymous-metrics           disables push of anonymous usage metrics to NetBird
      --metrics-port int                    metrics endpoint http port. Metrics are accessible under host:metrics-port/metrics (default 8081)

If not disabled, the netbird management service exposes a metrics endpoint here: http://netbird-management:8081/metrics

reimarstier avatar Mar 28 '24 10:03 reimarstier