spring-boot/spring-boot-samples/spring-boot-sample-metrics-opentsdb
Andy Wilkinson ede197fa55 Polish formatting
Fix formatting issues, primarily around header comments.
2019-06-07 11:33:42 -07:00
..
src Polish formatting 2019-06-07 11:33:42 -07:00
docker-compose.yml
pom.xml Next Development Version 2019-05-14 08:21:02 +00:00
README.adoc

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
    		}
  		}
	]
----