
com.librato.metrics.reporter.Agent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metrics-librato Show documentation
Show all versions of metrics-librato Show documentation
The LibratoReporter class runs in the background, publishing
metrics to the Librato Metrics API at the
specified interval.
The newest version!
package com.librato.metrics.reporter;
import com.codahale.metrics.Metric;
import com.librato.metrics.client.Versions;
public class Agent {
/**
* a string used to identify the library
*/
public static final String AGENT_IDENTIFIER;
static {
String metricsCoreVersion = Versions.getVersion(
"META-INF/maven/io.dropwizard.metrics/metrics-core/pom.properties",
Metric.class);
String metricsLibratoVersion = Versions.getVersion(
"META-INF/maven/com.librato.metrics/metrics-librato/pom.properties",
LibratoReporter.class);
AGENT_IDENTIFIER = String.format(
"metrics-librato/%s metrics/%s",
metricsLibratoVersion,
metricsCoreVersion);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy