Mateusz Matuszkowiak | bdc76b8 | 2018-12-05 15:54:01 +0100 | [diff] [blame] | 1 | classes: |
| 2 | - system.prometheus.gainsight.elasticsearch_container |
| 3 | parameters: |
| 4 | _param: |
| 5 | gainsight_elasticsearch_enabled: 'true' |
| 6 | gainsight_elasticsearch_csv_upload_url: 'http://localhost:9999' |
| 7 | gainsight_elasticsearch_account_id: 'default' |
| 8 | gainsight_elasticsearch_environment_id: 'default' |
| 9 | gainsight_elasticsearch_app_org_id: 'default' |
| 10 | gainsight_elasticsearch_access_key: 'default' |
| 11 | gainsight_elasticsearch_job_id: 'default' |
| 12 | gainsight_elasticsearch_login: 'default' |
| 13 | gainsight_elasticsearch_elasticsearch_vip: ${_param:stacklight_log_address} |
| 14 | gainsight_elasticsearch_config_directory: '/srv/gainsight' |
| 15 | gainsight_elasticsearch_crontab_directory: '/etc/cron.d' |
| 16 | gainsight_elasticsearch_config_path: "${_param:gainsight_elasticsearch_config_directory}/config.ini" |
Mateusz Matuszkowiak | 871b265 | 2018-12-13 12:05:15 +0100 | [diff] [blame] | 17 | gainsight_elasticsearch_csv_retention: 180 |
Mateusz Matuszkowiak | bdc76b8 | 2018-12-05 15:54:01 +0100 | [diff] [blame] | 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_elasticsearch: |
| 29 | networks: |
| 30 | - monitoring |
| 31 | deploy: |
| 32 | replicas: 1 |
| 33 | labels: |
| 34 | com.mirantis.monitoring: "gainsight_elasticsearch" |
| 35 | restart_policy: |
| 36 | condition: any |
| 37 | labels: |
| 38 | com.mirantis.monitoring: "gainsight_elasticsearch" |
| 39 | image: ${_param:docker_image_prometheus_gainsight_elasticsearch} |
| 40 | volumes: |
| 41 | - ${prometheus:gainsight_elasticsearch:dir:config}:${_param:gainsight_elasticsearch_config_directory} |
| 42 | - ${prometheus:gainsight_elasticsearch:dir:crontab}:${_param:gainsight_elasticsearch_crontab_directory} |
Mateusz Matuszkowiak | 871b265 | 2018-12-13 12:05:15 +0100 | [diff] [blame] | 43 | - ${prometheus:gainsight_elasticsearch:dir:csv}:/opt/gainsight/csv |
Mateusz Matuszkowiak | bdc76b8 | 2018-12-05 15:54:01 +0100 | [diff] [blame] | 44 | environment: |
| 45 | CSV_UPLOAD_URL: "${_param:gainsight_elasticsearch_csv_upload_url}" |
| 46 | ACCOUNT_ID: "${_param:gainsight_elasticsearch_account_id}" |
| 47 | ENVIRONMENT_ID: "${_param:gainsight_elasticsearch_environment_id}" |
| 48 | APP_ORG_ID: "${_param:gainsight_elasticsearch_app_org_id}" |
| 49 | ACCESS_KEY: "${_param:gainsight_elasticsearch_access_key}" |
| 50 | JOB_ID: "${_param:gainsight_elasticsearch_job_id}" |
| 51 | LOGIN: "${_param:gainsight_elasticsearch_login}" |
| 52 | ELASTICSEARCH_HOST: "${_param:gainsight_elasticsearch_elasticsearch_vip}" |
| 53 | CONFIG_PATH: "${_param:gainsight_elasticsearch_config_path}" |
| 54 | ENABLED: "${_param:gainsight_elasticsearch_enabled}" |
Mateusz Matuszkowiak | 871b265 | 2018-12-13 12:05:15 +0100 | [diff] [blame] | 55 | RETENTION: ${_param:gainsight_elasticsearch_csv_retention} |