How Prometheus metrics work on Stackhero

This documentation is part of the Monitor your instances guide. View the full guide here: How to get Prometheus real-time metrics from your Stackhero instances.

Stackhero provides a "Service Discovery" HTTP endpoint that returns real-time metrics from your instances in Prometheus format.

Here is the big picture:

  1. Your Prometheus server connects every 15 seconds to Stackhero's API to retrieve real-time metrics from your instances.
  2. Your Prometheus server triggers alerts using Alert Manager when defined conditions are met.
  3. Your Grafana server connects to your Prometheus server to display dashboards that show your Stackhero instances.