blob: 0cdb4b810bb82b964c18277ca09f52bdfe6e3bff [file] [log] [blame]
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +02001classes:
2- system.prometheus.gainsight.container
3parameters:
4 _param:
5 gainsight_csv_upload_url: 'http://localhost:9999'
6 gainsight_account_id: 'default'
7 gainsight_environment_id: 'default'
8 gainsight_app_org_id: 'default'
9 gainsight_access_key: 'default'
10 gainsight_job_id: 'default'
11 gainsight_login: 'default'
Mateusz Matuszkowiakb1f04e42018-06-20 14:04:16 +020012 gainsight_prometheus_url: "http://${_param:stacklight_monitor_address}:15010"
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +020013 gainsight_config_directory: '/srv/gainsight'
Mateusz Matuszkowiak53e861f2018-06-26 21:37:09 +020014 gainsight_crontab_directory: '/etc/cron.d'
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +020015 gainsight_config_path: "${_param:gainsight_config_directory}/config.ini"
16 docker_image_prometheus_gainsight: 'docker-prod-local.artifactory.mirantis.com/openstack-docker/gainsight:nightly'
17 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}"