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 Name | Type | Required | Default | Description |
|---|---|---|---|---|
| EnablePrometheusHttpListener | bool | No | true | Whether to enable the probe |
| PrometheusHttpListenerUri | string | No | http://127.0.0.1:9184/ | Metrics endpoint address |
| AddRuntimeInstrumentation | bool | No | true | Whether to collect .NET runtime metrics |
| AddLmesMetrics | bool | No | true | Whether to collect LMES metrics |
| DiagnosticsMetrics | string | No | - | 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.
Related Nodes
- DotNetCounterActivity: Performance Counter Node
- DotNetStackActivity: Stack Trace Node
Update History
| Date | Version | Description |
|---|---|---|
| 2025-11-28 | 1.0 | Initial version |
Last updated: 2025-11-28