blob: 4cd45f7e455457b501a253d161acbe7406666e38 [file] [log] [blame]
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +02001classes:
2- system.prometheus.gainsight.container
3parameters:
4 _param:
Michal Kobus14561b02020-02-14 11:20:40 +01005 gainsight_cluster_id: '${_param:cluster_domain}'
Mateusz Matuszkowiakb1f04e42018-06-20 14:04:16 +02006 gainsight_prometheus_url: "http://${_param:stacklight_monitor_address}:15010"
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +02007 gainsight_config_directory: '/srv/gainsight'
Mateusz Matuszkowiak53e861f2018-06-26 21:37:09 +02008 gainsight_crontab_directory: '/etc/cron.d'
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +02009 gainsight_config_path: "${_param:gainsight_config_directory}/config.ini"
Michal Kobus14561b02020-02-14 11:20:40 +010010 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 Matuszkowiak0d7384b2018-06-14 20:25:47 +020016 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 Matuszkowiak53e861f2018-06-26 21:37:09 +020040 - ${prometheus:gainsight:dir:crontab}:${_param:gainsight_crontab_directory}
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +020041 environment:
Michal Kobus14561b02020-02-14 11:20:40 +010042 CLUSTER_ID: "${_param:gainsight_cluster_id}"
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +020043 PROMETHEUS_URL: "${_param:gainsight_prometheus_url}"
44 CONFIG_PATH: "${_param:gainsight_config_path}"
Michal Kobus14561b02020-02-14 11:20:40 +010045 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}"