spring-boot/spring-boot-samples/spring-boot-sample-metrics-opentsdb
2019-03-20 16:30:04 +00:00
..
src Merge branch '1.4.x' into 1.5.x 2019-03-20 16:30:04 +00:00
docker-compose.yml Add support for metric export to OpenTSDB 2015-05-13 13:56:02 +01:00
pom.xml Update build and setup configuration to use HTTPS 2019-03-19 16:48:30 +00:00
README.adoc Polish 2015-11-21 08:12:21 +01:00

Spring Boot sample with Open TSDB export for metrics.

Start opentsdb, e.g. with [Docker Compose]()

[source,indent=0]
----
$ docker-compose up
----

Run the app and ping the home page (http://localhost:8080) a few times. Go and look at
the result in the TSD UI, e.g.

[source,indent=0]
----
	$ curl localhost:4242/api/query?start=1h-ago&m=max:counter.status.200.root
	[
  		{
    		"metric": "counter.status.200.root",
    		"tags": {
      			"prefix": "spring.b968a76"
    		},
    		"aggregateTags": [],
    		"dps": {
      			"1430492872": 2,
      			"1430492875": 6
    		}
  		}
	]
----