community.grafana.grafana_annotations – send ansible events as annotations on charts to grafana over http api.
Note
This plugin is part of the community.grafana collection (version 1.3.0).
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
.
To use it in a playbook, specify: community.grafana.grafana_annotations
.
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: “ansible” Configuration:
|
|
Grafana annotations api URL Configuration:
|
|
Grafana user used for authentication. Ignored if grafana_api_key is provided. Default: “ansible” Configuration:
|
|
The HTTP ‘User-agent’ value to set in HTTP requets. Default: “Ansible (grafana_annotations callback)” Configuration:
|
|
validate the SSL certificate of the Grafana server. (For HTTPS url) Choices:
Configuration:
|
Authors
Rémi REY (@rrey)