pyroscope

This commit is contained in:
royalcat 2024-04-05 11:23:54 +03:00
parent af15ada307
commit edade44748
3 changed files with 26 additions and 1 deletions

View file

@ -1,6 +1,15 @@
version: "3" version: "3"
services: services:
pyroscope:
image: grafana/pyroscope:v1.5.0
expose:
- 4040
ports:
- "4040:4040"
volumes:
- ./pyroscope/pyroscope.yml:/etc/pyroscope.yml
otel-collector: otel-collector:
image: otel/opentelemetry-collector-contrib:0.97.0 image: otel/opentelemetry-collector-contrib:0.97.0
restart: always restart: always
@ -56,10 +65,11 @@ services:
grafana: grafana:
image: grafana/grafana:10.4.1 image: grafana/grafana:10.4.1
depends_on: links:
- loki - loki
- prometheus - prometheus
- tempo - tempo
- pyroscope
environment: environment:
GF_SERVER_ROOT_URL: ${GRAFANA_URL} GF_SERVER_ROOT_URL: ${GRAFANA_URL}
GF_SERVER_SERVE_FROM_SUB_PATH: "false" GF_SERVER_SERVE_FROM_SUB_PATH: "false"

View file

@ -29,3 +29,12 @@ datasources:
editable: false editable: false
jsonData: jsonData:
httpMethod: GET httpMethod: GET
- name: Pyroscope
type: pyroscope
access: proxy
orgId: 1
url: http://pyroscope:3200
basicAuth: false
isDefault: false
version: 1
editable: false

6
pyroscope/config.yaml Normal file
View file

@ -0,0 +1,6 @@
tracing:
enabled: true
profiling_enabled: true
pyroscopedb:
max_block_duration: 5m