Browse Source

add licensekey to prometheus instance for auth check, add volume to grafana

Abhishek Kondur 2 years ago
parent
commit
9fe5da5df2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      compose/docker-compose.ee.yml

+ 4 - 0
compose/docker-compose.ee.yml

@@ -134,6 +134,7 @@ services:
     image: gravitl/netmaker-prometheus:latest
     environment:
       NETMAKER_METRICS_TARGET: "netmaker-exporter.NETMAKER_BASE_DOMAIN"
+      LICENSE_KEY: "YOUR_LICENSE_KEY"
     labels:
       - traefik.enable=true
       - traefik.http.routers.prometheus.entrypoints=websecure
@@ -159,6 +160,8 @@ services:
     environment:
       PROMETHEUS_HOST: "prometheus.NETMAKER_BASE_DOMAIN"
       NETMAKER_METRICS_TARGET: "netmaker-exporter.NETMAKER_BASE_DOMAIN"
+    volumes:
+      - grafana_data:/var/lib/grafana
     ports:
       - 3000:3000
     restart: always
@@ -197,3 +200,4 @@ volumes:
   mosquitto_data: {}
   mosquitto_logs: {}
   prometheus_data: {}
+  grafana_data: {}