debian/0000755000000000000000000000000012305146377007176 5ustar debian/README.Debian0000644000000000000000000000243012305146211011221 0ustar Quickstart for Debian users: - copy /usr/share/doc/libjmxetric-java/jmxetric.xml - for example: mkdir -p /etc/ganglia cp /usr/share/doc/libjmxetric-java/jmxetric.xml /etc/ganglia/jmxetric-tomcat7.xml - edit the file vi /etc/ganglia/jmxetric-tomcat7.xml Replace the default metric name prefix "ProcessName" with something meaningful, e.g: becomes: and then your metrics will have names like: tomcat7_Heap_usage - edit your JVM launch script or config file to add the necessary JVM options, for example, if using the tomcat7 package on Debian: cat >> /etc/default/tomcat7 << EOF # for JMXetric JARLIB=/usr/share/java GANGLIA_ETC=/etc/ganglia JMXETRIC_CFG=${GANGLIA_ETC}/jmxetric-tomcat7.xml JMXETRIC_PARAMS="host=239.2.11.71,port=8649,wireformat31x=true,mode=multicast,config=${JMXETRIC_CFG}" JAVA_OPTS="${JAVA_OPTS} -Xbootclasspath/p:${JARLIB}/oncrpc.jar" JAVA_OPTS="${JAVA_OPTS} -Xbootclasspath/p:${JARLIB}/gmetric4j.jar" JAVA_OPTS="${JAVA_OPTS} -javaagent:${JARLIB}/jmxetric.jar=${JMXETRIC_PARAMS}" EOF - in the above example, it is using a default multicast config host=239.2.11.71,mode=multicast You can change those parameters if using unicast or a different multicast IP - now restart the JVM debian/README.source0000644000000000000000000000030712305146211011340 0ustar This builds the package: git-buildpackage -rfakeroot \ --git-debian-branch=debian \ --git-upstream-branch=master \ --git-upstream-tag='%(version)s' \ -i"'(^.git|^target|pom.xml)'" debian/build.properties0000644000000000000000000000013412305146211012374 0ustar maven.test.skip=true javadoc.dir=build/api manifest=src/main/resources/META-INF/MANIFEST.MF debian/compat0000644000000000000000000000000212305146211010357 0ustar 9 debian/control0000644000000000000000000000160412305146211010565 0ustar Source: jmxetric Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Daniel Pocock Build-Depends: debhelper (>= 9), cdbs (>= 0.4.5.3), default-jdk, remotetea, libgmetric4j-java Build-Depends-Indep: maven-repo-helper (>> 0.5), maven-ant-helper (>> 4), ant, ant-optional Standards-Version: 3.9.5 Homepage: https://github.com/ganglia/jmxetric Vcs-Git: https://github.com/ganglia/jmxetric.git Vcs-Browser: https://github.com/ganglia/jmxetric Package: libjmxetric-java Architecture: all Depends: ${misc:Depends}, remotetea, libgmetric4j-java Description: JMXetric Ganglia metric transmission API jmxetric is a 100% java, configurable Ganglia agent that periodically polls arbitrary JMX attributes and reports their values to Ganglia. . It supports both the v3.1 wire format and the legacy wire format. debian/copyright0000644000000000000000000000251612305146211011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: JMXetric Upstream-Contact: Ganglia community Source: https://github.com/ganglia/jmxetric Files: * Copyright: 2008-2011, Jasper Humphrey 2012-2014, Daniel Pocock License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/libjmxetric-java.docs0000644000000000000000000000002112305146211013257 0ustar etc/jmxetric.xml debian/libjmxetric-java.poms0000644000000000000000000000002412305146211013310 0ustar pom.xml --no-parent debian/rules0000755000000000000000000000142412305146211010242 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/ant.mk PACKAGE := $(DEB_SOURCE_PACKAGE) VERSION := $(shell echo $(DEB_UPSTREAM_VERSION)) JAVA_HOME := /usr/lib/jvm/default-java DEB_JARS := ant-nodeps oncrpc gmetric4j DEB_ANT_BUILD_TARGET := package #javadoc DEB_ANT_BUILDFILE := /usr/share/maven-ant-helper/maven-build.xml DEB_ANT_ARGS := -Dbasedir=$(realpath .) -Dpackage=$(PACKAGE) #API_DOCS := build/api #get-orig-source: # uscan --download-version $(VERSION) --force-download --rename binary-post-install/lib$(PACKAGE)-java:: mh_installpoms -plib$(PACKAGE)-java mh_installjar -plib$(PACKAGE)-java -l pom.xml build/$(PACKAGE)-$(VERSION).jar clean:: mh_clean debian/source/0000755000000000000000000000000012305146211010461 5ustar debian/source/format0000644000000000000000000000001412305146211011667 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000011212305146211010204 0ustar version=3 https://github.com/ganglia/jmxetric/tags .*/tarball/(\d[\d\.]+) debian/changelog0000644000000000000000000000071212305146307011041 0ustar jmxetric (1.0.6-1) unstable; urgency=low * New upstream release -- Daniel Pocock Mon, 03 Mar 2014 19:40:53 +0100 jmxetric (1.0.5-2) unstable; urgency=low * Add sample jmxetric.xml to package -- Daniel Pocock Sat, 01 Mar 2014 20:16:06 +0100 jmxetric (1.0.5-1) unstable; urgency=low * Initial packaging (Closes: #740431) -- Daniel Pocock Sat, 01 Mar 2014 14:36:16 +0100