Add a custom monitoring endpoint

Add a custom monitoring endpointΒΆ

If required, you can add a custom monitoring endpoint to Prometheus, such as Calico, etcd, or Telegraf.

To add a custom monitoring endpoint:

  1. Log in to the Salt Master node.

  2. 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
    
  3. Apply the Salt formula:

    salt -C 'I@docker:swarm and I@prometheus:server' state.sls prometheus.server -b1