blob: 11344b7bdcdc73f98fe19d677998a18fc8d7aad8 [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"
17 docker_image_prometheus_gainsight: 'docker-prod-local.artifactory.mirantis.com/openstack-docker/gainsight:nightly'
18 docker:
19 client:
20 stack:
21 monitoring:
22 network:
23 monitoring:
24 driver: overlay
25 driver_opts:
26 encrypted: 1
27 service:
28 gainsight:
29 networks:
30 - monitoring
31 deploy:
32 replicas: 1
33 labels:
34 com.mirantis.monitoring: "gainsight"
35 restart_policy:
36 condition: any
37 labels:
38 com.mirantis.monitoring: "gainsight"
39 image: ${_param:docker_image_prometheus_gainsight}
40 volumes:
41 - ${prometheus:gainsight:dir:config}:${_param:gainsight_config_directory}
Mateusz Matuszkowiak53e861f2018-06-26 21:37:09 +020042 - ${prometheus:gainsight:dir:crontab}:${_param:gainsight_crontab_directory}
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +020043 environment:
44 CSV_UPLOAD_URL: "${_param:gainsight_csv_upload_url}"
45 ACCOUNT_ID: "${_param:gainsight_account_id}"
46 ENVIRONMENT_ID: "${_param:gainsight_environment_id}"
47 APP_ORG_ID: "${_param:gainsight_app_org_id}"
48 ACCESS_KEY: "${_param:gainsight_access_key}"
49 JOB_ID: "${_param:gainsight_job_id}"
50 LOGIN: "${_param:gainsight_login}"
51 PROMETHEUS_URL: "${_param:gainsight_prometheus_url}"
52 CONFIG_PATH: "${_param:gainsight_config_path}"
Mateusz Matuszkowiak489c84b2018-06-28 14:29:20 +020053 ENABLED: "${_param:gainsight_enabled}"