-
Notifications
You must be signed in to change notification settings - Fork 4
Add support for dashboard and panel ids #10
base: master
Are you sure you want to change the base?
Conversation
9137c40
to
8aa0866
Compare
Thanks a lot for implementing this. I'm getting "Grafana answered with HTTP 302", can we make redirects a valid status code for fetch_url, and also control validate_certs? Taking HTTPS off the URI results in "unknown url type: grafana.redacted.com/api/annotations?tags=ansible&from=1542054051000&to=1542054056000"... I think we need to allow 301/302 for certain reverse proxy setups. |
Since the module uses the ansible helper fetch_url there is a couple of params supported by the module. You can see the list here: https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/urls.py#L1177 So validate_certs is already supported by the module, just add it in your params.
I think the underlying code requires the http/https in the url to determine if a secure ssl connection should be use. I can't change that in the callback.
The fetch_url helper seems to support a |
@rrey Cool... Tried to figure out how to patch fetch_url with that RedirectHandlerFactory on my own but haven't had any luck yet. I'll be here ready to test! Came up with this, still fails with "HTTP Error 302: Found"
|
@rrey It turns out the redirect thing was a peculiarity of my particular Grafana environment, so don't worry about it! We had to put in an exception to bypass SAML/SSO login for the /api/* URI. I'll let you know once I've successfully tested this commit/PR. |
Hey @ageis |
8aa0866
to
bf1c216
Compare
No description provided.