[#37] Add grafana service to visualize prometheus metrics
Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
d08b338e06
commit
3400bb5736
10 changed files with 45 additions and 0 deletions
4
.env
4
.env
|
@ -60,3 +60,7 @@ JAEGER_IMAGE=jaegertracing/all-in-one
|
|||
# Prometheus monitoring
|
||||
PROMETHEUS_VERSION=v2.43.0
|
||||
PROMETHEUS_IMAGE=prom/prometheus
|
||||
|
||||
# Grafana versions
|
||||
GRAFANA_VERSION=9.5.6
|
||||
GRAFANA_IMAGE=grafana/grafana
|
||||
|
|
|
@ -3,3 +3,4 @@
|
|||
http_gate
|
||||
s3_gate
|
||||
rest_gate
|
||||
grafana
|
||||
|
|
1
services/grafana/.env
Symbolic link
1
services/grafana/.env
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../.env
|
1
services/grafana/.hosts
Normal file
1
services/grafana/.hosts
Normal file
|
@ -0,0 +1 @@
|
|||
IPV4_PREFIX.122 grafana.LOCAL_DOMAIN
|
1
services/grafana/.int_test.env
Symbolic link
1
services/grafana/.int_test.env
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../.int_test.env
|
26
services/grafana/docker-compose.yml
Normal file
26
services/grafana/docker-compose.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
version: '2.4'
|
||||
services:
|
||||
grafana:
|
||||
image: ${GRAFANA_IMAGE}:${GRAFANA_VERSION}
|
||||
domainname: ${LOCAL_DOMAIN}
|
||||
hostname: grafana
|
||||
container_name: grafana
|
||||
restart: on-failure
|
||||
networks:
|
||||
grafana_int:
|
||||
internet:
|
||||
ipv4_address: ${IPV4_PREFIX}.122
|
||||
volumes:
|
||||
- ./../../vendor/hosts:/etc/hosts
|
||||
- ./grafana.ini:/etc/grafana/grafana.ini
|
||||
- ./provisioning:/etc/grafana/provisioning
|
||||
ports:
|
||||
- '3000:3000'
|
||||
stop_signal: SIGKILL
|
||||
env_file: [ ".env", ".int_test.env" ]
|
||||
|
||||
networks:
|
||||
grafana_int:
|
||||
internet:
|
||||
external: true
|
||||
name: basenet_internet
|
3
services/grafana/grafana.ini
Normal file
3
services/grafana/grafana.ini
Normal file
|
@ -0,0 +1,3 @@
|
|||
[auth.anonymous]
|
||||
# enable anonymous access
|
||||
enabled = true
|
BIN
services/grafana/provisioning/dashboards/14061_rev1.json
Normal file
BIN
services/grafana/provisioning/dashboards/14061_rev1.json
Normal file
Binary file not shown.
BIN
services/grafana/provisioning/dashboards/dashboard.yml
Normal file
BIN
services/grafana/provisioning/dashboards/dashboard.yml
Normal file
Binary file not shown.
8
services/grafana/provisioning/datasources/datasource.yml
Normal file
8
services/grafana/provisioning/datasources/datasource.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
apiVersion: 1
|
||||
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
type: prometheus
|
||||
access: proxy
|
||||
orgId: 1
|
||||
url: http://prometheus:9090
|
Loading…
Reference in a new issue