Commit 7997971b authored by Madhura Bhave's avatar Madhura Bhave

Merge branch '2.1.x'

Closes gh-17815
parents 8a9c60a2 1b62a05c
...@@ -1684,6 +1684,24 @@ Here is an example `scrape_config` to add to `prometheus.yml`: ...@@ -1684,6 +1684,24 @@ Here is an example `scrape_config` to add to `prometheus.yml`:
- targets: ['HOST:PORT'] - targets: ['HOST:PORT']
---- ----
For ephemeral or batch jobs which may not exist long enough to be scraped,
https://github.com/prometheus/pushgateway[Prometheus Pushgateway] support can be used to
expose their metrics to Prometheus. To enable Prometheus Pushgateway support, add the following
dependency to your project:
[source,xml,indent=0]
----
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_pushgateway</artifactId>
</dependency>
----
When the Prometheus Pushgateway dependency is present on the classpath, Spring Boot auto-configures
a `PrometheusPushGatewayManager` bean. This manages the pushing of metrics to a Prometheus Pushgateway.
The `PrometheusPushGatewayManager` can be tuned using properties under `management.metrics.export.prometheus.pushgateway`.
For advanced configuration, you can also provide your own `PrometheusPushGatewayManager` bean.
[[production-ready-metrics-export-signalfx]] [[production-ready-metrics-export-signalfx]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment