-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor code to support different providers * One file left behind * Removed unused libraries and helper classes * Refactor again, now implementing different clients instead of pollers * MBeans client working * Remove some redundant files and bugfix java agent * WIP * Fixed a few bugs * Configuration and flatten refactoring * Shading, configurations, fixes - working version. * Added changelog * PR changes * More PR fixes * Change test application.conf to match the new format * Final - updated log4j
- Loading branch information
Showing
22 changed files
with
660 additions
and
352 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
# The service to poll the JMX metrics from | ||
service { | ||
# Full URL to jolokia. | ||
# Example: http://172.31.63.154:11001/jolokia/ | ||
jolokiaUrl = ${JOLOKIA_URL} | ||
|
||
# Metrics prefix when sent to Graphite is: [service-name].[service-host]. | ||
# This makes it easier to browse metrics by service name (i.e. Log Receiver) and then by machine host/IP | ||
|
||
# Service name | ||
name = ${SERVICE_NAME} | ||
|
||
# Hostname. If not supplied, taking hostname from jolokiaUrl | ||
# Hostname. If not supplied, taking hostname from jolokiaFullUrl | ||
host = ${?SERVICE_HOST} | ||
|
||
poller { | ||
jolokia { | ||
jolokiaFullUrl = ${JOLOKIA_URL} | ||
} | ||
} | ||
} | ||
|
||
graphite { | ||
hostname = ${GRAPHITE_HOST} | ||
port = ${?GRAPHITE_PORT} | ||
} | ||
|
||
intervalInSeconds = ${?INTERVAL_IN_SEC} | ||
metricsPollingIntervalInSeconds = ${?INTERVAL_IN_SEC} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration monitorInterval="30"> | ||
<Appenders> | ||
<RollingFile name="default.file" fileName="/var/log/jmx2graphite/jmx2graphite.log" append="true" | ||
filePattern="/var/log/jmx2graphite/jmx2graphite.%i.log.gz"> | ||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n"/> | ||
<Policies> | ||
<SizeBasedTriggeringPolicy size="10 MB"/> | ||
</Policies> | ||
<DefaultRolloverStrategy max="7"/> | ||
</RollingFile> | ||
|
||
<Console name="default.console" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n"/> | ||
</Console> | ||
</Appenders> | ||
|
||
<Loggers> | ||
|
||
<!-- Enable this line to get a list of metric sent to Graphite --> | ||
<!--<Logger name="io.logz.jmx2graphite" level="trace"> | ||
<AppenderRef ref="default.console"/> | ||
</Logger>--> | ||
|
||
<Root level="info"> | ||
<AppenderRef ref="default.console"/> | ||
<AppenderRef ref="default.file"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.