messagebird / pushprom

Pushprom is a proxy to the Prometheus Go client.
https://www.messagebird.com
BSD 2-Clause "Simplified" License
80 stars 13 forks source link

basic work on #13 #19

Closed marcelcorso closed 5 years ago

marcelcorso commented 5 years ago

Create a histogram specifying buckets

curl -H "Content-type: application/json" -X POST -d '{"type": "histogram", "name": "server_handling_seconds", "help": "time spent handling reqs", "method": "observe", "value": 15.8, "buckets": [1,3,6,10,15,20]}' http://127.0.0.1:9091/

pasted_image_at_2018-11-25__2_57_pm

Now don't say anything.. we should get the default ones

curl -H "Content-type: application/json" -X POST -d '{"type": "histogram", "name": "server_handling_seconds_no_buckets", "help": "time spent handling reqs 2", "method": "observe", "value": 15.8}' http://127.0.0.1:9091/

image 13

👍

marcelcorso commented 5 years ago

@kostkobv came to my desk and said he approved it