项目作者: rrey

项目描述 :
Publish annotations in grafana from ansible
高级语言: Python
项目地址: git://github.com/rrey/ansible-module-grafana-annotations.git
创建时间: 2017-12-07T13:29:00Z
项目社区:https://github.com/rrey/ansible-module-grafana-annotations

开源协议:MIT License

下载


Ansible module grafana_annotations

Publish annotations in grafana from ansible playbooks/roles.

Build Status

Examples

  1. - name: Create a global annotation without time information
  2. grafana_annotations:
  3. addr: "127.0.0.1:3000"
  4. user: "ansible"
  5. passwd: "ansible"
  6. text: "This is an annotation with automatic time value"
  7. - name: Create a global annotation with time annotation
  8. grafana_annotations:
  9. addr: "127.0.0.1:3000"
  10. user: "ansible"
  11. passwd: "ansible"
  12. time: 1514822276
  13. text: "This is an annotation explicitly set at 1514822276"
  14. - name: Test idempotence on region annotation
  15. grafana_annotations:
  16. addr: "127.0.0.1:3000"
  17. user: "ansible"
  18. passwd: "ansible"
  19. time: 1514822276
  20. timeEnd: 1514830000
  21. 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.