-
Notifications
You must be signed in to change notification settings - Fork 37
Stackdriver Writer
Cyrille Le Clerc edited this page Aug 19, 2013
·
3 revisions
Send metrics to Stackdriver monitoring custom metrics gateway.
- Source: StackdriverWriter.java, javadoc
- The Stackdriver Writer uses the POST /v1/custom HTTP API.
-
url
: Stackdriver server URL. Optional, default value:https://custom-gateway.stackdriver.com/v1/custom
. -
token
: Stackdriver API key: mandatory, -
stackdriverApiTimeoutInMillis
: read timeout of the calls to Stackdriver HTTP API. Optional, default value: 1000. -
source
: Instance ID for the machine sending the data . Optional, if no instance ID is set then the metrics will be custom metrics not associated with an ID -
detectInstance
: Set to 'AWS' to try to auto-detect the ID of the Amazon EC2 instance that this code is running on using the local HTTP metadata service. If source is specified it will take precedence. Optional.
"outputWriters": [
{
"@class": "org.jmxtrans.embedded.output.StackdriverWriter",
"settings": {
"token": "${stackdriver.apikey}",
"source": "${stackdriver.source}"
}
}
]
Note: You will need to have a Stackdriver (http://www.stackdriver.com) account configured and generate an API key. The source parameter could be filled by a deploy script (or Puppet/Chef) to the local instance ID, or configured manually.
Choose My Account->Account Settings
in the Stackdriver Navigation, then click the Create New API Key
link to make a new API key, or use the value for any existing key under your account by clicking its name. This screenshot illustrates the Account Settings page.
- 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