while true;do curl -i -XPOST 'http://127.0.0.1:8086/write?db=sinamail' --data-binary "webface,ip=10.2.2.1,httpstatus=404 prototype=\"GET /favicon.ico HTTP/1.1\" `date +%s`000000000";done
{
"xhrStatus": "complete",
"request": {
"method": "GET",
"url": "api/datasources/proxy/1/query",
"params": {
"db": "sinamail",
"q": "SELECT count(\"prototype\") FROM \"webface\" WHERE (\"httpstatus\" = '404') AND time >= now() - 15m GROUP BY time(1m) fill(null)",
"epoch": "ms"
},
"data": null,
"precision": "ms"
},
"response": {
"results": [
{
"statement_id": 0,
"series": [
{
"name": "webface",
"columns": [
"time",
"count"
],
"values": [
[
1575211320000,
0
],
[
1575211380000,
0
],
[
1575211440000,
0
],
[
1575211500000,
0
],
[
1575211560000,
1
],
[
1575211620000,
0
],
[
1575211680000,
4
],
[
1575211740000,
8
],
[
1575211800000,
0
],
[
1575211860000,
0
],
[
1575211920000,
41
],
[
1575211980000,
8
],
[
1575212040000,
0
],
[
1575212100000,
0
],
[
1575212160000,
0
],
[
1575212220000,
0
]
]
}
]
}
]
}
}
以上所述是小編給大家介紹的Linux下安裝grafana并且添加influxdb監(jiān)控的方法,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
如果你覺得本文對你有幫助,歡迎轉(zhuǎn)載,煩請注明出處,謝謝!