Skip to content

Latest commit

 

History

History
180 lines (147 loc) · 5.61 KB

community.missing_collection.alertmanager_info_module.rst

File metadata and controls

180 lines (147 loc) · 5.61 KB

community.missing_collection.alertmanager_info

Get information from Alertmanager.

Version added: 0.3.0

The below requirements are needed on the host that executes this module.

  • requests
Parameter Choices/Defaults Comments
command
string
    Choices:
  • healthy ←
  • ready
management command to run.
host
string
Default:
"localhost"
hostname/ip of alertmanager.
port
string
Default:
"9090"
port number of alertmanager.
scheme
string
    Choices:
  • http ←
  • https
http scheme for alertmanager.

- 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


Authors