PrometheusConfig
class PrometheusConfig
Configuration options for Prometheus metrics installation in a Ktor application.
Properties
Link copied to clipboard
If true, enables the /metrics HTTP endpoint for Prometheus scraping. Defaults to true.
Link copied to clipboard
If true, each exported metric will include a timestamp alongside its value. This can be useful for certain Prometheus setups or debugging scenarios. Defaults to false.
Link copied to clipboard
The HTTP path where Prometheus metrics will be exposed. Defaults to /metrics.