diff options
-rw-r--r-- | docker-compose.yml | 13 | ||||
-rw-r--r-- | prometheus/prometheus.yml | 7 | ||||
-rw-r--r-- | prometheus/web.yml | 3 |
3 files changed, 23 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 1775b7e..0211b8f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,6 +35,7 @@ services: - ./config.env depends_on: - influxdb + - prometheus restart: unless-stopped snmp_client: @@ -58,10 +59,22 @@ services: - 3000:3000 depends_on: - influxdb + - prometheus restart: unless-stopped volumes: - grafana:/var/lib/grafana + prometheus: + image: prom/prometheus + volumes: + - ./prometheus/:/etc/prometheus/ + command: + - --config.file=/etc/prometheus/prometheus.yml + - --web.config.file=/etc/prometheus/web.yml + ports: + - 9090:9090 + + volumes: mosquitto-data: mosquitto-logs: diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml new file mode 100644 index 0000000..c9ded40 --- /dev/null +++ b/prometheus/prometheus.yml @@ -0,0 +1,7 @@ +global: + scrape_interval: 10s +scrape_configs: + - job_name: prometheus + static_configs: + - targets: + - prometheus:9090 diff --git a/prometheus/web.yml b/prometheus/web.yml new file mode 100644 index 0000000..e905247 --- /dev/null +++ b/prometheus/web.yml @@ -0,0 +1,3 @@ +basic_auth_users: + admin: $2b$12$vHIcCWyDBVOOxCxPAvuoUuqmCd8nEYsmUHOLLwSEi9jKAo85OmwhK + eden: $2b$12$vHIcCWyDBVOOxCxPAvuoUuqmCd8nEYsmUHOLLwSEi9jKAo85OmwhK |