-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aggiunta configurazione GRAFANA PROMETHEUS
close Aggiungere configurazione GRAFANA PROMETHEUS #3
- Loading branch information
1 parent
7f92c88
commit 6522d78
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM grafana/grafana |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM ubuntu/prometheus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |