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

Get Jolokia metric java.lang:name=ConcurrentMarkSweep,type=GarbageCollector #1693

Closed
ihard opened this issue Aug 31, 2016 · 0 comments
Closed
Labels
bug unexpected problem or unintended behavior

Comments

@ihard
Copy link
Contributor

ihard commented Aug 31, 2016

Ubuntu 14.04
telegraf 1.0.0-rc1-1

I am trying to get metrics via jolokia and send to graphite

[[inputs.jolokia.metrics]]
name = "last_gc_info"
mbean = "java.lang:name=ConcurrentMarkSweep,type=GarbageCollector"
attribute = "LastGcInfo"

[[outputs.graphite]]
servers = ["127.0.0.1:2003"]
prefix = ""
template = "host.tags.measurement.field"
timeout = 2

and generate metrics:
hostname.telegraf.127_0_0_1.app.8088.jolokia.last_gc_info_memoryUsageAfterGc_CMS_Old_Gen "map[init:1.34217728e+08_committed:1.34217728e+08_max:1.34217728e+08_used:3.7298032e+07]" 1472657380 hostname.telegraf.127_0_0_1.app.8088.jolokia.last_gc_info_memoryUsageBeforeGc_Compressed_Class_Space "map[init:0_committed:7.110656e+06_max:1.073741824e+09_used:6.722632e+06]" 1472657380 hostname.telegraf.127_0_0_1.app.8088.jolokia.last_gc_info_memoryUsageAfterGc_Compressed_Class_Space "map[max:1.073741824e+09_used:6.722632e+06_init:0_committed:7.110656e+06]" 1472657380 hostname.telegraf.127_0_0_1.app.8088.jolokia.last_gc_info_memoryUsageAfterGc_Par_Survivor_Space "map[init:1.3369344e+07_committed:1.3369344e+07_max:1.3369344e+07_used:2.085712e+06]" 1472657380 hostname.telegraf.127_0_0_1.app.8088.jolokia.last_gc_info_memoryUsageBeforeGc_Par_Survivor_Space "map[init:1.3369344e+07_committed:1.3369344e+07_max:1.3369344e+07_used:2.085712e+06]" 1472657380 hostname.telegraf.127_0_0_1.app.8088.jolokia.last_gc_info_memoryUsageAfterGc_Metaspace "map[committed:5.7442304e+07_max:-1_used:5.6037976e+07_init:0]" 1472657380 hostname.telegraf.127_0_0_1.app.8088.jolokia.last_gc_info_memoryUsageBeforeGc_Metaspace "map[init:0_committed:5.7442304e+07_max:-1_used:5.6037976e+07]" 1472657380 hostname.telegraf.127_0_0_1.app.8088.jolokia.last_gc_info_startTime 6.30074714e+08 1472657380 hostname.telegraf.127_0_0_1.app.8088.jolokia.last_gc_info_duration 184 1472657380

how to get the normal metrics?

@sparrc sparrc mentioned this issue Aug 31, 2016
3 tasks
@jwilder jwilder added the bug unexpected problem or unintended behavior label Sep 1, 2016
@sparrc sparrc closed this as completed Dec 13, 2016
@sparrc sparrc reopened this Dec 13, 2016
@sparrc sparrc closed this as completed in 393f504 Dec 13, 2016
njwhite pushed a commit to njwhite/telegraf that referenced this issue Jan 31, 2017
maxunt pushed a commit that referenced this issue Jun 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants