Skip to main content

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([15m])’ —bucket my-bucketTop 5 pods by log volume over the last hour $ nebius logging metrics ‘topk(5, rate([5m])) by (k8s_pod_name)’ —bucket my-bucket —since 1hCount log lines per level $ nebius logging metrics ‘sum by (level)(count_over_time([5m]))’ —bucket my-bucket —step 5mInstant query: log count by level $ nebius logging metrics ‘sum by (level)(count_over_time([1h]))’ —bucket my-bucket —instantLog 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.

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)

Enable debug logs.

--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.