Mateusz Matuszkowiak | 0d7384b | 2018-06-14 20:25:47 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - system.prometheus.gainsight.container |
| 3 | parameters: |
| 4 | _param: |
Michal Kobus | 14561b0 | 2020-02-14 11:20:40 +0100 | [diff] [blame] | 5 | gainsight_cluster_id: '${_param:cluster_domain}' |
Mateusz Matuszkowiak | b1f04e4 | 2018-06-20 14:04:16 +0200 | [diff] [blame] | 6 | gainsight_prometheus_url: "http://${_param:stacklight_monitor_address}:15010" |
Mateusz Matuszkowiak | 0d7384b | 2018-06-14 20:25:47 +0200 | [diff] [blame] | 7 | gainsight_config_directory: '/srv/gainsight' |
Mateusz Matuszkowiak | 53e861f | 2018-06-26 21:37:09 +0200 | [diff] [blame] | 8 | gainsight_crontab_directory: '/etc/cron.d' |
Mateusz Matuszkowiak | 0d7384b | 2018-06-14 20:25:47 +0200 | [diff] [blame] | 9 | gainsight_config_path: "${_param:gainsight_config_directory}/config.ini" |
Michal Kobus | 14561b0 | 2020-02-14 11:20:40 +0100 | [diff] [blame] | 10 | gainsight_sfdc_auth_url: "${_param:sf_notifier_sfdc_auth_url}" |
| 11 | gainsight_sfdc_username: "${_param:sf_notifier_sfdc_username}" |
| 12 | gainsight_sfdc_password: "${_param:sf_notifier_sfdc_password}" |
| 13 | gainsight_sfdc_organization_id: "${_param:sf_notifier_sfdc_organization_id}" |
| 14 | gainsight_sfdc_environment_id: "${_param:sf_notifier_sfdc_environment_id}" |
| 15 | gainsight_sfdc_sandbox_enabled: "${_param:sf_notifier_sfdc_sandbox_enabled}" |
Mateusz Matuszkowiak | 0d7384b | 2018-06-14 20:25:47 +0200 | [diff] [blame] | 16 | docker: |
| 17 | client: |
| 18 | stack: |
| 19 | monitoring: |
| 20 | network: |
| 21 | monitoring: |
| 22 | driver: overlay |
| 23 | driver_opts: |
| 24 | encrypted: 1 |
| 25 | service: |
| 26 | gainsight: |
| 27 | networks: |
| 28 | - monitoring |
| 29 | deploy: |
| 30 | replicas: 1 |
| 31 | labels: |
| 32 | com.mirantis.monitoring: "gainsight" |
| 33 | restart_policy: |
| 34 | condition: any |
| 35 | labels: |
| 36 | com.mirantis.monitoring: "gainsight" |
| 37 | image: ${_param:docker_image_prometheus_gainsight} |
| 38 | volumes: |
| 39 | - ${prometheus:gainsight:dir:config}:${_param:gainsight_config_directory} |
Mateusz Matuszkowiak | 53e861f | 2018-06-26 21:37:09 +0200 | [diff] [blame] | 40 | - ${prometheus:gainsight:dir:crontab}:${_param:gainsight_crontab_directory} |
Mateusz Matuszkowiak | 0d7384b | 2018-06-14 20:25:47 +0200 | [diff] [blame] | 41 | environment: |
Michal Kobus | 14561b0 | 2020-02-14 11:20:40 +0100 | [diff] [blame] | 42 | CLUSTER_ID: "${_param:gainsight_cluster_id}" |
Mateusz Matuszkowiak | 0d7384b | 2018-06-14 20:25:47 +0200 | [diff] [blame] | 43 | PROMETHEUS_URL: "${_param:gainsight_prometheus_url}" |
| 44 | CONFIG_PATH: "${_param:gainsight_config_path}" |
Michal Kobus | 14561b0 | 2020-02-14 11:20:40 +0100 | [diff] [blame] | 45 | SFDC_AUTH_URL: "${_param:gainsight_sfdc_auth_url}" |
| 46 | SFDC_USERNAME: "${_param:gainsight_sfdc_username}" |
| 47 | SFDC_PASSWORD: "${_param:gainsight_sfdc_password}" |
| 48 | SFDC_ORGANIZATION_ID: "${_param:gainsight_sfdc_organization_id}" |
| 49 | SFDC_ENVIRONMENT_ID: "${_param:gainsight_sfdc_environment_id}" |
| 50 | SFDC_SANDBOX_ENABLED: "${_param:gainsight_sfdc_sandbox_enabled}" |