Skip to content

Files

Latest commit

53f1df8 · Dec 30, 2016

History

History
This branch is 43734 commits behind spring-projects/spring-boot:main.

spring-boot-sample-metrics-opentsdb

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 30, 2016
Nov 21, 2015
May 13, 2015
Dec 30, 2016

Spring Boot sample with Open TSDB export for metrics.

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

$ 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.

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