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

# Use comments to provide context

> Learn about how to use comments in Palo Alto Networks Cortex XCOR to identify important data.

Metric data provides insights that users can add to queries and dashboards to better
understand their system, especially when investigating issues. To make sense of these
metrics, users often need to consult with experts in their organization, or spend
time sifting through heaps of data to identify which metrics and labels have high
utility.

To provide additional context about open source metrics like Prometheus and
OpenTelemetry metrics, use *comments*. This capability lets you annotate metrics with
information to signify importance, help other users to understand usage context, and
turn informal knowledge into institutional knowledge that can be used across your
organization.

You can add comments to metrics in any of the locations within Palo Alto Networks Cortex XCOR
mentioned on this page. Comments, and responses to comments, persist until the
comments are deleted. This behavior applies to metrics impacted by
[drop rules](https://docs-xcor.paloaltonetworks.com/control/shaping/shape-metrics/rules/drop-rules.md) and
[rollup rules](https://docs-xcor.paloaltonetworks.com/control/shaping/shape-metrics/rules/rollup.md), and comments on metrics and labels
that were removed from queries.

## View comments

You can view a list of recent comments from your [personal home page](https://docs-xcor.paloaltonetworks.com/observe/personal-homepage.md),
and view specific comments in context of the Cortex XCOR entity that they're attached to.

### View recent comments

To view recent comments, use the
[**Recent comments & notes** panel](https://docs-xcor.paloaltonetworks.com/observe/personal-homepage.md#recent-comments) on your
personal home page.

### View contextual comments

Cortex XCOR entities that have comments display a ** message**
icon with a number that indicates how many comments were added.

Choose one of the following options to view comments in context:

> [tab] Metrics Usage
>
> 1. In the navigation menu, click \*\* Go to admin view\*\* and then select
>    \*\* Optimization > Metrics Usage\*\*.
> 2. In the list of metrics, select the metric you want to view comments for and then
>    click **View comments**.

> [tab] Metrics Explorer
>
> > [!NOTE]
> >
> > This feature isn't available to all Palo Alto Networks Cortex XCOR users and
> > might not be visible in your app. For information about enabling this feature in your
> > environment, contact [Cortex XCOR Support](https://docs-xcor.paloaltonetworks.com/support.md).
>
> 1. In the navigation menu, click
>    \*\* Explorers > Metrics Explorer\*\*.
> 2. Click the **Builder** tab.
> 3. In the **Metric** field, enter the name of the metric you want to view.
> 4. Click the metric name to display the most recent or pinned comment.
> 5. To view all comments, click **View all comments**.

> [tab] Changes Explorer
>
> 1. In the navigation menu, click
>    \*\* Explorers >
>    Changes Explorer\*\*.
> 2. [Create a filter](https://docs-xcor.paloaltonetworks.com/investigate/querying/filter-events.md) to focus on specific change
>    events.
> 3. Click the change event you want to view comments for.
> 4. In the **Change event** drawer, click the **Comments** tab to view all available
>    comments for the selected change event.

> [tab] Aggregation Rules
>
> 1. In the navigation menu, click
>    \*\* Optimization > Aggregation Rules\*\*.
> 2. Click the name of the metric you want to view a comment for.
> 3. In the panel with the name of the selected metric, click **View comments**.

> [tab] Drop Rules
>
> 1. In the navigation menu, click
>    \*\* Optimization > Drop Rules\*\*.
> 2. Click the name of the metric you want to view a comment for.
> 3. In the **Edit Drop Rule** panel click the **Comments** tab.

> [tab] Monitors
>
> 1. In the navigation menu, click
>    \*\* Alerting > Monitors\*\*.
> 2. Click the name of the monitor you want to view a comment for.
> 3. In the panel with the name of the selected monitor, click **View comments**.

The **Comments** drawer appears and shows all comments for the selected metric. From
there, you can take [global actions](#global-actions) and
[individual actions](#actions-for-your-comments) for your comments.

## Add comments

If a metric doesn't have any comments, you can add them. If comments were already
added to a metric, you can [view comments](#view-comments) to add additional
comments, or reply to existing ones.

Use [Markdown syntax](https://docs-xcor.paloaltonetworks.com/overview/concepts/markdown.md#write-markdown) to style your
comment, and then click **Show preview** to preview the rendered content before
saving.

To mention a teammate in a comment, either enter their full email address, or enter
`@` and then choose as an option from the suggestions drop-down menu. For refined
suggestions, enter `@` followed by a partial value, such as `@alice`.

To add a chart in a comment, click the ** line chart** icon
to open a dialog that supports PromQL metrics. Enter the metric you want to include
in the chart and then click **Insert**.

Choose one of the following options to add comments:

> [tab] Metrics Usage
>
> 1. In the navigation menu, click \*\* Go to admin view\*\* and then select
>    \*\* Optimization > Metrics Usage\*\*.
> 2. In the list of metrics, select the metric you want to view comments for and then
>    click **Add comment**.
> 3. In the **Comments** drawer, enter your comment.
> 4. Click **Submit** to save your comment.

> [tab] Metrics Explorer
>
> > [!NOTE]
> >
> > This feature isn't available to all Palo Alto Networks Cortex XCOR users and
> > might not be visible in your app. For information about enabling this feature in your
> > environment, contact [Cortex XCOR Support](https://docs-xcor.paloaltonetworks.com/support.md).
>
> 1. In the navigation menu, click
>    \*\* Explorers > Metrics Explorer\*\*.
> 2. Click the **Builder** tab.
> 3. In the **Metric** field, enter the name of the metric you want to add a comment for.
> 4. Click the metric name, and then click **Add comment**.
> 5. In the **Comments** drawer, enter your comment.
> 6. Click **Submit** to save your comment.

> [tab] Changes Explorer
>
> 1. In the navigation menu, click
>    \*\* Explorers > Changes Explorer\*\*.
> 2. [Create a filter](https://docs-xcor.paloaltonetworks.com/investigate/querying/filter-events.md) to focus on specific change
>    events.
> 3. Click the change event you want to add a comment for.
> 4. In the **Change event** drawer, click the **Comments** tab.
> 5. In the **Comment** field, enter your comment.
> 6. Click **Submit** to save your comment.

> [tab] Aggregation Rules
>
> 1. In the navigation menu, click
>    \*\* Optimization > Aggregation Rules\*\*.
> 2. Click the name of the metric you want to add a comment for.
> 3. In the panel with the name of the selected metric, click **Add comment**.
> 4. In the **Comments** drawer, enter your comment.
> 5. Click **Submit** to save your comment.

> [tab] Drop Rules
>
> 1. In the navigation menu, click
>    \*\* Optimization > Drop Rules\*\*.
> 2. Click the name of the metric you want to add a comment for.
> 3. In the **Edit Drop Rule** panel click the **Comments** tab.
> 4. In the **Comments** field, enter your comment.
> 5. Click **Submit** to save your comment.

> [tab] Monitors
>
> 1. In the navigation menu, click
>    \*\* Alerting > Monitors\*\*.
> 2. Click the name of the monitor you want to add a comment for.
> 3. In the panel with the name of the selected monitor, click **Add comment**.
> 4. In the **Comments** drawer, enter your comment.
> 5. Click **Submit** to save your comment.

The **Comments** drawer displays your comment for the selected metric. From
there, you can take [global actions](#global-actions) and
[individual actions](#actions-for-your-comments) on your comment.

## Comment actions

When viewing or adding comments, you can complete global actions and individual actions
as described in the following sections.

### Global actions

The following actions are available to all users for any comment:

* ** link**: Copy a link to a comment.
* ** message**: Reply to an existing comment.
* ** pin**: Pin a comment to the top of the comment
  thread.
* ** checkmark**: Resolve a comment.
* ** refresh**: Reopen a resolved comment.
* **New comment**: Add a new comment to an existing comment.

### Actions for your comments

The following actions are available only for comments that you added:

* ** pencil**: Edit an existing comment.
* ** trash can**: Delete an existing comment.


## Related topics

- [Use monitors to generate alerts and notifications](https://docs-xcor.paloaltonetworks.com/investigate/alerts/monitors.md)
- [Respond to incidents](https://docs-xcor.paloaltonetworks.com/overview/guides/incident-response.md)
- [Use annotations with monitors](https://docs-xcor.paloaltonetworks.com/investigate/alerts/monitors/monitor-annotations.md)
- [Use change events](https://docs-xcor.paloaltonetworks.com/observe/enable-events/use-events.md)
- [Analyze metrics usage](https://docs-xcor.paloaltonetworks.com/investigate/analyze/usage.md)


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