1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:50 +02:00

add prometheus

This commit is contained in:
kev 2020-01-15 18:42:15 +08:00
parent 638299081e
commit 2add2e5a03
4 changed files with 45 additions and 0 deletions

View File

@ -307,6 +307,7 @@ A collection of delicious docker recipes.
- [x] devopsfaith/krakend
- [x] netdata/netdata
- [x] nextcloud
- [x] prom/prometheus
- [x] sonatype/nexus3
- [ ] jwilder/nginx-proxy
- [x] jazzdd/phpvirtualbox

6
prometheus/README.md Normal file
View File

@ -0,0 +1,6 @@
prometheus
==========
[Prometheus][1] is an open-source systems monitoring and alerting toolkit originally built at SoundCloud.
[1]: https://prometheus.io/docs/introduction/overview/

View File

@ -0,0 +1,29 @@
# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
# - "first_rules.yml"
# - "second_rules.yml"
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['localhost:9090']

View File

@ -0,0 +1,9 @@
version: "3.7"
services:
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- ./data:/etc/prometheus
restart: unless-stopped