blob: 5748034d8689c1dba4996e1d72059bef9d1c2b33 [file] [log] [blame]
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +02001classes:
2- system.prometheus.gainsight.container
3parameters:
4 _param:
azvyagintsev16ca7ce2018-08-21 17:20:33 +03005 mcp_docker_registry: 'docker-prod-local.artifactory.mirantis.com'
Mateusz Matuszkowiak489c84b2018-06-28 14:29:20 +02006 gainsight_enabled: 'true'
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +02007 gainsight_csv_upload_url: 'http://localhost:9999'
8 gainsight_account_id: 'default'
9 gainsight_environment_id: 'default'
10 gainsight_app_org_id: 'default'
11 gainsight_access_key: 'default'
12 gainsight_job_id: 'default'
13 gainsight_login: 'default'
Mateusz Matuszkowiakb1f04e42018-06-20 14:04:16 +020014 gainsight_prometheus_url: "http://${_param:stacklight_monitor_address}:15010"
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +020015 gainsight_config_directory: '/srv/gainsight'
Mateusz Matuszkowiak53e861f2018-06-26 21:37:09 +020016 gainsight_crontab_directory: '/etc/cron.d'
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +020017 gainsight_config_path: "${_param:gainsight_config_directory}/config.ini"
azvyagintsev16ca7ce2018-08-21 17:20:33 +030018 docker_image_prometheus_gainsight: '${_param:mcp_docker_registry}/openstack-docker/gainsight:nightly'
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +020019 docker:
20 client:
21 stack:
22 monitoring:
23 network:
24 monitoring:
25 driver: overlay
26 driver_opts:
27 encrypted: 1
28 service:
29 gainsight:
30 networks:
31 - monitoring
32 deploy:
33 replicas: 1
34 labels:
35 com.mirantis.monitoring: "gainsight"
36 restart_policy:
37 condition: any
38 labels:
39 com.mirantis.monitoring: "gainsight"
40 image: ${_param:docker_image_prometheus_gainsight}
41 volumes:
42 - ${prometheus:gainsight:dir:config}:${_param:gainsight_config_directory}
Mateusz Matuszkowiak53e861f2018-06-26 21:37:09 +020043 - ${prometheus:gainsight:dir:crontab}:${_param:gainsight_crontab_directory}
Mateusz Matuszkowiak0d7384b2018-06-14 20:25:47 +020044 environment:
45 CSV_UPLOAD_URL: "${_param:gainsight_csv_upload_url}"
46 ACCOUNT_ID: "${_param:gainsight_account_id}"
47 ENVIRONMENT_ID: "${_param:gainsight_environment_id}"
48 APP_ORG_ID: "${_param:gainsight_app_org_id}"
49 ACCESS_KEY: "${_param:gainsight_access_key}"
50 JOB_ID: "${_param:gainsight_job_id}"
51 LOGIN: "${_param:gainsight_login}"
52 PROMETHEUS_URL: "${_param:gainsight_prometheus_url}"
53 CONFIG_PATH: "${_param:gainsight_config_path}"
Mateusz Matuszkowiak489c84b2018-06-28 14:29:20 +020054 ENABLED: "${_param:gainsight_enabled}"