rafal-szypulka / grafana-ibm-apm

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

Query in dashboard's variable returns nothing #22

Closed SoldatovAV closed 5 years ago

SoldatovAV commented 5 years ago

Hi Grafana version: 5.3.4 IBM APM datasource version: 0.8.0 (grafana-cli) OS are you running grafana on: Centos 7.5

I added a variable to the dashboard settings to get a list of Windows OS (NT) agents, but the query (TMSAgent.%IBM.STATIC021) returns nothing.

request: GET /api/datasources/proxy/6/datasources/TMSAgent.%25IBM.STATIC021/datasets/msys/items?properties=all HTTP/1.1

response: {"items":[],"filteredRows":0,"identifier":"id","totalRows":0,"numRows":0}

rafal-szypulka commented 5 years ago

Hi, try to run the similar request in ITMRESTProvider UI as described in https://github.com/rafal-szypulka/grafana-ibm-apm#troubleshooting and check if you can see Windows agents instances in json response.

SoldatovAV commented 5 years ago

Hi Rafal,

Thanks for your response. The similar request in ITMRESTProvider UI returns the same: { "filteredRows": 0, "identifier": "id", "items": [ ], "numRows": 0, "totalRows": 0 }

The similar request for Linux agents (/ibm/tivoli/rest/providers/itm.TEMSHUB1/datasources/TMSAgent.%25IBM.STATIC134/datasets/msys/items?properties) works fine and returns Linux agents instances:

{ "filteredRows": 73, "identifier": "id", "items":....

rafal-szypulka commented 5 years ago

It looks the source of the problem is on ITM side. TMSAgent.%IBM.STATIC021 as variable definition looks fine (plugin does URL encode to TMSAgent.%25IBM.STATIC021). I would suggest to open a ticket with ITM support. You may also check the TEPS eWAS SystemOut.log after executing mentioned request in the ITMRESTProvider UI.

rafal-szypulka commented 5 years ago

This issue has been closed because it has been inactive for a long time.