Skip to main content
Version: Next

PrometheusActivity

Category: System Diagnostics Namespace: CMS.Plugin.FlowManagement.Domain.FlowBusiness.Activitys Base Class: BusinessActivity Module: FlowManagement.Domain

Overview​

PrometheusActivity (Monitoring Probe) is a node used to enable Prometheus monitoring in the process. It inherits from BusinessActivity and uses OpenTelemetry to collect metrics and expose them via an HTTP endpoint for Prometheus, which can be viewed in Grafana.

Configuration Description​

Property NameTypeRequiredDefaultDescription
EnablePrometheusHttpListenerboolNotrueWhether to enable the probe
PrometheusHttpListenerUristringNohttp://127.0.0.1:9184/Metrics endpoint address
AddRuntimeInstrumentationboolNotrueWhether to collect .NET runtime metrics
AddLmesMetricsboolNotrueWhether to collect LMES metrics
DiagnosticsMetricsstringNo-Other metric names (comma separated)

Usage Examples​

{
"Type": "PrometheusActivity",
"Name": "Enable Monitoring Probe",
"Alias": "EnablePrometheus",
"EnablePrometheusHttpListener": true,
"PrometheusHttpListenerUri": "http://0.0.0.0:9184/",
"AddRuntimeInstrumentation": true,
"AddLmesMetrics": true
}

Notes​

  • 💡 Metrics endpoint defaults to http://127.0.0.1:9184/metrics
  • 💡 Monitoring probe automatically closes when the process stops.
  • ⚠️ Ensure the port is not in use.

Update History​

DateVersionDescription
2025-11-281.0Initial version

Last updated: 2025-11-28