grafana/devenv/docker/blocks/self-instrumentation
2024-01-02 15:35:59 -05:00
..
agent.flow DevEnv: Add pyroscope to self-instrumentation (#78430) 2024-01-02 15:35:59 -05:00
docker-compose.yaml DevEnv: Add pyroscope to self-instrumentation (#78430) 2024-01-02 15:35:59 -05:00
prometheus.yaml Devenv: self-instrumentation (#63730) 2023-07-19 14:25:18 +02:00
promtail.yaml DevEnv: Add pyroscope to self-instrumentation (#78430) 2024-01-02 15:35:59 -05:00
readme.md DevEnv: Add pyroscope to self-instrumentation (#78430) 2024-01-02 15:35:59 -05:00
tempo.yaml Devenv: self-instrumentation (#63730) 2023-07-19 14:25:18 +02:00

Self Instrumentation

To run this source, in the Grafana repo root:

make devenv sources=self-instrumentation

This will setup Prometheus, Loki, Tempo, and Pyroscope.

You then need to run Grafana with those added config:

[log.file]
format = json

[log.frontend]
enabled = true
custom_endpoint=http://localhost:12347/collect

[tracing.opentelemetry.jaeger]
address = http://localhost:14268/api/traces

To collect profiles with pyroscope, you need to run Grafana with the following env vars:

export GF_DIAGNOSTICS_PROFILING_ENABLED=true
export GF_DIAGNOSTICS_PROFILING_ADDR=0.0.0.0
make run