rafal-szypulka / grafana-ibm-apm

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

agent as variable... is it possble? #40

Closed Jion72 closed 3 years ago

Jion72 commented 3 years ago

Hi first of all thank you for your work!

I am experiencing the following problem:

I would like to run a query passing the agent's name as a variable, but it doesn't seem to work

Agent Type - TMSAgent.%IBM.STATIC125 Metric Group - MetricGroup.T6TXCS

Agent Instance: $NODO1 (where nodo1 is like myagent:T6)

request:Object method:"get" url:"api/datasources/proxy/11/datasources/TMSAgent.%25IBM.STATIC125/datasets/MetricGroup.T6TXCS/items" params:Object param_SourceToken:""$NODO1"" not myagent:T6 optimize:"true" param_Time:"20210228T151501--20210228T211501" properties:"SERVTIME,WRITETIME,APPLICATIN" condition:"APPLICATIN = 'myapplication'" <-- this is a correctly valued variable $TX=myapplcation param_refId:805981393523 param_Refresh:1 param_Limit:"20000" data:undefined hideFromInspector:false response:Object msgId:"ATKRST100E" stackTrace:"com.ibm.usmi.console.navigator.model.NavException: (ATKRST100E) ATKRST100E An unexpected error occured. The error message is as follows: 'KFWITM454E Request failed due to offline managed system(s).'.: nested exception is: com.ibm.tivoli.monitoring.provider.navmodel.ITMRuntimeException: KFWITM454E Request failed due to offline managed system(s).

G.

Jion72 commented 3 years ago

sorry, it's my problem .. :)