Move prometheus + grafana config
This commit is contained in:
parent
8c337a324b
commit
fd9bd94d58
6 changed files with 4 additions and 1391 deletions
|
@ -1,21 +0,0 @@
|
||||||
apiVersion: 1
|
|
||||||
|
|
||||||
providers:
|
|
||||||
# <string> provider name
|
|
||||||
- name: 'default'
|
|
||||||
# <int> org id. will default to orgId 1 if not specified
|
|
||||||
orgId: 1
|
|
||||||
# <string, required> name of the dashboard folder. Required
|
|
||||||
folder: ''
|
|
||||||
# <string> folder UID. will be automatically generated if not specified
|
|
||||||
folderUid: ''
|
|
||||||
# <string, required> provider type. Required
|
|
||||||
type: file
|
|
||||||
# <bool> disable dashboard deletion
|
|
||||||
disableDeletion: false
|
|
||||||
# <bool> enable dashboard editing
|
|
||||||
editable: true
|
|
||||||
# <int> how often Grafana will scan for changed dashboards
|
|
||||||
updateIntervalSeconds: 10
|
|
||||||
options:
|
|
||||||
path: /etc/grafana/provisioning/dashboards
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,50 +0,0 @@
|
||||||
# config file version
|
|
||||||
apiVersion: 1
|
|
||||||
|
|
||||||
# list of datasources that should be deleted from the database
|
|
||||||
deleteDatasources:
|
|
||||||
- name: Prometheus
|
|
||||||
orgId: 1
|
|
||||||
|
|
||||||
# list of datasources to insert/update depending
|
|
||||||
# whats available in the database
|
|
||||||
datasources:
|
|
||||||
# <string, required> name of the datasource. Required
|
|
||||||
- name: Prometheus
|
|
||||||
# <string, required> datasource type. Required
|
|
||||||
type: prometheus
|
|
||||||
# <string, required> access mode. direct or proxy. Required
|
|
||||||
access: proxy
|
|
||||||
# <int> org id. will default to orgId 1 if not specified
|
|
||||||
orgId: 1
|
|
||||||
# <string> url
|
|
||||||
url: http://prometheus:9090
|
|
||||||
# <string> database password, if used
|
|
||||||
password:
|
|
||||||
# <string> database user, if used
|
|
||||||
user:
|
|
||||||
# <string> database name, if used
|
|
||||||
database:
|
|
||||||
# <bool> enable/disable basic auth
|
|
||||||
basicAuth: false
|
|
||||||
# <string> basic auth username
|
|
||||||
basicAuthUser:
|
|
||||||
# <string> basic auth password
|
|
||||||
basicAuthPassword:
|
|
||||||
# <bool> enable/disable with credentials headers
|
|
||||||
withCredentials:
|
|
||||||
# <bool> mark as default datasource. Max one per org
|
|
||||||
isDefault: true
|
|
||||||
# <map> fields that will be converted to json and stored in json_data
|
|
||||||
jsonData:
|
|
||||||
graphiteVersion: "1.1"
|
|
||||||
tlsAuth: false
|
|
||||||
tlsAuthWithCACert: false
|
|
||||||
# <string> json object of data that will be encrypted.
|
|
||||||
secureJsonData:
|
|
||||||
tlsCACert: "..."
|
|
||||||
tlsClientCert: "..."
|
|
||||||
tlsClientKey: "..."
|
|
||||||
version: 1
|
|
||||||
# <bool> allow users to edit datasources from the UI.
|
|
||||||
editable: true
|
|
|
@ -1,11 +0,0 @@
|
||||||
groups:
|
|
||||||
- name: traefik
|
|
||||||
rules:
|
|
||||||
- alert: service_down
|
|
||||||
expr: up == 0
|
|
||||||
for: 2m
|
|
||||||
labels:
|
|
||||||
severity: page
|
|
||||||
annotations:
|
|
||||||
summary: "Instance {{ $labels.instance }} down"
|
|
||||||
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 2 minutes"
|
|
|
@ -1,12 +0,0 @@
|
||||||
global:
|
|
||||||
scrape_interval: 15s
|
|
||||||
evaluation_interval: 15s
|
|
||||||
|
|
||||||
rule_files:
|
|
||||||
- 'alert.rules'
|
|
||||||
|
|
||||||
scrape_configs:
|
|
||||||
- job_name: 'traefik'
|
|
||||||
scrape_interval: 5s
|
|
||||||
static_configs:
|
|
||||||
- targets: ['traefik:8080']
|
|
|
@ -6,8 +6,8 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: prometheus
|
container_name: prometheus
|
||||||
volumes:
|
volumes:
|
||||||
- ./prometheus/:/etc/prometheus/
|
- {{ server.work_dir }}/prometheus/config:/etc/prometheus
|
||||||
- {{ server.work_dir }}/traefik/prometheus:/prometheus
|
- {{ server.work_dir }}/prometheus/base:/prometheus
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
command:
|
command:
|
||||||
|
@ -36,8 +36,8 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: grafana
|
container_name: grafana
|
||||||
volumes:
|
volumes:
|
||||||
- {{ server.work_dir }}/traefik/grafana:/var/lib/grafana
|
- {{ server.work_dir }}/grafana/base:/var/lib/grafana
|
||||||
- ./grafana/provisioning:/etc/grafana/provisioning
|
- {{ server.work_dir }}/grafana/provisioning:/etc/grafana/provisioning
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
env_file:
|
env_file:
|
||||||
|
|
Loading…
Reference in a new issue