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

Can't generate array of double #43

Open
rotober opened this issue Apr 23, 2018 · 2 comments
Open

Can't generate array of double #43

rotober opened this issue Apr 23, 2018 · 2 comments

Comments

@rotober
Copy link

rotober commented Apr 23, 2018

Hi, I need to generate json messages like the ones produced by CollectD ( a metrics collector among many, but I should use that...).
Messages are like these two:

  • [{"values":[0,0],"dstypes":["derive","derive"],"dsnames":["user","syst"],"time":1519314305.896,"interval":10.000,"host":"host1","plugin":"processes","plugin_instance":"pengine","type":"ps_cputime","type_instance":""}]
  • [{"values":[696],"dstypes":["gauge"],"dsnames":["value"],"time":1519314305.896,"interval":10.000,"host":"host2","plugin":"processes","plugin_instance":"stonithd","type":"ps_stacksize","type_instance":""}]

After lot of configurations I wasn't able to produce a message with {"values":[0,0]......
Seems that are not supported array of values of primitives types.
Have you any suggestion ?
Thanks
R.

@andrewserff
Copy link
Member

Hey @rotober, thanks for pointing this out. You were correct, arrays didn't support primitives. I've just pushed a fix for that. I'll try to release a new version here soon too. Thanks again!

@rotober
Copy link
Author

rotober commented Apr 24, 2018

I have to say thank you for the great job you'done, this is a very useful tool.
BR
Rob

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