Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After version 0.6 can not select agent type when adding an ITM metric #9

Closed
jripollv opened this issue Nov 2, 2017 · 6 comments
Closed

Comments

@jripollv
Copy link

jripollv commented Nov 2, 2017

After version 0.6 when adding an ITM metric I can not select agent type, it reverts always to Select Agent Type...

@rafal-szypulka
Copy link
Owner

Hmm, for me it works correctly... this dropdown list is built dynamically via API call. You may check in your browser developer tools what http call is done when you click on select agent type dropdown list and what is the result.
After you identify the request (it should be similar to: http://<grafana_url>/api/datasources/proxy/<some_number>/datasources you can use curl to run this request manually and check the results:
curl -u grafana_user:grafana_password http://<grafana_url>/api/datasources/proxy/<some_number>/datasources
How did you install the plugin? git clone ... or from release tgz?

@rafal-szypulka
Copy link
Owner

I think, I recreated the issue on Grafana 4.6. I would recommend to use Grafana 4.5.2 until I fix it.

@rafal-szypulka
Copy link
Owner

I created a test release with a fix that should work on both Grafana 4.5.2 and 4.6.x.
If you want to test it, here are the steps:

Let me know if it works for you.

@jripollv
Copy link
Author

jripollv commented Nov 6, 2017

Now I can add a Metric but I've found something strange in the properties list of the DELETE method:
There is a Select Display Item.. property (?):

xhrStatus:"complete"
request:Object
method:"DELETE"
url:"api/datasources/proxy/2/datasources/TMSAgent.%25IBM.STATIC021/datasets/MetricGroup.NTMEMORY"
params:Object
param_SourceToken:"Primary:SPMON:NT"
optimize:"true"
param_Time:"20171030T111142--20171106T111142"
properties:"TOTMEMKB,TIMESTAMP,Select Display Item..."
condition:undefined
param_refId:1294111358580
response:Object

@rafal-szypulka
Copy link
Owner

Yeah.. it looks ugly (if someone notice), but works. It happens only for attribute groups that return single row (no primary key/display item).

@jripollv
Copy link
Author

jripollv commented Nov 7, 2017

Solved in release 0.7 (Grafana version 4.6.1)

@jripollv jripollv closed this as completed Nov 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants