After you deploy Elasticsearch and Kibana as described in Install the system-level Stacklight LMA services, proceed to configuring and installing Prometheus-based StackLight LMA.
Warning
If any of the steps below fail, do not proceed without resolving the issue.
To install the StackLight LMA components:
Log in to the Salt Master node.
Install Telegraf:
salt -C 'I@telegraf:agent or I@telegraf:remote_agent' state.sls telegraf
This formula installs the Telegraf package, generates configuration files, and starts the Telegraf service.
Configure Prometheus exporters:
salt -C 'I@prometheus:exporters' state.sls prometheus
Configure Fluentd:
salt -C 'I@fluentd:agent' state.sls fluentd.agent
Install MongoDB:
salt -C 'I@mongodb:server' state.sls mongodb
Generate the configuration for services running in Docker Swarm:
salt -C 'I@docker:swarm and I@prometheus:server' state.sls prometheus -b 1
Deploy Prometheus long-term storage.
salt -C 'I@prometheus:relay' state.sls prometheus
Deploy the monitoring containers:
salt -C 'I@docker:swarm:role:master and I@prometheus:server' state.sls docker
Configure the Grafana client:
salt -C 'I@grafana:client' state.sls grafana.client
Customize the alerts as described in MCP Operations Guide: Alerts that require tuning.
Proceed to Verify the StackLight LMA components after deployment.