Mateusz Matuszkowiak | 2a51e98 | 2018-11-27 15:48:27 +0100 | [diff] [blame] | 1 | classes: |
| 2 | - system.prometheus.sf_notifier.container |
| 3 | parameters: |
| 4 | _param: |
| 5 | sf_notifier_workers: 4 |
| 6 | sf_notifier_buffer_size: 32768 |
Mateusz Matuszkowiak | b4ff253 | 2018-12-10 12:21:19 +0100 | [diff] [blame] | 7 | sf_notifier_alert_id_hash_func: sha256 |
Mateusz Matuszkowiak | 2a51e98 | 2018-11-27 15:48:27 +0100 | [diff] [blame] | 8 | docker: |
| 9 | client: |
| 10 | stack: |
| 11 | monitoring: |
| 12 | network: |
| 13 | monitoring: |
| 14 | driver: overlay |
| 15 | driver_opts: |
| 16 | encrypted: 1 |
| 17 | service: |
| 18 | sf_notifier: |
| 19 | networks: |
| 20 | - monitoring |
| 21 | deploy: |
| 22 | replicas: 1 |
| 23 | labels: |
| 24 | com.mirantis.monitoring: "sf-notifier" |
| 25 | restart_policy: |
| 26 | condition: any |
| 27 | labels: |
| 28 | com.mirantis.monitoring: "sf-notifier" |
| 29 | image: ${_param:docker_image_sf_notifier} |
| 30 | ports: |
| 31 | - 15018:5000 |
Mateusz Matuszkowiak | 2a51e98 | 2018-11-27 15:48:27 +0100 | [diff] [blame] | 32 | environment: |
Michal Kobus | e3d66d6 | 2020-04-02 18:50:52 +0200 | [diff] [blame] | 33 | - SF_NOTIFIER_WORKERS=${_param:sf_notifier_workers} |
| 34 | - SF_NOTIFIER_BUFFER_SIZE=${_param:sf_notifier_buffer_size} |
| 35 | - SF_NOTIFIER_APP_PORT=${prometheus:sf_notifier:uwsgi:bind_port} |
| 36 | - SF_NOTIFIER_ALERT_ID_HASH_FUNC='${_param:sf_notifier_alert_id_hash_func}' |
| 37 | - SFDC_AUTH_URL='${_param:sf_notifier_sfdc_auth_url}' |
| 38 | - SFDC_USERNAME='${_param:sf_notifier_sfdc_username}' |
| 39 | - SFDC_PASSWORD='${_param:sf_notifier_sfdc_password}' |
| 40 | - SFDC_ORGANIZATION_ID='${_param:sf_notifier_sfdc_organization_id}' |
| 41 | - SFDC_ENVIRONMENT_ID='${_param:sf_notifier_sfdc_environment_id}' |
| 42 | - SFDC_SANDBOX_ENABLED='${_param:sf_notifier_sfdc_sandbox_enabled}' |