# Callback with grafana

**URL:** <https://forum.ansible.com/t/callback-with-grafana/29578>\
**Category:** Ansible Project\
**Created:** [January 31, 2019, 1:36am UTC](https://forum.ansible.com/t/callback-with-grafana/29578 "2019-01-31T01:36:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafael\_Tomelin](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Post date:** [January 31, 2019, 1:36am UTC](https://forum.ansible.com/t/callback-with-grafana/29578/1 "2019-01-31T01:36:41Z")

</div>

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/](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\_url = [http://grafana.mydomain.com:3000](http://grafana.mydomain.com:3000)  
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?

---

<div class="post-metadata">

**Author:** ![Rafael\_Tomelin](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Post date:** [January 31, 2019, 2:03am UTC](https://forum.ansible.com/t/callback-with-grafana/29578/2 "2019-01-31T02:03:45Z")

</div>

I configuration replace ‘grafana\_url = [http://grafana.mydomain.com:3000](http://grafana.mydomain.com:3000)’ to ‘grafana\_url = [http://grafana.mydomain.com:3000/API/annotations](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.
