[#37] Add grafana service to visualize prometheus metrics

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
Alexey Vanin 2023-07-13 12:13:27 +03:00
parent d08b338e06
commit 3400bb5736
10 changed files with 45 additions and 0 deletions

4
.env
View file

@ -60,3 +60,7 @@ JAEGER_IMAGE=jaegertracing/all-in-one
# Prometheus monitoring # Prometheus monitoring
PROMETHEUS_VERSION=v2.43.0 PROMETHEUS_VERSION=v2.43.0
PROMETHEUS_IMAGE=prom/prometheus PROMETHEUS_IMAGE=prom/prometheus
# Grafana versions
GRAFANA_VERSION=9.5.6
GRAFANA_IMAGE=grafana/grafana

View file

@ -3,3 +3,4 @@
http_gate http_gate
s3_gate s3_gate
rest_gate rest_gate
grafana

1
services/grafana/.env Symbolic link
View file

@ -0,0 +1 @@
../../.env

1
services/grafana/.hosts Normal file
View file

@ -0,0 +1 @@
IPV4_PREFIX.122 grafana.LOCAL_DOMAIN

View file

@ -0,0 +1 @@
../../.int_test.env

View 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

View file

@ -0,0 +1,3 @@
[auth.anonymous]
# enable anonymous access
enabled = true

Binary file not shown.

View file

@ -0,0 +1,8 @@
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
orgId: 1
url: http://prometheus:9090