update
This commit is contained in:
parent
4d20743feb
commit
6d3a741b59
2 changed files with 47 additions and 47 deletions
|
@ -43,7 +43,7 @@ services:
|
||||||
|
|
||||||
tempo:
|
tempo:
|
||||||
image: grafana/tempo:2.3.1
|
image: grafana/tempo:2.3.1
|
||||||
command: [ "-config.file=/etc/tempo/config.yaml" ]
|
command: ["-config.file=/etc/tempo/config.yaml"]
|
||||||
depends_on:
|
depends_on:
|
||||||
- prometheus
|
- prometheus
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -79,47 +79,16 @@ services:
|
||||||
GF_AUTH_GENERIC_OAUTH_ROLE_ATTRIBUTE_STRICT: "true"
|
GF_AUTH_GENERIC_OAUTH_ROLE_ATTRIBUTE_STRICT: "true"
|
||||||
volumes:
|
volumes:
|
||||||
- grafana_data:/var/lib/grafana
|
- grafana_data:/var/lib/grafana
|
||||||
|
- ./grafana/datasources.yaml:/etc/grafana/provisioning/datasources/ds.yaml
|
||||||
ports:
|
ports:
|
||||||
- ${GRAFANA_PORT}:3000
|
- ${GRAFANA_PORT}:3000
|
||||||
entrypoint:
|
networks:
|
||||||
- sh
|
- default
|
||||||
- -euc
|
- www
|
||||||
- |
|
|
||||||
mkdir -p /etc/grafana/provisioning/datasources
|
networks:
|
||||||
cat <<EOF > /etc/grafana/provisioning/datasources/ds.yaml
|
www:
|
||||||
apiVersion: 1
|
external: true
|
||||||
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
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
loki_data:
|
loki_data:
|
||||||
|
|
31
grafana/datasources.yaml
Normal file
31
grafana/datasources.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue