Click or drag to resize

MetricsMode Enumeration

Used control how or whether a NeonService publishes Prometheus metrics.

Namespace:  Neon.Service
Assembly:  Neon.Service (in Neon.Service.dll) Version: 2.14.0
public enum MetricsMode
  Member nameValueDescription
Disabled0 Metrics publishing is disabled.
Scrape1 Metrics will be scraped by Prometheus.

Metrics will scraped by Prometheus but any port conflicts or any endpoint registration errors thrown by HttpListener on Windows will be ignored.

Note Note
This mode is really intended for test environments where these errors aren't relevent. We don't recommend this for production deployments.
Push3 Metrics will be pushed to a Prometheus Pushgateway.
See Also