Temporal Cloud and SDKs emit metrics that can be used to monitor performance and troubleshoot errors.
While Temporal Cloud emits metrics through a Prometheus HTTP API endpoint, the open-source SDKs require you to set up a Prometheus scrape endpoint for Prometheus to collect and aggregate the Worker and Client metrics.
This article describes how to set up your Temporal Cloud and SDK metrics, and use them as data sources in Grafana.
The process for setting up observability includes the following steps:
- Get Prometheus endpoints for Temporal Cloud metrics and SDK metrics.
- For Temporal Cloud, generate a Prometheus HTTP API endpoint on Temporal Cloud using valid certificates.
- For SDKs, expose a metrics endpoint where Prometheus can scrape SDK metrics and run Prometheus on your host. The examples in this article describe running Prometheus on your local machine where you run your application code.
- Run Grafana and set up data sources for Temporal Cloud and SDK metrics in Grafana. The examples in this article describe running Grafana on your local host where you run your application code.
- Create dashboards in Grafana to view Temporal Cloud metrics and SDK metrics.