To see for ourselves how a custom service discovery behaves, we'll rely on our test environment. The custom-sd binary, which recreates the Consul discovery integration as an example of a custom service discovery, is deployed alongside Prometheus and is ready to be used. Together with the Consul deployment, we have all the required components in the test environment to see how everything fits together.
First, we need to ensure that we are connected to the prometheus instance. We can use the following command: ...