This commit is contained in:
royalcat 2024-03-19 11:15:02 +03:00
parent 4d20743feb
commit 6d3a741b59
2 changed files with 47 additions and 47 deletions

View file

@ -43,7 +43,7 @@ services:
tempo:
image: grafana/tempo:2.3.1
command: [ "-config.file=/etc/tempo/config.yaml" ]
command: ["-config.file=/etc/tempo/config.yaml"]
depends_on:
- prometheus
volumes:
@ -79,47 +79,16 @@ services:
GF_AUTH_GENERIC_OAUTH_ROLE_ATTRIBUTE_STRICT: "true"
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/datasources.yaml:/etc/grafana/provisioning/datasources/ds.yaml
ports:
- ${GRAFANA_PORT}:3000
entrypoint:
- sh
- -euc
- |
mkdir -p /etc/grafana/provisioning/datasources
cat <<EOF > /etc/grafana/provisioning/datasources/ds.yaml
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
orgId: 1
url: http://loki:3100
basicAuth: false
isDefault: false
version: 1
editable: false
- name: Prometheus
type: prometheus
access: proxy
orgId: 1
url: http://prometheus:9090
basicAuth: false
isDefault: false
version: 1
editable: false
- name: Tempo
type: tempo
access: proxy
orgId: 1
url: http://tempo:3200
basicAuth: false
isDefault: false
version: 1
editable: false
jsonData:
httpMethod: GET
EOF
/run.sh
networks:
- default
- www
networks:
www:
external: true
volumes:
loki_data:

31
grafana/datasources.yaml Normal file
View file

@ -0,0 +1,31 @@
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
orgId: 1
url: http://loki:3100
basicAuth: false
isDefault: false
version: 1
editable: false
- name: Prometheus
type: prometheus
access: proxy
orgId: 1
url: http://prometheus:9090
basicAuth: false
isDefault: false
version: 1
editable: false
- name: Tempo
type: tempo
access: proxy
orgId: 1
url: http://tempo:3200
basicAuth: false
isDefault: false
version: 1
editable: false
jsonData:
httpMethod: GET