prometheus get-build-info
Get build information properties
Description
Returns various build information properties about the Prometheus server
Synopsis
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:
Output:{
"status": "success",
"data": {
"version": "2.26.0",
"revision": "3cafc58827d1ebd1a67749f88be4218f0bab3d8d",
"branch": "HEAD",
"buildUser": "root@a67cafebe6d0",
"buildDate": "20210331-11:56:23",
"goVersion": "go1.16.2"
}
}
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.