[feature] add prometheus and node_exporter services, remove default values from docker-compose.yml

add simple config for prometheus
This commit is contained in:
2023-04-21 10:16:36 +07:00
parent 62f969fa28
commit 4017fcc471
5 changed files with 80 additions and 11 deletions

19
prometheus/prometheus.yml Normal file
View File

@@ -0,0 +1,19 @@
---
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
monitor: 'dev-prometheus'
scrape_config_files:
- /etc/prometheus/scrapes/*.yml
scrape_configs:
- job_name: 'prometheus'
scrape_interval: 15s
static_configs:
- targets: ['localhost:9090']
- job_name: 'node-exporter'
scrape_interval: 15s
static_configs:
- targets: ['node-exporter:9100']

2
prometheus/scrapes/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
/*
!/.gitignore