If required, you can add a custom monitoring endpoint to Prometheus, such as Calico, etcd, or Telegraf.
To add a custom monitoring endpoint:
Log in to the Salt Master node.
Configure the prometheus:server
section in the
classes/cluster/cluster_name/stacklight/server.yml
file of the Reclass
model as required. Add the monitoring endpoint IP and port.
Example:
prometheus:
server:
target:
static:
endpoint_name:
endpoint:
- address: 1.1.1.1
port: 10
- address: 2.2.2.2
port: 10
Apply the Salt formula:
salt -C 'I@docker:swarm and I@prometheus:server' state.sls prometheus.server -b1