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

EXEC metric seems to not work #3

Open
tremes opened this issue Feb 24, 2017 · 0 comments
Open

EXEC metric seems to not work #3

tremes opened this issue Feb 24, 2017 · 0 comments

Comments

@tremes
Copy link

tremes commented Feb 24, 2017

This is rather question. I defined EXEC metric and experimenting with basic command label=my-label:/bin/sh:-c:echo 1. Is this correct? It doesn't seems so, because I am getting:

ERROR 2017-02-24 13:02:31.514 [kg.apc.p] (): Couldn't get metrics from: [class kg.apc.perfmon.metrics.PerfMonMetricsCreatorImpl]
ERROR 2017-02-24 13:02:31.514 [kg.apc.p] (): No collector object for metric type exec:/bin/sh:-c:echo
ERROR 2017-02-24 13:02:31.514 [kg.apc.p] (): Error executing command
java.lang.RuntimeException: Invalid metric specified: exec:/bin/sh:-c:echo
at kg.apc.perfmon.metrics.AbstractPerfMonMetric.createMetric(AbstractPerfMonMetric.java:57)
at kg.apc.perfmon.PerfMonMetricGetter.setUpMetrics(PerfMonMetricGetter.java:137)
at kg.apc.perfmon.PerfMonMetricGetter.processCommand(PerfMonMetricGetter.java:61)
at kg.apc.perfmon.PerfMonMetricGetter.processNextCommand(PerfMonMetricGetter.java:100)
at kg.apc.perfmon.PerfMonWorker.read(PerfMonWorker.java:197)
at kg.apc.perfmon.PerfMonWorker.processCommands(PerfMonWorker.java:86)
at kg.apc.perfmon.AgentTool.processParams(AgentTool.java:72)
at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:63)
at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at kg.apc.cmd.UniversalRunner.main(UniversalRunner.java:174)
Caused by: java.lang.RuntimeException: Couldn't get metrics from: [class kg.apc.perfmon.metrics.PerfMonMetricsCreatorImpl]
at kg.apc.perfmon.metrics.PerfMonMetricsService.getMetric(PerfMonMetricsService.java:51)
at kg.apc.perfmon.metrics.AbstractPerfMonMetric.createMetric(AbstractPerfMonMetric.java:48)
... 13 more

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

1 participant