You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Chart class is using "POST" method to query the /render API. I was wondering why?
As you can see in the method called - GraphiteWebClient-> request sends a null body (true, it's only the default but - it's not overwritten in the aforementioned call). So - it seems there is no reason to use "POST".
My motivation here is that I'm using a Graphite as a service called hostedgraphite. While using "POST" they return the "No Data" png as if the metric doesn't exists, but, "GET" works as expected.
An example query:
I'll post an update after I hear back from hostedgraphite as to why the "POST" isn't working. Regardless, I believe "POST" shouldn't be used if there's no reason for it.
Expected Behavior
Plugin to work seamlessly without any regard to where Graphite is hosted.
The Chart class is using "POST" method to query the
/render
API. I was wondering why?As you can see in the method called - GraphiteWebClient-> request sends a
null
body (true, it's only the default but - it's not overwritten in the aforementioned call). So - it seems there is no reason to use "POST".My motivation here is that I'm using a Graphite as a service called hostedgraphite. While using "POST" they return the "No Data" png as if the metric doesn't exists, but, "GET" works as expected.
An example query:
https://www.hostedgraphite.com/<client_id>/<client_token>/graphite/render?from=1530173184&until=1530173784&width=613&height=220&hideLegend=&tz=Europe%2FHelsinki&_salt=1530173784.000&vTitle=Percent&lineMode=connected&drawNullAsZero=false&graphType=line&majorGridLineColor=%230000003F&minorGridLineColor=%2300000000&_ext=whatever.svg&areaAlpha=0.5&areaMode=all&lineWidth=2&min=0&title=Disk%20_mnt&yUnitSystem=binary&target=alias%28color%28icinga2.icinga2master_soluto_local.services.disk.disk.perfdata._mnt.value%2C%20%27%231a7dd7%27%29%2C%20%27Used%20%28bytes%29%27%29&target=alias%28color%28icinga2.icinga2master_soluto_local.services.disk.disk.perfdata._mnt.max%2C%20%27%23cfd7e6%27%29%2C%20%27Size%20%28bytes%29%27%29
.I'll post an update after I hear back from hostedgraphite as to why the "POST" isn't working. Regardless, I believe "POST" shouldn't be used if there's no reason for it.
Expected Behavior
Plugin to work seamlessly without any regard to where Graphite is hosted.
Current Behavior
The "POST" method creates complications.
Possible Solution
Make the HTTP method configurable.
Steps to Reproduce (for bugs)
Connect insecurelyCheck
box.Context
No graphs were displayed before the method was changed to "GET".
Your Environment
icinga2 --version
): r2.8.4-1The text was updated successfully, but these errors were encountered: