mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 09:36:13 -08:00
Full stack Docker Compose demo with Grafana dashboard
Add a full stack demo using Docker Compose that runs Rest Server, Prometheus and Grafana with a Rest Server dashboard.
This commit is contained in:
committed by
Zlatko Čalušić
parent
d1504d7d66
commit
213ff91b05
23
examples/compose-with-grafana/prometheus.yml
Normal file
23
examples/compose-with-grafana/prometheus.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
global:
|
||||
scrape_interval: 15s # By default, scrape targets every 15 seconds.
|
||||
|
||||
# Attach these labels to any time series or alerts when communicating with
|
||||
# external systems (federation, remote storage, Alertmanager).
|
||||
external_labels:
|
||||
monitor: 'restic-rest-server-demo'
|
||||
|
||||
scrape_configs:
|
||||
- job_name: 'prometheus' # monitor self
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
- job_name: 'rest_server'
|
||||
scrape_interval: 5s
|
||||
# Uncomment these if you use auth and/or https
|
||||
#basic_auth:
|
||||
# username: test
|
||||
# password: test
|
||||
#scheme: https
|
||||
static_configs:
|
||||
- targets: ['restserver:8000']
|
||||
Reference in New Issue
Block a user