dhiaayachi / temporal

Temporal service
https://docs.temporal.io
MIT License
0 stars 0 forks source link

Metrics - allow "child_workflow_command" counter to be filtered by namespace #332

Open dhiaayachi opened 2 weeks ago

dhiaayachi commented 2 weeks ago

Currently child_workflow_command is incremented each time history service handler StartChildWorkflow command but its not filterable by namespace. Feature request is to have ability to filter it by ns.

dhiaayachi commented 1 day ago

Thank you for your feature request! It's a good idea to be able to filter child_workflow_command by namespace.

Currently, there's no way to filter this metric by namespace. As a workaround, you can consider using custom metrics and tags to track this information. You can use the Temporal metrics API to track the child_workflow_command count for each namespace. You can then use a monitoring tool like Prometheus or Grafana to visualize this data.

Let me know if you have any other questions.

dhiaayachi commented 1 day ago

Thank you for your feature request! It’s great to see your interest in enhancing Temporal’s capabilities.

While we don't currently offer direct filtering by namespace for child_workflow_command, you can work around this by using the --namespace flag with the temporal history command to view the history events for a specific namespace. You can then manually filter the events for the desired command.

We appreciate your feedback and will consider your request for future enhancements.

dhiaayachi commented 1 day ago

Thank you for your feature request!

Currently, there is no way to filter child_workflow_command by namespace. As a workaround, you can use a custom metric to track child workflows by namespace. You can use the AddMetric API to track these metrics within your workflows.

Please let me know if you have any other questions.