rafal-szypulka / grafana-ibm-apm

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

Variables. Query of other elements. #23

Open AleksandrSumkin opened 5 years ago

AleksandrSumkin commented 5 years ago

Grafana v5.4.3 ITM v06.30.07.00 IBM APM datasource v0.8 (downloaded git release) RHEL 7.6

Hi

How to get list of disks on the server or list of queues on the queue manger? Variable can be used in conditions (for filtering results).

i tried but it didn't work. Now for all query is added the string '/datasets/msys/items?properties=all'. URL is brouken.

Example:

test query (list cpu ids):

TMSAgent.%25IBM.STATIC134/datasets/MetricGroup.KLZCPU/items?&optimize=true&param_SourceToken=skarsv100:LZ&properties=CPUID

result (url is malformed): 169.44.6.110/api/datasources/proxy/2/datasources/TMSAgent.%25IBM.STATIC134/datasets/MetricGroup.KLZCPU/items?&optimize=true&param_SourceToken=skarsv100:LZ&properties=CPUID/datasets/msys/items?properties=all

image

rafal-szypulka commented 5 years ago

Hi, Currently variable templates supports only lists of agents instances per agent type. Here is the place where template variable request URL is assembled: https://github.com/rafal-szypulka/grafana-ibm-apm/blob/master/src/datasource.ts#L139 PRs are welcome!

AleksandrSumkin commented 5 years ago

Hi, Tthank you for answer! And thanks for your work! You mark this as enhancement, it is will be very powerfull tool for create detalied dashboards with crosslink! It looks simple, but I am is not a programmer (vbs is max of my skill). I will wait for the update. :)