[Yandex Cloud documentation](../../../index.md) > [Monium](../../index.md) > Metrics > [Delivering and exporting metrics](../index.md) > Getting a list of metrics

# Getting a list of metrics

To get a list of metrics that belong to a specific cloud and folder, use the [listMetrics](../../api-ref/MetricsMeta/listMetrics.md) method.

### Getting started {#before-you-begin}

To follow the examples in this section:

1. Make sure you have installed [cURL](https://curl.haxx.se) that is used in the examples.
1. [Get the ID of the folder](../../../resource-manager/operations/folder/get-id.md) for which you have the `monitoring.viewer` role or higher.
1. Get an IAM token:
   * [Guide](../../../iam/operations/iam-token/create.md) for a Yandex account user.
   * [Guide](../../../iam/operations/iam-token/create-for-sa.md) for service accounts.
   * [Guide](../../../iam/operations/iam-token/create-for-federation.md) for a federated account.
   * [Guide](../../../iam/operations/iam-token/create-for-local.md) for a local account.

### Request example {#sample-request}

Send the request and save the response to a file, e.g., `output.json`:

```bash
export IAM_TOKEN=CggaATEVAgA...
curl \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer ${IAM_TOKEN}" \
  --get 'https://monitoring.api.cloud.yandex.net/monitoring/v2/metrics/?folderId=b1gucmd4tma1********&pageSize=200' \
  --data-urlencode 'selectors={service="managed-clickhouse", resource_id="c9q5e2a9i24p********"}' > output.json
```

Here is an example of a response to a request that retrieves a list of Managed Service for ClickHouse® metrics for a resource:

**output.json:**
```json
{
   "metrics" : [
      {
         "labels" : {
            "dc" : "rc1c",
            "host" : "rc1c-dqd0h0i0********.mdb.yandexcloud.net",
            "node" : "replica",
            "resource_id" : "c9q5e2a9i24p********",
            "resource_type" : "cluster",
            "service" : "managed-clickhouse",
            "shard" : "c9qdstaf9lfg********"
         },
         "name" : "net.packets_sent",
         "type" : "DGAUGE"
      },
      {
         "labels" : {
            "dc" : "rc1c",
            "host" : "rc1c-dqd0h0i0********.mdb.yandexcloud.net",
            "node" : "replica",
            "resource_id" : "c9q5e2a9i24p********",
            "resource_type" : "cluster",
            "service" : "managed-clickhouse",
            "shard" : "c9qdstaf9lfg********"
         },
         "name" : "disk.free_inodes",
         "type" : "DGAUGE"
      }
    ]
}
```

Where:

* `resource_id`: Resource ID.
* `metrics`: List of metrics.

_ClickHouse® is a registered trademark of [ClickHouse, Inc](https://clickhouse.com)._