mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-13 11:40:39 +02:00
add prometheus
This commit is contained in:
parent
638299081e
commit
2add2e5a03
@ -307,6 +307,7 @@ A collection of delicious docker recipes.
|
|||||||
- [x] devopsfaith/krakend
|
- [x] devopsfaith/krakend
|
||||||
- [x] netdata/netdata
|
- [x] netdata/netdata
|
||||||
- [x] nextcloud
|
- [x] nextcloud
|
||||||
|
- [x] prom/prometheus
|
||||||
- [x] sonatype/nexus3
|
- [x] sonatype/nexus3
|
||||||
- [ ] jwilder/nginx-proxy
|
- [ ] jwilder/nginx-proxy
|
||||||
- [x] jazzdd/phpvirtualbox
|
- [x] jazzdd/phpvirtualbox
|
||||||
|
6
prometheus/README.md
Normal file
6
prometheus/README.md
Normal 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/
|
29
prometheus/data/prometheus.yml
Normal file
29
prometheus/data/prometheus.yml
Normal 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']
|
9
prometheus/docker-compose.yml
Normal file
9
prometheus/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
version: "3.7"
|
||||||
|
services:
|
||||||
|
prometheus:
|
||||||
|
image: prom/prometheus
|
||||||
|
ports:
|
||||||
|
- "9090:9090"
|
||||||
|
volumes:
|
||||||
|
- ./data:/etc/prometheus
|
||||||
|
restart: unless-stopped
|
Loading…
x
Reference in New Issue
Block a user