rafal-szypulka / grafana-ibm-apm

Grafana datasource plugin for IBM APM
MIT License
28 stars 15 forks source link

Datasource problem #3

Closed sambr7 closed 6 years ago

sambr7 commented 7 years ago

Hi Rafal,

When I add the datasource on Grafana it works correctly, however when I try to copy your dashboards or even create another on my own I got the error "Server response 404" and "Server response: 500".

I'm using ITM63 only as a datasource, here's the connection URI for my server:

http://my.ip.address:15200/ibm/tivoli/rest/providers/itm.hub.myhostname

image

Could you please advise? Thank you.

rafal-szypulka commented 7 years ago

Hi, For ITM6 the connection should be specified in the following form: http://:15200/ibm/tivoli/rest/providers/itm. where TEMS_NAME is a HUB TEMS label (not hostname). Usually it is TEMS or HUB_TEMS. Please check this URL: http://:15200/ITMRESTProvider/test.html, logon as sysadmin then put /ibm/tivoli/rest/providers in the URI field and then click Get. Check the "uri" parameter.

image

If it didn't help, check Troubleshooting section of the plugin documentation. Open Web Browser console and check what request goes to ITM API and what is the response. Example dashboard for Linux OS will work only if you have some Linux OS agents connected to your ITM server.

sambr7 commented 7 years ago

Hi Rafal,

Thanks for your quick response. My URI looks like this:

image

It´s configured exactly as yours, the only difference is that my HUB TEMS name has a dot "." in its name. For example: hub.uname -n...

sambr7 commented 7 years ago

Hi Rafal,

Problem solved. Apparently I had 2 problems:

  1. My HUB TEMS name is hub.hostname and it's not supported (or your datasource can't recognize it), so I've used the Domain Override option to set the standard "TEMS" name into TEPS.
  2. For some reason, authorization policies option was checked. It is unchecked now and it's working fine.

image

Thank you. Best regards,

Samuel Januario

rafal-szypulka commented 7 years ago

Hi Samuel, Glad to hear it works. Do you know which setting solved the problem? TEMS label, authorization policy or both? My guess is that authorization policy could be the reason, as it could limit the data provided by cURI Data Provider. If you could test it (I mean disable both Domain override and authorization policy, reconfigure and restart TEPS) , that would be great. No worries if you can't. If you see these kind of problems, it is always good to check the browser console, because there is a chance you will find more meaningful error message there. Regards, Rafal

sambr7 commented 7 years ago

Hi Rafal,

I've disabled the domain override and reconfigured the Datasource in Grafana and it worked fine for some time (perhaps the cache helped the data to stay in the dashboard). After some time it stopped working and I went through the Datasouce tab in Grafana to check the connection and I've got this:

Object { name: "IBM APM", type: "datasource", id: "ibm-apm-datasource", enabled: false, pinned: false, module: "plugins/ibm-apm-datasource/module", baseUrl: "public/plugins/ibm-apm-datasource", info: Object, includes: null, dependencies: Object, 5 more… } ds_edit_ctrl.js:4:1573 This time I didnt use the "authorization policies" option.

Best regards, Samuel Januario

rafal-szypulka commented 6 years ago

The issue was confirmed by other user. I updated documentation with suggestion that recommended solution is to use TEPS Domain Override option.