Get information from Alertmanager.
Version added: 0.3.0
- Get information from Alertmanager.
- https://alertmanager.io/docs/alertmanager/latest/management_api/
The below requirements are needed on the host that executes this module.
- requests
- name: get health of alertmanager
community.missing_collection.alertmanager_info:
scheme: 'http'
host: 'localhost'
port: '9093'
command: 'healthy'
- name: get ready of alertmanager
community.missing_collection.alertmanager_info:
scheme: 'http'
host: 'localhost'
port: '9093'
command: 'ready'
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
result
string
|
when success. |
result of the api request.
Sample:
OK
|
- Davinder Pal (@116davinder) <dpsangwal@gmail.com>