Callback with grafana

17 views
Skip to first unread message

Rafael Tomelin

unread,
Jan 30, 2019, 8:37:02 PM1/30/19
to ansible...@googlegroups.com
Hello guys,

I'm trying to set up callback not available from the 'https://blog.octo.com/en/walkthrough-watch-your-ansible-deployments-in-grafana/' link, but it is not working and displays the following message:

[DEPRECATION WARNING]: callback grafana_annotations, does not support configuration of 'options', will work for now, but this will be necessary in the future and should be updated,
see the 2.4 portability guide for details. This feature will be removed in version 2.9. Discontinuance warnings can be disabled by setting deprecation_warnings = False in ansible.cfg.
[ERROR]: Could not send message to Grafana: HTTP Error 404: not found

My configuration is as follows /etc/ansible/ansible.cfg:
[standards]
roles_path = / etc / ansible / roles
host_key_checking = False
stdout_callback = yaml
callback_whitelist = grafana_annotations
log_path = /var/log/ansible.log
[callback_grafana_annotations]
grafana_api_key = my_token
validate_grafana_certs = False
grafana_panel_id = 10
callback_plugins = / etc / ansible / callback_plugins /
bin_ansible_callbacks = True

In the / etc / ansible / callback_plugins / directory, it has the following file:
/etc/ansible/callback_plugins/grafana_annotations.py


What may be the problem?

--

Atenciosamente,

Rafael Tomelin

skype: rafael.tomelin

E-mail: rafael....@gmail.com

RHCE      - Red Hat Certified Engineer
PPT-205 - Puppet Certified Professional 2017
Zabbix    - ZABBIX Certified Specialist
LPI3 
ITIL v3

Rafael Tomelin

unread,
Jan 30, 2019, 9:03:48 PM1/30/19
to ansible...@googlegroups.com
I configuration replace 'grafana_url = http://grafana.mydomain.com:3000' to 'grafana_url = http://grafana.mydomain.com:3000/API/annotations' and not report error '[ERROR]: Could not send message to Grafana: HTTP Error 404: not found'.

But, not send data to grafana.
Reply all
Reply to author
Forward
0 new messages