prometheus get-alertmanagers
Get the Prometheus alertmanager discovery
Description
Returns an overview of the current state of the Prometheus alertmanager discovery. Both the active and dropped Alertmanagers are part of the response
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": {
"activeAlertmanagers": [
{
"url": "http://localhost:9093/api/v2/alerts"
}
],
"droppedAlertmanagers": []
}
}
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.