Dmitry Kalashnik | 0581b08 | 2018-02-26 13:20:21 +0400 | [diff] [blame] | 1 | classes: |
| 2 | - system.prometheus.pushgateway.container |
| 3 | parameters: |
| 4 | docker: |
| 5 | client: |
| 6 | stack: |
| 7 | monitoring: |
| 8 | network: |
| 9 | monitoring: |
| 10 | driver: overlay |
| 11 | driver_opts: |
| 12 | encrypted: 1 |
| 13 | service: |
| 14 | pushgateway: |
| 15 | networks: |
| 16 | - monitoring |
| 17 | deploy: |
| 18 | replicas: 2 |
| 19 | labels: |
| 20 | com.mirantis.monitoring: "pushgateway" |
| 21 | restart_policy: |
| 22 | condition: any |
| 23 | environment: |
| 24 | PUSHGATEWAY_BIND_PORT: ${prometheus:pushgateway:bind:port} |
| 25 | PUSHGATEWAY_BIND_ADDRESS: ${prometheus:pushgateway:bind:address} |
Michal Kobus | 63075f5 | 2018-06-29 18:03:20 +0200 | [diff] [blame] | 26 | PUSHGATEWAY_DATA_DIR: ${_param:prometheus_pushgateway_data_directory} |
Dmitry Kalashnik | 0581b08 | 2018-02-26 13:20:21 +0400 | [diff] [blame] | 27 | labels: |
| 28 | com.mirantis.monitoring: "pushgateway" |
| 29 | image: ${_param:docker_image_pushgateway} |
| 30 | ports: |
| 31 | - 15012:${prometheus:pushgateway:bind:port} |
Michal Kobus | 63075f5 | 2018-06-29 18:03:20 +0200 | [diff] [blame] | 32 | volumes: |
| 33 | - ${prometheus:pushgateway:dir:data}:${_param:prometheus_pushgateway_data_directory} |