Often-Used Queries
Prometheus uses the PromQL query language. This section lists some of the most often-used queries at the flow level.
To Get this Metric | Use this Query |
---|---|
Total number of flows that got successfully executed per app | count(flogo_flow_execution_count{State="Completed"}) by (AppName, FlowName)
|
Total number of flows that failed per app | count(flogo_flow_execution_count{State="Failed"}) by (AppName, FlowName)
|
Total number of flows that executed successfully across all apps
(when you are collecting metrics for multiple apps) |
count(flogo_flow_execution_count{State="Completed"})
|
Total number of flows that failed across all apps
(when you are collecting metrics for multiple apps) |
count(flogo_flow_execution_count{State="Failed"})
|
Total time taken by flows which got executed successfully | sum(flogo_flow_execution_duration_msec{State="Completed"}) by (AppName, FlowName)
|
Total time taken by flows which failed | sum(flogo_flow_execution_duration_msec{State="Failed"}) by (AppName, FlowName)
|
Minimum time taken by the flows that got executed successfully
(what was the minimum time taken by a flow from amongst the flows that executed successfully) |
min(flogo_flow_execution_duration_msec{State="Completed"}) by (AppName)
|
Minimum time taken by flows which failed | min(flogo_flow_execution_duration_msec{State="Failed"}) by (AppName)
|
Maximum time taken by flows which executed successfully | min(flogo_flow_execution_duration_msec{State="Completed"}) by (AppName)
|
Maximum time taken by flows which failed | max(flogo_flow_execution_duration_msec{State="Failed"}) by (AppName)
|
Average time taken by flows which executed successfully | avg(flogo_flow_execution_duration_msec{State="Completed"}) by (AppName, FlowName)
|
Average time taken by flows which failed | avg(flogo_flow_execution_duration_msec{State="Failed"}) by (AppName, FlowName)
|
To Get this Metric | Use this Query |
---|---|
Total number of activities that got successfully executed per flow and app | count(flogo_Activity_execution_count{State="Completed"}) by (AppName, FlowName,ActivityName)
|
Total number of activities that failed per flow and app | count(flogo_Activity_execution_count{State="Failed"}) by (AppName, FlowName,ActivityName)
|
Total number of activities that executed successfully across all apps
(when you are collecting metrics for multiple apps) |
count(flogo_Activity_execution_count{State="Completed"})
|
Total number of activities that failed across all apps
(when you are collecting metrics for multiple apps) |
count(flogo_Activity_execution_count{State="Failed"})
|
Individual time taken by activities which got executed successfully per app and flow | sum(flogo_Activity_execution_duration_msec{State="Failed"}) by (AppName, FlowName,ActivityName)
|
Individual time taken by activities which failed per app and flow | sum(flogo_Activity_execution_duration_msec{State="Failed"}) by (AppName, FlowName,ActivityName)
|
Minimum time taken by the Activity that got executed successfully within a given flow and app | min(flogo_Activity_execution_duration_msec{State="Completed"}) by (AppName, FlowName,ActivityName)
|
Minimum time taken by a failed Activity within a given flow and app | min(flogo_Activity_execution_duration_msec{State="Failed"}) by (AppName, FlowName,ActivityName)
|
Maximum time taken by an Activity which executed successfully within a given flow and app | max(flogo_Activity_execution_duration_msec{State="Completed"}) by (AppName, FlowName,ActivityName)
|
Maximum time taken by an Activity which failed within a given flow and app | max(flogo_Activity_execution_duration_msec{State="Failed"}) by (AppName, FlowName,ActivityName)
|
Average time taken by an Activity which executed successfully within a given flow and app | avg(flogo_Activity_execution_duration_msec{State="Completed"}) by (AppName, FlowName,ActivityName)
|
Average time taken by an Activity which failed within a given flow and app | avg(flogo_Activity_execution_duration_msec{State="Failed"}) by (AppName, FlowName,ActivityName)
|