Skip to content

prometheus get-runtime-info

Get various runtime information

Description

Returns various runtime information properties about the Prometheus server

Synopsis

prometheus get-runtime-info
    [--site <site>]
    [--cluster <cluster>]

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

cluster - (string)

     Name of prometheus cluster
     Example: --cluster "prometheus-default"
     Default: prometheus-default      Attributes: optional

Examples

Input:

! prometheus get-runtime-info
Output:
{
  "status": "success",
  "data": {
    "startTime": "2021-10-13T12:05:08.252857048Z",
    "CWD": "/",
    "reloadConfigSuccess": true,
    "lastConfigTime": "2021-10-13T12:05:09Z",
    "corruptionCount": 0,
    "goroutineCount": 31,
    "GOMAXPROCS": 4,
    "GOGC": "",
    "GODEBUG": "",
    "storageRetention": "15d"
  }
}

Access Control

To use this command, you need access to the following:

Field Value
Action "read"
Service Type "prometheus"
Service Instance cluster
Namespace
Object Type
Object ID

Please see Access Control for details.