All Projects → rrey → Ansible Callback Grafana Annotations

rrey / Ansible Callback Grafana Annotations

Licence: gpl-3.0
Automatically publish annotations in grafana when you execute your playbooks !

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Ansible Callback Grafana Annotations

Graphite Stack Ansible Vagrant
Provision a complete Graphite, StatsD & Grafana install using Ansible and (optionally) Vagrant
Stars: ✭ 62 (+313.33%)
Mutual labels:  ansible, grafana
Ansible Grafana
Platform for analytics and monitoring
Stars: ✭ 340 (+2166.67%)
Mutual labels:  ansible, grafana
Devops Guide
DevOps Guide - Development to Production all configurations with basic notes to debug efficiently.
Stars: ✭ 4,119 (+27360%)
Mutual labels:  ansible, grafana
Breeze
Deploy a Production Ready Kubernetes Cluster with graphical interface
Stars: ✭ 905 (+5933.33%)
Mutual labels:  ansible
Ansible Meta Dynamic Inventory
Naming is hard. This wrapper script allows you to use set notation with dynamic host groups.
Stars: ✭ 24 (+60%)
Mutual labels:  ansible
Ansible Role Docker
Ansible Role - Docker
Stars: ✭ 845 (+5533.33%)
Mutual labels:  ansible
Ansible Jupyterhub
Ansible role to setup jupyterhub server (deprecated)
Stars: ✭ 14 (-6.67%)
Mutual labels:  ansible
Ansible Lxc
Ansible Connection Plugin for lxc containers (https://linuxcontainers.org/)
Stars: ✭ 18 (+20%)
Mutual labels:  ansible
Openshift Hybridizer
All in One Openshift Cluster Hybrid Cloud Provisioner
Stars: ✭ 13 (-13.33%)
Mutual labels:  ansible
Sysadmintools
Acorn's Server, Workstation, & VM Cluster Automation & Documentation
Stars: ✭ 7 (-53.33%)
Mutual labels:  ansible
Drucker
drucker: Drupal + Docker - Spin up Drupal, Lightning or BLT in seconds.
Stars: ✭ 26 (+73.33%)
Mutual labels:  ansible
Grafana Sunburst Panel
Sunburst panel plugin for Grafana 3.0+
Stars: ✭ 24 (+60%)
Mutual labels:  grafana
Ansible Directadmin
Deploy Directadmin with Ansible
Stars: ✭ 9 (-40%)
Mutual labels:  ansible
Ansible Role Sonarqube
Ansible Role: SonarQube
Stars: ✭ 22 (+46.67%)
Mutual labels:  ansible
Metabase Playbook
Ansible playbook for setup metabase env
Stars: ✭ 13 (-13.33%)
Mutual labels:  ansible
Ansible Collection Gns3
Ansible Collection for GNS3 Server REST API using gns3fy
Stars: ✭ 19 (+26.67%)
Mutual labels:  ansible
Ansible Role Conjur
Grants Conjur machine identity to hosts
Stars: ✭ 12 (-20%)
Mutual labels:  ansible
Ansiblecm
A Docker based Ansible control machine for running playbooks in a consistent environment.
Stars: ✭ 26 (+73.33%)
Mutual labels:  ansible
Cms Grafana Builder
helps you run a grafana server that include aliyun cms dashboard.
Stars: ✭ 26 (+73.33%)
Mutual labels:  grafana
Ansible Transmission
🕹 A TransmissionBT installation role for Ansible
Stars: ✭ 8 (-46.67%)
Mutual labels:  ansible

DEPRECATED: This plugin is now maintained under the Grafana Collection, please report any issue there.

ansible callback grafana_annotations

Automatically publish annotations in grafana when you execute your playbooks ! This callback was accepted in Ansible and should be available in version 2.6

Configuration

The configuration can be set through ansible cfg by declaring te callback section. The following configuration represent the default values:

[callback_grafana_annotations]

grafana_url = "http://127.0.0.1:3000/api/annotations"
validate_grafana_certs = 1
http_agent = 'Ansible (grafana_annotations callback)'
grafana_user = ansible
grafana_password = ansible

The configuration can be overridden using environment variables. Check the DOCUMENTATION string to have the full list of parameters.

Quickstart

  • Copy the callback_plugins directory in you playbook directory
  • Export the required environement variables:
$ export GRAFANA_URL=<your_grafana_url>

The URL must be the Grafana annotations api URL, example: http://<some_address>/api/annotations The protocal can be either http or https.

For token based authentication:

$ export GRAFANA_API_KEY=<your_grafana_api_key>

For basic http authentication:

$ export GRAFANA_USER=<your_grafana_user>
$ export GRAFANA_PASSWORD=<your_grafana_user_password>
  • Run your playbook:
$ ansible-playbook test.yml
  • See the deployment in grafana: Grafana annotations

Restrict the annotations to a specific dashboard

If the annotations should be restricted to a particular dashboard, you can specify its dashboard id through the dedicated environment variable:

$ export GRAFANA_DASHBOARD_ID=<the_grafana_dashboard_id>

Restrict the annotations to a specific panel in a dashboard

If the annotations should be restricted to a particular panel in a dashboard, you can specify both dashboard id and panel id through the dedicated environment variables:

$ export GRAFANA_DASHBOARD_ID=<the_grafana_dashboard_id>
$ export GRAFANA_PANEL_ID=<the_grafana_panel_id>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].