You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/docs/operations/monitoring.md
+17-35Lines changed: 17 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,14 +26,16 @@ under the License.
26
26
27
27
### Built-in Metrics
28
28
29
-
We offer data monitoring for built-in metrics, which includes events and actions. Events provide general-level metrics, while actions deliver both general-level and type-specific data metrics.
29
+
We offer data monitoring for built-in metrics, which includes events and actions.
|**Operator**| numOfEventProcessed | The total number of Events this operator has processed. | Count |
34
+
|**Operator**| numOfEventProcessedPerSec | The number of Events this operator has processed per second. | Meter |
35
+
|**Operator**| numOfActionsExecuted | The total number of actions this operator has executed. | Count |
36
+
|**Operator**| numOfActionsExecutedPerSec | The number of actions this operator has executed per second. | Meter |
37
+
|**Action**| <action_name>.numOfActionsExecuted | The total number of actions this operator has executed for a specific action name. | Count |
38
+
|**Action**| <action_name>.numOfActionsExecutedPerSec | The number of actions this operator has executed per second for a specific action name. | Meter |
37
39
38
40
####
39
41
@@ -43,15 +45,15 @@ In Flink Agents, users implement their logic by defining custom Actions that res
# Creating and tracking metrics for MyEvent using submetric group
83
-
ifisinstance(event, MyEvent):
84
-
sub_metrics = metrics.action_metric_group
85
-
sub_metrics.get_counter("numEvent").inc()
86
-
sub_metrics.get_meter("numEventPerSecond").mark()
87
-
``````
88
-
89
-
69
+
```
90
70
91
71
### How to check the metrics with Flink executor
92
72
93
-
We can check the metric result in the WebUI of Flink Job:
73
+
Flink agents allow reporting metrics to external systems. Please refer to [Flink Metric Reporters](https://nightlies.apache.org/flink/flink-docs-release-1.20/docs/deployment/metric_reporters/) for more details.
74
+
75
+
Additionally, we can check the metric results in the Flink Job WebUI:
94
76
95
77
{{< img src="/fig/operations/metricwebui.png" alt="Metric Web UI" >}}
0 commit comments