Scraping a Docker swarm service from a Prometheus server that is outside the swarm is not as easy as it might look at a first glance. You have to fetch the metrics of all running service instances, but how to identify and access them?
In this article, I want you to join me on my way to understand how Counters in Prometheus work, and how to query them to get the right information.
Finden können Sie uns auch auf