Add grafana service to visualize prometheus metrics #37

Merged
fyrchik merged 1 commit from alexvanin/frostfs-dev-env:feature/grafanf into master 2023-07-24 13:31:30 +00:00
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_VERSION=v2.43.0
PROMETHEUS_IMAGE=prom/prometheus
# Grafana versions
GRAFANA_VERSION=9.5.6
GRAFANA_IMAGE=grafana/grafana

View file

@ -3,3 +3,4 @@
http_gate
s3_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