> ## Documentation Index
> Fetch the complete documentation index at: https://www.datum.net/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Agent home for Datum, with what it is, pricing, and how to act: https://agents.datum.net
> If you can only fetch URLs: read https://www.datum.net/docs/llms.txt in full and open the most specific page for the task. Commands, limits, and field paths are on task, operations, and limits pages, not on section overviews. Pages described as "Documentation is coming soon" are placeholders.
> If you have a shell or can save files: download https://www.datum.net/docs/llms-full.txt (every page, about 740 KB) once and search it with grep, instead of fetching pages one at a time.
> datumctl describes itself: `datumctl api-resources` lists resource types and `datumctl explain <resource>` shows a schema. To act on live resources, use Datum MCP or datumctl. To search the docs, use the Docs MCP server at https://www.datum.net/docs/mcp.

# Metrics Export skill

> Teach agents to configure Prometheus remote write pipelines in Datum Cloud using ExportPolicy resources.

The Metrics Export skill helps agents configure [metrics export](https://www.datum.net/docs/operations/metrics-export.md) pipelines in Datum Cloud. It defines named sources, each with a [MetricsQL](https://docs.victoriametrics.com/victoriametrics/metricsql/) selector, and sinks (Prometheus remote write endpoints) that ship project metrics to external observability platforms such as [Grafana Cloud](https://grafana.com/products/cloud/). It teaches agents the manifest structure the API accepts, how to store credentials in a Secret, and how to check each sink's health.

The skill ships in the `milo-observe` Claude Code plugin, alongside skills for querying project logs and reading the status metrics Datum publishes for your resources.

## Install

```bash Claude Code theme={null}
/plugin marketplace add datum-cloud/claude-code-plugins
/plugin install milo-observe@datum-claude-code-plugins
```

For other agents, copy the [skill folder](https://github.com/milo-os/telemetry/tree/main/claude-plugin/skills/export-metrics) into your agent's skills directory.

> [!NOTE]
>
> Once installed, the skill activates automatically when you ask an agent to work with Metrics Export on Datum. No further configuration needed.

## Capabilities

* List and describe export policies in a project
* Create metrics export pipelines from YAML manifests
* Select exported metrics with MetricsQL selector expressions, or export everything
* Configure Prometheus remote write endpoints with credentials in a `kubernetes.io/basic-auth` Secret
* Tune batching and retry behavior per sink
* Apply changes idempotently
* Preview changes before applying with `datumctl diff` and `--dry-run=server`
* Check the policy's `Ready` condition and each sink's `Accepted` condition
* Delete export policies safely

## How it relates to other Datum surfaces

* **Product docs:** [Metrics Export](https://www.datum.net/docs/operations/metrics-export.md) — the human-facing reference for the export pipeline and ExportPolicy resource
* **Datum MCP:** [Datum MCP](https://www.datum.net/docs/agents/datum-mcp.md) — for agents that need live read/write access to export policies during a session
* **`datumctl`:** [datumctl overview](https://www.datum.net/docs/datumctl/overview.md) — `get`, `describe`, `apply`, `diff`, `delete` commands the skill teaches agents to use
* **Patch:** [Patch](https://www.datum.net/docs/datumctl/ai/assistant.md), Datum's own assistant. When the steps in this skill don't resolve a problem, an agent can ask it with `datumctl assistant chat "QUESTION"` instead of retrying.

## View the full skill

The canonical SKILL.md lives in the `milo-observe` plugin in the [milo-os/telemetry](https://github.com/milo-os/telemetry/tree/main/claude-plugin) repo:

> [card] [On GitHub](https://github.com/milo-os/telemetry/blob/main/claude-plugin/skills/export-metrics/SKILL.md)
>
> Browse the skill source, including frontmatter and full instructions.

> [card] [Raw SKILL.md](https://raw.githubusercontent.com/milo-os/telemetry/main/claude-plugin/skills/export-metrics/SKILL.md)
>
> Direct URL for agents that fetch skills by URL.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.