Martin Polreich | e9dc060 | 2017-05-19 14:02:17 +0200 | [diff] [blame^] | 1 | prometheus: |
| 2 | server: |
| 3 | enabled: true |
| 4 | dir: |
| 5 | config: /srv/volumes/prometheus |
| 6 | config_in_container: /opt/prometheus/config |
| 7 | bind: |
| 8 | port: 9090 |
| 9 | address: 0.0.0.0 |
| 10 | external_port: 15010 |
| 11 | target: |
| 12 | dns: |
| 13 | enabled: true |
| 14 | endpoint: |
| 15 | - name: 'pushgateway' |
| 16 | domain: |
| 17 | - 'tasks.prometheus_pushgateway' |
| 18 | type: A |
| 19 | port: 9091 |
| 20 | - name: 'prometheus' |
| 21 | domain: |
| 22 | - 'tasks.prometheus_server' |
| 23 | type: A |
| 24 | port: 9090 |
| 25 | kubernetes: |
| 26 | enabled: true |
| 27 | api_ip: 127.0.0.1 |
| 28 | ssl_dir: /opt/prometheus/config |
| 29 | cert_name: prometheus-server.crt |
| 30 | key_name: prometheus-server.key |
| 31 | etcd: |
| 32 | endpoint: |
| 33 | scheme: https |
| 34 | ssl_dir: /opt/prometheus/config |
| 35 | cert_name: prometheus-server.crt |
| 36 | key_name: prometheus-server.key |
| 37 | member: |
| 38 | - host: ${_param:cluster_node01_address} |
| 39 | port: ${_param:cluster_node01_port} |
| 40 | - host: ${_param:cluster_node02_address} |
| 41 | port: ${_param:cluster_node02_port} |
| 42 | - host: ${_param:cluster_node03_address} |
| 43 | port: ${_param:cluster_node03_port} |
| 44 | recording: |
| 45 | instance:fd_utilization: |
| 46 | query: >- |
| 47 | process_open_fds / process_max_fds |
| 48 | alert: |
| 49 | PrometheusTargetDown: |
| 50 | if: 'up != 1' |
| 51 | labels: |
| 52 | severity: down |
| 53 | annotations: |
| 54 | summary: 'Prometheus target down' |
| 55 | storage: |
| 56 | local: |
| 57 | engine: "persisted" |
| 58 | retention: "360h" |
| 59 | memory_chunks: 1048576 |
| 60 | max_chunks_to_persist: 524288 |
| 61 | num_fingerprint_mutexes: 4096 |
| 62 | alertmanager: |
| 63 | notification_queue_capacity: 10000 |
| 64 | config: |
| 65 | global: |
| 66 | scrape_interval: "15s" |
| 67 | scrape_timeout: "15s" |
| 68 | evaluation_interval: "1m" |
| 69 | external_labels: |
| 70 | region: 'region1' |
| 71 | docker: |
| 72 | host: |
| 73 | enabled: true |
| 74 | experimental: true |
| 75 | insecure_registries: |
| 76 | - 127.0.0.1 |
| 77 | log: |
| 78 | engine: json-file |
| 79 | size: 50m |