In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install grafana in Linux and add influxdb monitoring, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
Install grafana. The ubuntu installation package is provided on the official website. Install it directly.
Wget https://dl.grafana.com/oss/release/grafana_6.5.1_amd64.deb dpkg-I grafana_6.5.1_amd64.deb update-rc.d grafana-server defaults 95 10service grafana-server start
Add and query data using influxdb's http api
Add data
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
Query data
Curl-GET 'http://127.0.0.1:8086/query?pretty=true'-data-urlencode "db=sinamail"-data-urlencode "q=SELECT * FROM webface where httpstatus='404'"
Add influxdb data sources for grafana
Query the table data to draw a line chart
{"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], [15752121600,0], [1575212220000, 0]}]} on how to install grafana in Linux and add influxdb monitoring, that's all for sharing here. I hope the above content can be of some help to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.