# Export metrics to Prometheus
source: https://docs.chalk.ai/docs/prometheus-telemetry-export

## Push Chalk metrics to a Prometheus remote-write receiver and verify delivery with PromQL.

Use Vector to push metric samples from Chalk to a Prometheus-compatible monitoring service.

### Prepare your destination

You need Metrics Export enabled for your Chalk team, permission to edit telemetry settings, and
access to your monitoring service's metrics query interface.

Get the full Prometheus remote-write URL from your monitoring service, including its write path.
For example:

```text
https://prometheus.example.com/api/v1/write
```

Use the ingestion URL supplied by your provider. The destination must have remote-write receiving
enabled and be reachable from Chalk.

If the destination requires authentication or a tenant header, store its required HTTP headers as a
JSON object in a cloud secret that Chalk can read. For AWS, use Secrets Manager in the account and
region used by Chalk and copy the secret's full ARN. For example, a service that requires a bearer
token and tenant ID would use this secret value:

```json
{
  "Authorization": "Bearer YOUR_TOKEN",
  "X-Scope-OrgID": "YOUR_TENANT_ID"
}
```

Use only the headers required by your destination, with string values. If you need help storing the
secret or granting Chalk access, ask your cloud administrator or Chalk support. You can skip the
secret when your destination does not require custom headers.

### Enable the export in Chalk

- Open Cloud Clusters, select your cluster's Telemetry tab,
and open its telemetry configuration.
- In the guided form, select Vector under Telemetry Runtime. Open
Exporters → Export to Prometheus. If Exporters is missing,
contact Chalk support to check that Metrics Export is enabled for your team.
- Turn on Export Metrics to Prometheus.
- Enter your full remote-write URL in Endpoint URL.
- If you prepared a headers secret, paste its ARN into Headers secret ARN. Otherwise, leave
the field empty.
- Open VRL and add this line to Metrics remap VRL to label the exported metrics. Replace
chalk-production with a fixed name for this export. Preserve any remap code already in the field.

```vrl
.tags.chalk_export = "chalk-production"
```

- Save, review the changes, and confirm the update. Wait for the dashboard to confirm that the
update succeeded. Leave Telemetry enabled.

The label applies to this Prometheus export. You can keep existing Datadog exports enabled at the
same time. New metric samples are sent automatically; historical samples are not backfilled.

### Verify metrics at your destination

Run a few Chalk queries in the environment you configured, then open your monitoring service's
metrics query interface, such as Prometheus or Grafana Explore. Select the data source and tenant
that receive your remote writes, and a time range covering the last 15 minutes.

Run this PromQL selector,
using the label value you configured:

```promql
{chalk_export="chalk-production"}
```

Allow time for collection and ingestion, then refresh the results. Check that the returned series
have the chalk_export label and samples from after you enabled the export.

The export is working when recent metric samples appear at your destination with your label.
You can retain the label to identify Chalk metrics in dashboards and alerts.

If no samples appear, confirm the export is enabled and saved, check the full write URL and required
headers, and verify that your query uses the receiving data source and tenant. If you still see no
data, send Chalk support your Chalk environment, destination URL, label value, and the time you
enabled export. Do not include credentials in the support message.





