Mateusz Matuszkowiak | 0d7384b | 2018-06-14 20:25:47 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - system.prometheus.gainsight.container |
| 3 | parameters: |
| 4 | _param: |
Mateusz Matuszkowiak | 489c84b | 2018-06-28 14:29:20 +0200 | [diff] [blame^] | 5 | gainsight_enabled: 'true' |
Mateusz Matuszkowiak | 0d7384b | 2018-06-14 20:25:47 +0200 | [diff] [blame] | 6 | 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 Matuszkowiak | b1f04e4 | 2018-06-20 14:04:16 +0200 | [diff] [blame] | 13 | gainsight_prometheus_url: "http://${_param:stacklight_monitor_address}:15010" |
Mateusz Matuszkowiak | 0d7384b | 2018-06-14 20:25:47 +0200 | [diff] [blame] | 14 | gainsight_config_directory: '/srv/gainsight' |
Mateusz Matuszkowiak | 53e861f | 2018-06-26 21:37:09 +0200 | [diff] [blame] | 15 | gainsight_crontab_directory: '/etc/cron.d' |
Mateusz Matuszkowiak | 0d7384b | 2018-06-14 20:25:47 +0200 | [diff] [blame] | 16 | 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 Matuszkowiak | 53e861f | 2018-06-26 21:37:09 +0200 | [diff] [blame] | 42 | - ${prometheus:gainsight:dir:crontab}:${_param:gainsight_crontab_directory} |
Mateusz Matuszkowiak | 0d7384b | 2018-06-14 20:25:47 +0200 | [diff] [blame] | 43 | 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 Matuszkowiak | 489c84b | 2018-06-28 14:29:20 +0200 | [diff] [blame^] | 53 | ENABLED: "${_param:gainsight_enabled}" |