# Forge custom metrics

See [Forge custom metrics](https://developer.atlassian.com/platform/forge/monitor-custom-metrics/) for details on setup, use and viewing custom metrics instrumented in your forge app on [developer console](https://developer.atlassian.com/console/myapps)

## Requirements

See [Set up Forge](https://developer.atlassian.com/platform/forge/set-up-forge/) for details of the software required to develop Forge apps.

## Usage

In your Forge app, include the following:

```

import { internalMetrics } from '@forge/metrics';

export const run = async (payload, context) => {
+  const counter = internalMetrics.counter('jiraActions'); // Name should exactly match as registered in developer console
+
+  const jiraIssues = fetch(...);
+  
+  for (const issue of jiraIssues) {
+    counter.incr(); // Increment by 1
+    // Or increment by a specific value
+    counter.incrBy(value);
+  }
+};

```

## Support

See [Get help](https://developer.atlassian.com/platform/forge/get-help/) for how to get help and provide feedback.
