---
title: "ezgh obs metrics labels"
description: "List label names."
---

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

# ezgh obs metrics labels

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh obs metrics labels [--match selector]… [flags]
```

List the label names of the project's metric series: all of them, or those of series matching `--match` (a series selector such as `up` or `http_server_request_duration_seconds_count{job="api"}`, repeatable). Without `--from`, the last 6 hours.

Part of [`ezgh obs metrics`](/cli/reference/obs-metrics).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--environment` | string |  | only this environment's series (adds environment="…" to each selector) |
| `--from` | string |  | start of the time range (default: the server's, 6h ago) |
| `--limit` | int |  | at most this many (default: the server's cap) |
| `--match` | string, repeatable |  | only labels of series matching this selector (repeatable) |
| `--to` | string |  | end of the time range (default now) |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/obs-metrics-labels/index.mdx
