This repository was archived by the owner on Aug 13, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 22
33Automatically publish annotations in grafana when you execute your playbooks !
44
5+ # Configuration
6+
7+ The configuration can be set through ansible cfg by declaring te callback section.
8+ The following configuration represent the default values:
9+
10+ ```
11+ [callback_grafana_annotations]
12+
13+ grafana_url = "http://127.0.0.1:3000/api/annotations"
14+ validate_grafana_certs = 1
15+ http_agent = 'Ansible (grafana_annotations callback)'
16+ grafana_user = ansible
17+ grafana_password = ansible
18+ ```
19+
20+ The configuration can be overridden using environment variables.
21+ Check the DOCUMENTATION string to have the full list of parameters.
22+
523# Quickstart
624
725* Copy the callback_plugins directory in you playbook directory
@@ -27,7 +45,7 @@ $ export GRAFANA_USER=<your_grafana_user>
2745$ export GRAFANA_PASSWORD=<your_grafana_user_password>
2846```
2947
30- * Run you playbook:
48+ * Run your playbook:
3149```
3250$ ansible-playbook test.yml
3351```
Original file line number Diff line number Diff line change 1+ [callback_grafana_annotations]
2+
3+ grafana_url = " http://127.0.0.1:3000/api/annotations"
Original file line number Diff line number Diff line change 1- ansible == 2.4
1+ ansible == 2.5
22pycodestyle == 2.3.1
Original file line number Diff line number Diff line change 22 connection : local
33 tasks :
44 - debug :
5- msg : " Hello world"
5+ msg : " Hello world"
66 - command : sleep 2
You can’t perform that action at this time.
0 commit comments