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

Error parsing list of tags #131

Closed
masci opened this issue Mar 3, 2017 · 1 comment
Closed

Error parsing list of tags #131

masci opened this issue Mar 3, 2017 · 1 comment
Milestone

Comments

@masci
Copy link
Contributor

masci commented Mar 3, 2017

JMX-fetch only expects tags to be listed as a map in the YAML file but there are cases when they might be arrays. One example is the output of the template parsing in Service Discovery, see https://github.com/DataDog/dd-agent/blob/69d58afeea2126ab2a7e1e1efba6f3cbdafc7f33/utils/service_discovery/sd_docker_backend.py#L410-#L420

In such cases the error looks like this:

java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.LinkedHashMap
	at org.datadog.jmxfetch.Instance.<init>(Instance.java:71)
	at org.datadog.jmxfetch.App.init(App.java:485)
	at org.datadog.jmxfetch.App.start(App.java:241)
	at org.datadog.jmxfetch.App.main(App.java:122)

We should fix JMX-fetch so it can accept tags in both formats.

@yannmh yannmh added this to the 0.13.0 milestone Mar 3, 2017
@yannmh
Copy link
Member

yannmh commented Mar 3, 2017

Thanks for the details @masci. A fix is coming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants