You can integrate Heron with Prometheus to monitor and gather runtime metrics exported by Heron topologies.
Heron supports custom metric exporters from the Metrics Manager. You can either build your own Prometheus metrics sink or use the provided Prometheus sink.
To set up your Heron cluster to export to Prometheus, you need to make two changes to the
metrics_sinks.yaml configuration file:
prometheus-sinkmap to the file that sets values for the parameters listed below. You can uncomment the existing
prometheus-sinkmap to get the default configuration.
|The Java class used to control Prometheus sink behavior|
|The port on which Prometheus will scrape for metrics. Note: You must supply a ||8080|
|The path to a text file that contains the port number to be used by Prometheus for metrics scraping. Note: You must supply a |
|The Prometheus path on which to publish metrics|
|Whether the name of the Heron topology will be included in names for metrics|
|The maximum number of metrics cached and published||1000000|
|The time to live (TTL) for metrics, i.e. the time, in seconds after which a metric that was collected will stop being published||600 (10 minutes)|