Martin Polreich | e9dc060 | 2017-05-19 14:02:17 +0200 | [diff] [blame] | 1 | prometheus: |
| 2 | server: |
| 3 | enabled: true |
| 4 | dir: |
Bartosz Kupidura | abec256 | 2017-05-17 16:00:52 +0200 | [diff] [blame] | 5 | config: /srv/volumes/prometheus/server |
Bartosz Kupidura | 94c1a3c | 2017-07-28 14:33:36 +0200 | [diff] [blame] | 6 | config_in_container: /srv/prometheus |
Bartosz Kupidura | abec256 | 2017-05-17 16:00:52 +0200 | [diff] [blame] | 7 | data: /srv/volumes/local/prometheus/server |
Martin Polreich | e9dc060 | 2017-05-19 14:02:17 +0200 | [diff] [blame] | 8 | bind: |
| 9 | port: 9090 |
| 10 | address: 0.0.0.0 |
| 11 | external_port: 15010 |
| 12 | target: |
| 13 | dns: |
| 14 | enabled: true |
| 15 | endpoint: |
| 16 | - name: 'pushgateway' |
| 17 | domain: |
| 18 | - 'tasks.prometheus_pushgateway' |
| 19 | type: A |
| 20 | port: 9091 |
| 21 | - name: 'prometheus' |
| 22 | domain: |
| 23 | - 'tasks.prometheus_server' |
| 24 | type: A |
| 25 | port: 9090 |
| 26 | kubernetes: |
| 27 | enabled: true |
| 28 | api_ip: 127.0.0.1 |
| 29 | ssl_dir: /opt/prometheus/config |
| 30 | cert_name: prometheus-server.crt |
| 31 | key_name: prometheus-server.key |
| 32 | etcd: |
| 33 | endpoint: |
| 34 | scheme: https |
| 35 | ssl_dir: /opt/prometheus/config |
| 36 | cert_name: prometheus-server.crt |
| 37 | key_name: prometheus-server.key |
| 38 | member: |
Martin Polreich | c9dadf7 | 2018-04-25 15:03:05 +0200 | [diff] [blame] | 39 | - host: 10.0.175.101 |
| 40 | port: 4001 |
| 41 | - host: 10.0.175.102 |
| 42 | port: 4001 |
| 43 | - host: 10.0.175.103 |
| 44 | port: 4001 |
Martin Polreich | e9dc060 | 2017-05-19 14:02:17 +0200 | [diff] [blame] | 45 | recording: |
| 46 | instance:fd_utilization: |
| 47 | query: >- |
| 48 | process_open_fds / process_max_fds |
| 49 | alert: |
| 50 | PrometheusTargetDown: |
| 51 | if: 'up != 1' |
| 52 | labels: |
| 53 | severity: down |
| 54 | annotations: |
| 55 | summary: 'Prometheus target down' |
| 56 | storage: |
| 57 | local: |
Martin Polreich | e9dc060 | 2017-05-19 14:02:17 +0200 | [diff] [blame] | 58 | retention: "360h" |
Martin Polreich | e9dc060 | 2017-05-19 14:02:17 +0200 | [diff] [blame] | 59 | alertmanager: |
| 60 | notification_queue_capacity: 10000 |
| 61 | config: |
| 62 | global: |
| 63 | scrape_interval: "15s" |
| 64 | scrape_timeout: "15s" |
| 65 | evaluation_interval: "1m" |
| 66 | external_labels: |
| 67 | region: 'region1' |
Bartosz Kupidura | 13f39f2 | 2017-05-29 15:05:06 +0200 | [diff] [blame] | 68 | remote_write: |
| 69 | remote_storage_adapter: |
| 70 | enabled: true |
Martin Polreich | c9dadf7 | 2018-04-25 15:03:05 +0200 | [diff] [blame] | 71 | url: "http://127.0.0.1:9201/write" |
Bartosz Kupidura | e7de11c | 2017-05-24 13:20:21 +0200 | [diff] [blame] | 72 | alertmanager: |
| 73 | docker_swarm_alertmanager: |
| 74 | enabled: true |
| 75 | dns_sd_configs: |
| 76 | domain: |
| 77 | - tasks.monitoring_alertmanager |
| 78 | type: A |
| 79 | port: 9093 |
Martin Polreich | e9dc060 | 2017-05-19 14:02:17 +0200 | [diff] [blame] | 80 | docker: |
| 81 | host: |
| 82 | enabled: true |
| 83 | experimental: true |
| 84 | insecure_registries: |
| 85 | - 127.0.0.1 |
| 86 | log: |
| 87 | engine: json-file |
Bartosz Kupidura | abec256 | 2017-05-17 16:00:52 +0200 | [diff] [blame] | 88 | size: 50m |