Metric for a number of running workflows

Hi,
I want to make a grafana dashboard with current number of running workflows of each type. Cant find correct metric from Temporal server though.
Could you give an idea how to achieve it?

Hi, currently I think best way is to use visibility data for this, so vis query that includes something like:


ExecutionStatus="Running" and WorkflowType="xyz..."

could use CountWorkflowExecutions api if you want just the numbers or ListWorkflowExecutions if you need more info.