Skip to content

Commit

Permalink
Aggiunta configurazione GRAFANA PROMETHEUS
Browse files Browse the repository at this point in the history
close Aggiungere configurazione GRAFANA PROMETHEUS #3
  • Loading branch information
AngeloDotNet committed Oct 21, 2023
1 parent 7f92c88 commit 6522d78
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions Grafana-Prometheus/Grafana/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM grafana/grafana
1 change: 1 addition & 0 deletions Grafana-Prometheus/Prometheus/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM ubuntu/prometheus
34 changes: 34 additions & 0 deletions Grafana-Prometheus/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: '3.7'

services:
prometheus:
container_name: prometheus
build:
context: .
dockerfile: Prometheus/Dockerfile
ports:
- 30090:9090
environment:
- TZ=UTC
networks:
- lan-network
volumes:
- /storage/CHANGEME/prometheus.yml:/etc/prometheus/prometheus.yml

grafana:
container_name: grafana
build:
context: .
dockerfile: Grafana/Dockerfile
user: '0'
ports:
- 30091:3000
networks:
- lan-network
volumes:
- /storage/CHANGEME/data:/var/lib/grafana

networks:
lan-network:
external:
name: docker-lan
29 changes: 29 additions & 0 deletions Grafana-Prometheus/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
- scheme: http
timeout: 10s
api_version: v1
static_configs:
- targets: []
scrape_configs:
- job_name: prometheus
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- localhost:9090
- job_name: DescriptionDockerUsage
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- NOME-DOCKER:PORTA-DOCKER

0 comments on commit 6522d78

Please sign in to comment.