Our Temporal Cloud integration monitors the performance of your Temporal Cloud data, helping you diagnose issues in your Workflows, Namespaces and durable applications.
Install the infrastructure agent
To use the Temporal Cloud integration, you need to first install the infrastructure agent on the same host. The infrastructure agent monitors the host itself, while the integration you'll install in the next step extends your monitoring with Temporal-specific data such as database and instance metrics.
Configure nri-flex for Temporal Cloud
Temporal Cloud metrics are accessible via https://metrics.temporal.io/v1/metrics, you will need to authenticate with a Temporal Cloud API Key that has metrics read authorization.
Note
Flex requires a New Relic account and is compatible with the following operating systems/platforms:
Linux
Windows
Kubernetes
For more information on compatible distros and versions, see the Infrastructure agent compatibility page.
Create file with named
nri-flex-temporal-cloud-config.ymlin this path:bash$touch /etc/newrelic-infra/integrations.d/Below is a
nri-flexconfiguration file. Be sure to copy and paste its contents into your previously creatednri-flex-temporal-cloud-config.ymlfile, and remember to update your Temporal Cloud API Key:# nri-flex configuration for Temporal Cloud OpenMetrics Endpoint# Place this file in /etc/newrelic-infra/integrations.d/## Prerequisites:# 1. Create a Service Account in Temporal Cloud UI (Settings > Service Accounts)# 2. Assign the "Metrics Read-Only" Account Level Role to the service account# 3. Generate an API key for the service account# 4. Set the TEMPORAL_API_KEY environment variable or replace the placeholder below#integrations:- name: nri-flexinterval: 60stimeout: 30sconfig:name: TemporalCloudMetricsapis:# Collect all Temporal Cloud metrics- name: TemporalCloudevent_type: TemporalCloudSampleurl: https://metrics.temporal.io/v1/metricsheaders:Authorization: Bearer ${TEMPORAL_API_KEY}Accept: application/openmetrics-textprometheus:enable: truecustom_attributes:integration: temporal-cloudsource: openmetricsUse our instructions to restart your infrastructure agent:
bash$sudo systemctl restart newrelic-infra.serviceWait a few minutes until data starts folowing into your New Relic account.
Find your data
You can choose our pre-built dashboard template named Temporal Cloud to monitor your Temporal Cloud metrics. Follow these steps to use our pre-built dashboard template:
From one.newrelic.com, go to the + Integrations & Agents page.
Click on Dashboards.
In the search bar, type Temporal Cloud.
The Temporal Cloud dashboard should appear. Click on it to install it.
Your Temporal Cloud dashboard is considered a custom dashboard and can be found in the Dashboards UI. For docs on using and editing dashboards, see our dashboard docs.
Here is a NRQL query to check the Temporal Cloud frontend service requests grouped by namespace and operation:
FROM TemporalCloudSample SELECT latest(`temporal_cloud_v1_frontend_service_request_count.gauge`) FACET temporal_namespace, operation
What's next?
To learn more about building NRQL queries and generating dashboards, check out these docs:
- Introduction to the query builder to create basic and advanced queries.
- Introduction to dashboards to customize your dashboard and carry out different actions.
- Manage your dashboard to adjust your dashboards display mode, or to add more content to your dashboard.