友链
导航
These are the good times in your life,
so put on a smile and it'll be alright
友链
导航
其中的 DELETE 只能删除整个 series,不能只删除部分数据,比如老数据
offset
是 modifier 不能作为删除 series 的条件(只有 {}
才行)
prometheus/pushgateway 只是一个节点,不会自动跟 prometheus 连接,需要在 prometheus 配置抓取 pushgateway
发数据的协议如下:
POST /metrics/job/some_job HTTP/1.1 Accept: application/json, */* Accept-Encoding: gzip, deflate Connection: keep-alive Content-Length: 14 ########## 注意需有 \n Content-Type: application/json Host: 10.10.1.70:30001 User-Agent: HTTPie/0.9.9 some_metric 8 HTTP/1.1 202 Accepted Content-Length: 0 Content-Type: text/plain; charset=utf-8 Date: Fri, 19 May 2017 16:13:03 GMT
用 cli 调试方法如下:
$ echo "some_metric 3.14" | curl --data-binary @- http://localhost:9090/metrics/jobs/some_job $ echo "some_metric 3.14" | http post http://10.10.1.70:30001/metrics/job/some_job
graphite、statsd、influxdb、grafana,每个软件的生命周期都好短