# Rename Metric

### Description

The Rename Metric processor can be used to rename metrics.

### Use

The Rename Metric processor is utilized for renaming metrics. It supports renaming either the entire name of a single metric or the prefix of multiple metrics.

### Supported Types

| Metrics | Logs | Traces |
| ------- | ---- | ------ |
| ✓       |      |        |

### Configuration

<table><thead><tr><th width="99.4765625">Field</th><th>Description</th></tr></thead><tbody><tr><td>Operation</td><td>The operation to perform when renaming a metric. <code>Name</code>: Rename an entire metric. <code>Prefix</code>: Rename the prefix of multiple metrics.</td></tr><tr><td>Old Name</td><td>The name of an incoming metric to rename. Required when <code>Operation</code> is set to <code>Name</code>.</td></tr><tr><td>New Name</td><td>The new name of an incoming metric. Required when <code>Operation</code> is set to <code>Name</code>.</td></tr><tr><td>Old Prefix</td><td>The prefix of incoming metrics to rename. Required when <code>Operation</code> is set to <code>Prefix</code>.</td></tr><tr><td>New Prefix</td><td>The new prefix of incoming metrics. Required when <code>Operation</code> is set to <code>Prefix</code>.</td></tr></tbody></table>

### Example Configuration(s)

#### Renaming A Single Metric

In this configuration, the `system.network.packets` metric is renamed to just `network.traffic`.

**Web Interface**

<figure><img src="https://1405008107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgmiOMzBfoNFwmKJFHMcJ%2Fuploads%2Fgit-blob-7869a593cc98920617321f0db02df99c5e650a66%2Fintegrations-processors-rename-metric-image-1.png?alt=media" alt="Bindplane docs - Rename Metric - image 1"><figcaption></figcaption></figure>

#### Renaming A Metric Prefix

In this configuration, the `system` prefix for host metrics is replaced with `macos`.

**Web Interface**

<figure><img src="https://1405008107-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgmiOMzBfoNFwmKJFHMcJ%2Fuploads%2Fgit-blob-baa2af0b8dfcb314a893b0533e6430fde488b0c8%2Fintegrations-processors-rename-metric-image-2.png?alt=media" alt="Bindplane docs - Rename Metric - image 2"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bindplane.com/integrations/processors/rename-metric.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
