-
Notifications
You must be signed in to change notification settings - Fork 37
Librato Writer
cyrille-leclerc edited this page Apr 13, 2013
·
1 revision
Send metrics to Librato monitoring metrics service.
- Source: LibratoWriter.java, javadoc
- The Librato Writer uses the POST /v1/metrics HTTP API.
Librato distinguishes 2 types of metrics: counter
(ever increasing values like 'request count') and gauge
(fluctuating values like 'pool size'). The metric type is defined the the jmxtrans query configuration specifying type
for the given attribute
. If no type
is defined, metric are seen as counters.
Sample query configuration with gauge
and counter
metrics:
{
"objectName": "java.lang:type=OperatingSystem",
"attributes": [
{
"name": "SystemLoadAverage",
"type":"gauge"
},
{
"name": "ProcessCpuTime",
"type":"counter"
}
]
}
-
url
: Librato server URL. Optional, default value:https://metrics-api.librato.com/v1/metrics
. -
user
: Librato user. Mandatory. -
token
: Librato token. Mandatory. -
libratoApiTimeoutInMillis
: read timeout of the calls to Librato HTTP API. Optional, default value: 1000. -
enabled
: flag to enable/disable the writer. Optional, default value:true
. -
source
: Librato . Optional, default value:#hostname#
(the hostname of the server).
"outputWriters": [
{
"@class": "org.jmxtrans.embedded.output.LibratoWriter",
"settings": {
"username": "${librato.username:}",
"token": "${librato.token:}",
"enabled": "${librato.enabled:false}"
}
}
]
Note: this sample uses default blank values for username
and token
to allow "zero config" setup on dev environment (by default, "enabled": false
).
- Configuration
- ... Expression Language
- ... Configuration Sample
- Output Writers
- ... Graphite Writer
- ... StatsD Writer
- ... Graphite Pickle Writer
- ... Librato Writer
- ... SLF4J Writer
- ... Stackdriver Writer
- ... CopperEgg Writer
- ... Csv Writer
- ... Console Writer
- Integration
- ... Maven Setup
- ... Spring Integration
- ... Plain Java Servlet Integration
- Configuration Templates
- ... Tomcat
- ... JVM
- Internals
- ... Implementation Decisions
- ... Health Monitoring
- Latest javadocs
- Forum (Google Groups)
- Downloads
- Samples
- ... [Cocktail Web App] (https://github.com/jmxtrans/embedded-jmxtrans-samples/tree/master/embedded-jmxtrans-webapp-coktail)
- License
- Release Notes