community.grafana.grafana_annotations callback – send ansible events as annotations on charts to grafana over http api.
Note
This callback plugin is part of the community.grafana collection (version 1.6.1).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.grafana
.
You need further requirements to be able to use this callback plugin,
see Requirements for details.
To use it in a playbook, specify: community.grafana.grafana_annotations
.
Callback plugin
This plugin is a notification callback. It sends information for a playbook run to other applications, services, or systems. See Callback plugins for more information on callback plugins.
Synopsis
This callback will report start, failed and stats events to Grafana as annotations (https://grafana.com)
Requirements
The below requirements are needed on the local controller node that executes this callback.
whitelisting in configuration
Parameters
Parameter |
Comments |
---|---|
Grafana API key, allowing to authenticate when posting on the HTTP API. If not provided, grafana_login and grafana_password will be required. Configuration:
|
|
The grafana dashboard id where the annotation shall be created. Configuration:
|
|
The grafana panel ids where the annotation shall be created. Give a single integer or a comma-separated list of integers. Default: Configuration:
|
|
Grafana password used for authentication. Ignored if grafana_api_key is provided. Default: Configuration:
|
|
Grafana annotations api URL Configuration:
|
|
Grafana user used for authentication. Ignored if grafana_api_key is provided. Default: Configuration:
|
|
The HTTP ‘User-agent’ value to set in HTTP requets. Default: Configuration:
|
|
validate the SSL certificate of the Grafana server. (For HTTPS url) Choices:
Configuration:
|