---
title: "ezgh obs metrics label-values"
description: "List one label's values."
---

> 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 label-values

{/* 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 label-values <name> [--match selector]… [flags]
```

List the values one label has across the project's metric series, or across those matching `--match` (repeatable). `label-values __name__` lists the metric names. Without `--from`, the last 6 hours.

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

## Examples

```sh
ezgh obs metrics label-values __name__
ezgh obs metrics label-values job --environment production
```

## 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 values on 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-label-values/index.mdx
