---
title: List available metrics
description: Get a list of metric definitions with their units, dimensions, names, and other values.
component: pingdirectory
version: 9.3
page_id: pingdirectory:pingdatametrics_server_administration_guide:pd_met_list_available_metrics
canonical_url: https://docs.pingidentity.com/pingdirectory/9.3/pingdatametrics_server_administration_guide/pd_met_list_available_metrics.html
revdate: September 13, 2023
section_ids:
  example: Example
---

# List available metrics

Get a list of metric definitions with their units, dimensions, names, and other values.

The default format is JSON. The servlet will use the HTTP Accept header if no specific format is specified.

|                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| URL              | `/api/v1/metrics\{.format}`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Method           | GET                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| Formats          | JSON, XML                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Query parameters | * `name`

  Limits the results to metrics whose names contain a matching substring. The search is not case-sensitive.

* `type`

  Limits the results to the metrics of the specified type. Possible values include the following:

  * `discreteValued`

  * `continuousValued`

  * `count`

* `group`

  Limits the results to the metrics within the specified group. Possible values include the following:

  * `PingDirectory Server Backend`

  * `Monitoring Data Cache`

  * `Java Virtual Machine`

  * `LDAP`

  * `Entry Balancing`

  * `PingDirectory Server Entry Cache`

  * `External Server`

  * `Host System`

  * `Metric Query`

  * `Monitoring DBMS`

  * `Monitoring Data Processing`

  * `Replication`

  * `Sync Pipe`

* `instanceType`

  Limits the result to metrics that uses the specified instance types as sources. Possible values include the following:

  * `ds`

  * `proxy`

  * `sync`

  * `metrics-server`

* `statistic`

  Limits the results to metrics that provides the specified statistics. Possible values include the following:

  * `count`

  * `average`

  * `maximum`

  * `minimum`

  * `histogram` |

## Example

All metrics in JSON format.

```shell
curl \
  -X GET \
  https://<metricsServerHost>:8080/api/v1/metrics.json
```

All count type metrics in the "PingDirectory Server Backend" group providing either count or average statistics:

```shell
curl \
  -X GET \
  https://<metricsServerHost>:8080/api/v1/metrics.json?type=count&group=ds
%20backend&statistic=count&statistic=average
```

|   |                                                            |
| - | ---------------------------------------------------------- |
|   | Spaces in parameter values can be encoded as `%20` or `t`. |

|               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Response Code | 200 0K                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Response Body | ```json
{
  "found": 7,
  "metrics": [
  {
  "countUnit": {
  "abbreviatedName": "Chkpt",
  "pluralName": "Checkpoints",
  "singularName": "Checkpoint"
  },
  "description": "Number of database checkpoints
  performed by the backend",
  "dimensions": [
  {
  "id": "backend",
  "values": [
  "userroot"
  ]
  }
  ],
  "group": "Directory Server Backend",
  "id": "backend-checkpoints",
  "instanceTypes": [
  "ds"
  ],
  "name": "Backend Checkpoints",
  "shortName": "Checkpoints",
  "statistics": [
  "count"
  ],
  "type": "count"
  },
  ...
``` |
