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

# nebius logging metrics

## Name

`nebius logging metrics`

Execute a LogQL metric query and display results as time series, vectors, or scalars.

## Synopsis

```
nebius logging metrics <query>
  --bucket
  --instant
  --project-id
  --since
  --step
  --until
```

## Examples

**Error rate**

```
$ nebius logging metrics 'rate({level="error"}[15m])' --bucket my-bucket
```

**Top 5 pods by log volume over the last hour**

```
$ nebius logging metrics 'topk(5, rate({}[5m])) by (k8s_pod_name)' --bucket my-bucket --since 1h
```

**Count log lines per level**

```
$ nebius logging metrics 'sum by (level)(count_over_time({}[5m]))' --bucket my-bucket --step 5m
```

**Instant query: log count by level**

```
$ nebius logging metrics 'sum by (level)(count_over_time({}[1h]))' --bucket my-bucket --instant
```

**Log count per pod as a table**

```
$ nebius logging metrics 'sum by (k8s_pod_name)(count_over_time({}[5m]))' --bucket my-bucket --step 5m --format table
```

## Positional Arguments

`query`

LogQL metric query using aggregation functions (rate, count\_over\_time, sum, topk, etc.).\

For more information see [https://docs.nebius.com/observability/logs/query-language](https://docs.nebius.com/observability/logs/query-language.md).

## Options

`--bucket` (string)

Log bucket to query. If not specified, you will be prompted to choose from available buckets.

`--instant` (bool)

Evaluate query at a single point in time (--until or now).

`--project-id` (string)

Project ID to query metrics from. Defaults to parent-id from config if not set.

`--since` (string)

Show metrics starting from this time.\

Accepts a duration (7d, 2h, 30m, 10s, 100ms, 1d12h30m, now) of time before now or a timestamp in various formats: ('2006-01-02T15:04:05.999Z', '2006-01-02T15:04:05Z', '2006-01-02 15:04:05', '2006-01-02').\

Default is 24h.

`--step` (string)

Resolution step width (e.g., '5m', '1h'). Default is auto-calculated to \~100 points.

`--until` (string)

Show metrics up to this time.\

Accepts a duration (7d, 2h, 30m, 10s, 100ms, 1d12h30m, now) of time before now or a timestamp in various formats: ('2006-01-02T15:04:05.999Z', '2006-01-02T15:04:05Z', '2006-01-02 15:04:05', '2006-01-02').\

Default is now.

## Global Options

`-h, --help` (bool)

Show this message.

`-p, --profile` (string)

Set a profile for interacting with the cloud.

`--format` (string)

Output format. Supported values: yaml|json|jsonpath|table|text.

`-f, --file` (string)

Input file. For 'update' commands automatically set --full=true.

`-c, --config` (string)

Provide path to config file.

`--debug` (bool)

Write debug logs to stderr. Commands save debug logs in the config directory under logs/, except help and shell completion.

`-I, --impersonate-service-account-id` (string)

Impersonate into the service account and use its token for a command.

`--color` (bool)

Enable colored output.

`--no-browser` (bool)

Do not open browser automatically on auth.

`--insecure` (bool)

Disable transport security.

`--auth-timeout` (duration: 2h30m10s)

Set the timeout for the request including authentication process, default is 15m0s.

`--per-retry-timeout` (duration: 2h30m10s)

Set the timeout for each retry attempt, default is 20s.

`--retries` (uint)

Set the number of retry attempts, 1 is disable retries, default is 3.

`--timeout` (duration: 2h30m10s)

Set the timeout for the main request, default is 1m0s.

`--no-check-update` (bool)

Suppress check for updates.

`--no-progress` (bool)

Suppress progress indicators and spinners.

*Auto generated on 23-Nov-2026*
