blob: 755fbf8929bcf882583dc71357028f19380f8e53 [file] [log] [blame]
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +02001classes:
2- system.prometheus.gainsight.container
3parameters:
4 _param:
Mateusz Matuszkowiak489c84b2018-06-28 14:29:20 +02005 gainsight_enabled: 'true'
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +02006 gainsight_csv_upload_url: 'http://localhost:9999'
7 gainsight_account_id: 'default'
8 gainsight_environment_id: 'default'
9 gainsight_app_org_id: 'default'
10 gainsight_access_key: 'default'
11 gainsight_job_id: 'default'
12 gainsight_login: 'default'
Mateusz Matuszkowiakb1f04e42018-06-20 14:04:16 +020013 gainsight_prometheus_url: "http://${_param:stacklight_monitor_address}:15010"
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +020014 gainsight_config_directory: '/srv/gainsight'
Mateusz Matuszkowiak53e861f2018-06-26 21:37:09 +020015 gainsight_crontab_directory: '/etc/cron.d'
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +020016 gainsight_config_path: "${_param:gainsight_config_directory}/config.ini"
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +020017 docker:
18 client:
19 stack:
20 monitoring:
21 network:
22 monitoring:
23 driver: overlay
24 driver_opts:
25 encrypted: 1
26 service:
27 gainsight:
28 networks:
29 - monitoring
30 deploy:
31 replicas: 1
32 labels:
33 com.mirantis.monitoring: "gainsight"
34 restart_policy:
35 condition: any
36 labels:
37 com.mirantis.monitoring: "gainsight"
38 image: ${_param:docker_image_prometheus_gainsight}
39 volumes:
40 - ${prometheus:gainsight:dir:config}:${_param:gainsight_config_directory}
Mateusz Matuszkowiak53e861f2018-06-26 21:37:09 +020041 - ${prometheus:gainsight:dir:crontab}:${_param:gainsight_crontab_directory}
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +020042 environment:
43 CSV_UPLOAD_URL: "${_param:gainsight_csv_upload_url}"
44 ACCOUNT_ID: "${_param:gainsight_account_id}"
45 ENVIRONMENT_ID: "${_param:gainsight_environment_id}"
46 APP_ORG_ID: "${_param:gainsight_app_org_id}"
47 ACCESS_KEY: "${_param:gainsight_access_key}"
48 JOB_ID: "${_param:gainsight_job_id}"
49 LOGIN: "${_param:gainsight_login}"
50 PROMETHEUS_URL: "${_param:gainsight_prometheus_url}"
51 CONFIG_PATH: "${_param:gainsight_config_path}"
Mateusz Matuszkowiak489c84b2018-06-28 14:29:20 +020052 ENABLED: "${_param:gainsight_enabled}"