blob: 6efe1253207c64e0574f1a59f02ea4b6d1ee8d7a [file] [log] [blame]
classes:
- system.prometheus.alertmanager.container
- system.prometheus.pushgateway.container
- system.prometheus.remote_storage_adapter.container
- system.prometheus.server.container
- system.docker.swarm.stack.monitoring.remote_agent
parameters:
docker:
client:
stack:
monitoring:
network:
monitoring:
driver: overlay
driver_opts:
encrypted: 1
service:
relay:
networks:
- monitoring
deploy:
replicas: 2
labels:
com.mirantis.monitoring: "relay"
restart_policy:
condition: any
labels:
com.mirantis.monitoring: "relay"
image: ${_param:docker_image_prometheus_relay}
ports:
- 15016:8080
environment:
PROMETHEUS_RELAY_DNS: 'tasks.monitoring_server'
remote_storage_adapter:
networks:
- monitoring
deploy:
replicas: 1
labels:
com.mirantis.monitoring: "remote_storage_adapter"
restart_policy:
condition: any
labels:
com.mirantis.monitoring: "remote_storage_adapter"
image: ${_param:docker_image_remote_storage_adapter}
ports:
- 15015:${prometheus:remote_storage_adapter:bind:port}
environment:
RSA_BIND_PORT: ${prometheus:remote_storage_adapter:bind:port}
RSA_BIND_ADDRESS: ${prometheus:remote_storage_adapter:bind:address}
RSA_INFLUXDB_RETENTION_POLICY: 'lma'
RSA_INFLUXDB_URL: ${_param:prometheus_influxdb_url}
RSA_INFLUXDB_DB: ${_param:prometheus_influxdb_db}
RSA_INFLUXDB_USERNAME: ${_param:prometheus_influxdb_username}
RSA_INFLUXDB_PASSWORD: ${_param:prometheus_influxdb_password}
alertmanager:
networks:
- monitoring
deploy:
replicas: 2
labels:
com.mirantis.monitoring: "alertmanager"
restart_policy:
condition: any
labels:
com.mirantis.monitoring: "alertmanager"
image: ${_param:docker_image_alertmanager}
ports:
- 15011:${prometheus:alertmanager:bind:port}
volumes:
- ${prometheus:alertmanager:dir:config}:${_param:prometheus_alertmanager_config_directory}
- ${prometheus:alertmanager:dir:data}:${_param:prometheus_alertmanager_data_directory}
environment:
ALERTMANAGER_CONFIG_DIR: ${_param:prometheus_alertmanager_config_directory}
ALERTMANAGER_DATA_DIR: ${_param:prometheus_alertmanager_data_directory}
ALERTMANAGER_BIND_PORT: ${prometheus:alertmanager:bind:port}
ALERTMANAGER_BIND_ADDRESS: ${prometheus:alertmanager:bind:address}
ALERTMANAGER_DISCOVERY_DOMAIN: 'monitoring_alertmanager'
ALERTMANAGER_EXTERNAL_URL: "http://${_param:stacklight_monitor_address}:15011"
pushgateway:
networks:
- monitoring
deploy:
replicas: 2
labels:
com.mirantis.monitoring: "pushgateway"
restart_policy:
condition: any
environment:
PUSHGATEWAY_BIND_PORT: ${prometheus:pushgateway:bind:port}
PUSHGATEWAY_BIND_ADDRESS: ${prometheus:pushgateway:bind:address}
labels:
com.mirantis.monitoring: "pushgateway"
image: ${_param:docker_image_pushgateway}
ports:
- 15012:${prometheus:pushgateway:bind:port}
server:
networks:
- monitoring
deploy:
replicas: 2
labels:
com.mirantis.monitoring: "prometheus"
restart_policy:
condition: any
labels:
com.mirantis.monitoring: "prometheus"
image: ${_param:docker_image_prometheus}
ports:
- 15010:${prometheus:server:bind:port}
volumes:
- ${prometheus:server:dir:config}:${_param:prometheus_server_config_directory}
- ${prometheus:server:dir:data}:${_param:prometheus_server_data_directory}
environment:
PROMETHEUS_CONFIG_DIR: ${_param:prometheus_server_config_directory}
PROMETHEUS_DATA_DIR: ${_param:prometheus_server_data_directory}
PROMETHEUS_BIND_PORT: ${prometheus:server:bind:port}
PROMETHEUS_BIND_ADDRESS: ${prometheus:server:bind:address}
PROMETHEUS_STORAGE_LOCAL_ENGINE: ${prometheus:server:storage:local:engine}
PROMETHEUS_STORAGE_LOCAL_RETENTION: ${prometheus:server:storage:local:retention}
PROMETHEUS_STORAGE_LOCAL_TARGET_HEAP_SIZE: ${prometheus:server:storage:local:target_heap_size}
PROMETHEUS_STORAGE_LOCAL_NUM_FINGERPRINT_MUTEXES: ${prometheus:server:storage:local:num_fingerprint_mutexes}
PROMETHEUS_EXTERNAL_URL: "http://${_param:stacklight_monitor_address}:15010"