# Metric Management

Contents

* [Metric Management](https://docs.hostedgraphite.com/sending-metrics/metric-management)
  * [Finding Your Metrics](#finding-your-metrics)
  * [Viewing Metrics](#viewing-metrics)
  * [Deleting Metrics](#deleting-metrics)

### [Finding Your Metrics](#finding-your-metrics)

By navigating to the Metrics menu and entering a search term into the box, you can search for your metrics. The \* operator is used to add a wider search to your metric name. In this example “counters.foo\*” searches for any metrics starting with “counters.foo”. The metric search follows the same format as that of the Graphite composer. Additionally, you can click on the number of ‘matches’ to render a full list of metrics that match your search pattern.

<figure><img src="https://495119770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZtHmoGZNsmARIViZEdbz%2Fuploads%2FXEp3mcGyxSje7dyfvQyG%2Fmetrics-search-example-v2.png?alt=media&#x26;token=e4b14b9a-a8f5-407c-80ef-6fe25d521045" alt=""><figcaption><p>Metrics Search Example</p></figcaption></figure>

* To find your **tagged metrics**, navigate to the Tag Search feature of the Hosted Graphite application. Read more about sending and graphing tagged metrics in our *Tagged Metrics Guide*.

### [Viewing Metrics](#viewing-metrics)

Selecting the “Quick view” button next to a metric name will bring you to a quick Graphite graph of that metric’s usage in the last 1 hour (with avg, max, min, sum data views). Clicking the “View in Grafana” button will take you directly to a dashboard panel where you can dig into the metric in more detail.

<figure><img src="https://495119770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZtHmoGZNsmARIViZEdbz%2Fuploads%2Fi6XqeRWNDJuCiomONMbp%2Fquick-view-example.png?alt=media&#x26;token=9937eba9-a66e-40ca-ae5d-510e11798535" alt=""><figcaption><p>Quick View Example</p></figcaption></figure>

### [Deleting Metrics](#deleting-metrics)

If you no longer need a metric, you can select and delete it or delete all metrics matching the search pattern you have entered. As we run a large distributed system and deletes have a lower priority than new data coming in, deletes can take up to 30 minutes to be processed fully. In the interim, you should not send the same metric names.

<figure><img src="https://495119770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZtHmoGZNsmARIViZEdbz%2Fuploads%2F38AaPrdMuVbMZXcycnnD%2Fimage.png?alt=media&#x26;token=7a47bec5-a956-41cf-acae-e24037a87720" alt=""><figcaption><p>Deleting a metric</p></figcaption></figure>

**NOTE: A deleted metric will be recreated if you continue to send data to it.** We do not delete any data until it expires naturally, even if the metric namespace has been deleted. So if you send data to a deleted metric, it will map to and render all of its respective data stored in our backend. Knowing this can be useful because if you want to remove your ‘stale’ metrics, you can simply delete all metrics (\*) and let your active metrics be automatically recreated.

**Expiring Stale Metrics**

See our [Expiry Rules ](https://docs.hostedgraphite.com/account-management/account-settings#metric-expiry)to target metric patterns for deletion if they have not received data for a certain period of time. This is useful if you have metrics from temporary VM instances, and allows you to expire them after a period of inactivity to reduce your **total** number of stored metrics.


---

# 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.hostedgraphite.com/sending-metrics/metric-management.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.
