debian/ 0000755 0000000 0000000 00000000000 12305146377 007176 5 ustar debian/README.Debian 0000644 0000000 0000000 00000002430 12305146211 011221 0 ustar
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.source 0000644 0000000 0000000 00000000307 12305146211 011340 0 ustar
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.properties 0000644 0000000 0000000 00000000134 12305146211 012374 0 ustar maven.test.skip=true
javadoc.dir=build/api
manifest=src/main/resources/META-INF/MANIFEST.MF
debian/compat 0000644 0000000 0000000 00000000002 12305146211 010357 0 ustar 9
debian/control 0000644 0000000 0000000 00000001604 12305146211 010565 0 ustar 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/copyright 0000644 0000000 0000000 00000002516 12305146211 011120 0 ustar 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.docs 0000644 0000000 0000000 00000000021 12305146211 013257 0 ustar etc/jmxetric.xml
debian/libjmxetric-java.poms 0000644 0000000 0000000 00000000024 12305146211 013310 0 ustar pom.xml --no-parent
debian/rules 0000755 0000000 0000000 00000001424 12305146211 010242 0 ustar #!/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/ 0000755 0000000 0000000 00000000000 12305146211 010461 5 ustar debian/source/format 0000644 0000000 0000000 00000000014 12305146211 011667 0 ustar 3.0 (quilt)
debian/watch 0000644 0000000 0000000 00000000112 12305146211 010204 0 ustar version=3
https://github.com/ganglia/jmxetric/tags .*/tarball/(\d[\d\.]+)
debian/changelog 0000644 0000000 0000000 00000000712 12305146307 011041 0 ustar 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