gbrian / grafana-timelion-datasource

ELK Timelion's data source for Grafana
MIT License
15 stars 12 forks source link

can't create correctly the datasource in grafana #1

Closed brobeckero closed 7 years ago

brobeckero commented 7 years ago

Hello,

I can't seem to access the timelion api from the datasource.

Could you tells me if there is any pre requisite in order to use your datasource ?

elasticsearch version (5.2.2) and configuration item ? grafana version (4.4)

BR Olivier

gbrian commented 7 years ago

Hi @brobeckero,

Sorry forgot about some dark magic needed. As Timelion runs under Kibana it needs some headers on the requests to be present.

This is taken from normal request at Timelion's Kibana interface:

http://kibana5.server.se:5601/api/timelion/run
....
kbn-version:5.3.0
Content-Type:application/json
...

So we need to send the kbn-version and Content-Type headers in order to work. You can test it with postman for example.

Let me know if it worked. Regards

brobeckero commented 7 years ago

Hi,

sorry for my late answer, I was on vacation.

I'm not sure to understand how to configure it on grafana. I don't know where to indicate the header and the content type.

[image: Images intégrées 1]

moreover, I can't use postman cause my kibana is in a closed area.

BR

2017-07-28 11:29 GMT+04:00 Gustavo Brian notifications@github.com:

Hi @brobeckero https://github.com/brobeckero,

Sorry forgot about some dark magic needed. As Timelion runs under Kibana it needs some headers on the requests to be present.

This is taken from normal request at Timelion's Kibana interface:

http://kibana5.sembo.se:5601/api/timelion/run .... kbn-version:5.3.0 Content-Type:application/json ...

So we need to send the kbn-version and Content-Type headers in order to work. You can test it with postman for example.

Let me know if it worked. Regards

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gbrian/grafana-timelion-datasource/issues/1#issuecomment-318582336, or mute the thread https://github.com/notifications/unsubscribe-auth/AclTLSGetLUzDeFT-XJ5VOcfWApFApS8ks5sSY3MgaJpZM4OQkgV .