Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

rrey/ansible-module-grafana-annotations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible module grafana_annotations

Publish annotations in grafana from ansible playbooks/roles.

Build Status

Examples

- name: Create a global annotation without time information
  grafana_annotations:
    addr: "127.0.0.1:3000"
    user: "ansible"
    passwd: "ansible"
    text: "This is an annotation with automatic time value"

- name: Create a global annotation with time annotation
  grafana_annotations:
    addr: "127.0.0.1:3000"
    user: "ansible"
    passwd: "ansible"
    time: 1514822276
    text: "This is an annotation explicitly set at 1514822276"

- name: Test idempotence on region annotation
  grafana_annotations:
    addr: "127.0.0.1:3000"
    user: "ansible"
    passwd: "ansible"
    time: 1514822276
    timeEnd: 1514830000
    text: "This is a global region annotation"

Advices

  • Do not use the admin user to plublish your annotations. Create a dedicated user for ansible or use API tokens.
  • Store the password (or token) in an ansible vault to avoid use of password in clear in the playbooks.