Skip to content

Instantly share code, notes, and snippets.

@kunickiaj
Created January 12, 2016 22:16
Show Gist options
  • Save kunickiaj/a052c751a6efaa8571db to your computer and use it in GitHub Desktop.
Save kunickiaj/a052c751a6efaa8571db to your computer and use it in GitHub Desktop.
StreamSets Data Collector Sample YAML for jmxtrans
# Host/Port Grahpite listens on
graphite_host: "JMXTRANS_GRAPHITE_HOST"
graphite_port: "JMXTRANS_GRAPHITE_PORT"
# Global port to query JMX on
# query_port and global_host_alias are mandatory
# Will accept a blank space if alias and host is provided in host sets
query_port: "JMXTRANS_JMX_PORT"
global_host_alias: "JMXTRANS_JMX_HOST"
# Query definitions, every query needs obj, resultAlias, attr
# from jmxtrans format, "name" must be given for referencing
# the query in host sets
queries:
- name: mempool
obj: "java.lang:type=MemoryPool,name=*"
resultAlias: "memorypool"
attr:
- "Usage"
- name: gc
obj: "java.lang:type=GarbageCollector,name=*"
resultAlias: "gc"
attr:
- "CollectionCount"
- "CollectionTime"
- name: sys
obj: "java.lang:type=OperatingSystem"
resultAlias: "sys"
attr:
- "SystemLoadAverage"
- "AvailableProcessors"
- "TotalPhysicalMemorySize"
- "FreePhysicalMemorySize"
- "TotalSwapSpaceSize"
- "FreeSwapSpaceSize"
- "OpenFileDescriptorCount"
- "MaxFileDescriptorCount"
- name: threads
obj : "java.lang:type=Threading"
resultAlias: "threads"
attr:
- "DaemonThreadCount"
- "PeakThreadCount"
- "ThreadCount"
- "TotalStartedThreadCount"
- name: streamsets
obj : "metrics:name=sdc.pipeline.*"
resultAlias: "streamsets"
attr:
- "Count"
- "Max"
- "Mean"
- "Min"
- "StdDev"
- "Value"
- "50thPercentile"
- "75thPercentile"
- "95thPercentile"
- "98thPercentile"
- "99thPercentile"
- "999thPercentile"
- "FiveMinuteRate"
- "FifteenMinuteRate"
- "MeanRate"
- "OneMinuteRate"
sets:
- setname: StreamSetsBase
query_names:
- mempool
- gc
- streamsets
- sys
- threads
hosts:
- "JMXTRANS_JMX_HOST"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment