Grafana-物联网领域数据可视化工具

家庭能耗图

希望自己的系统中有这样的效果吗?
Grafana是个不错的选择。

什么是Grafana

Grafana允许查询、可视化、报警和理解数据,无论它们存储在何处。但最迷人的一点是,Grafana主要的特点是面向时序数据设计的,这点就非常适合做物联网的朋友。

  • 可视化:具有多种选项的快速灵活的客户端图形。面板插件提供了许多不同的方法来可视化度量和日志。
  • 动态仪表板:使用模板变量创建动态和可重复使用的仪表板,这些模板变量显示为仪表板顶部的下拉列表。
  • 探索指标:通过特殊查询和动态向下钻取来探索数据。拆分视图并并排比较不同的时间范围、查询和数据源。
  • 探索日志:体验从指标切换到带有保留标签过滤器的日志的魔力。快速搜索所有日志或实时流媒体。
  • 警报:直观地定义最重要指标的警报规则。
  • 混合数据源:在同一图表中混合不同的数据源,可以基于每个查询指定数据源。这甚至适用于自定义数据源。

Grafana内置支持的数据源

安装体验

Install with Homebrew

Use Homebrew to install the most recent released version of Grafana using Homebrew package.

  1. On the Homebrew homepage, search for Grafana. The last stable and released version is listed.

  2. Open a terminal and enter:

    brew update
    brew install grafana
    
    

    The brew page downloads and untars the files into:

    • /usr/local/Cellar/grafana/[version] (Homebrew v2)
    • /opt/homebrew/Cellar/grafana/[version] (Homebrew v3)
  3. Start Grafana using the command:

    brew services start grafana
    

Install standalone macOS binaries

To install a nightly build, or to install the latest version of Grafana without Homebrew, go to the Grafana download page.

  1. Select the Grafana version you want to install. By default, the most recent released version is selected.

    Note: The downloads page lists only finished releases. If you want to install a beta version, click [Nightly ] Nightly Builds and then select a version.

  2. Select an Edition.

    • Open Source - Functionally identical to the enterprise version, but you will need to download the enterprise version if you want enterprise features.
    • Enterprise - Recommended download. Functionally identical to the open source version, but includes features you can unlock with a license if you so choose.
  3. Click Mac.

  4. Open a terminal and download the binary using the cURL command. The following example shows Grafana 7.1.5 version:

    curl -O https://dl.grafana.com/oss/release/grafana-7.1.5.darwin-amd64.tar.gz
    
  5. Untar the gz file and copy the files to the location of your preference.

  6. To start Grafana service, go to the directory and run the command:

    ./bin/grafana-server web
    
huangjunlei@192 grafana-9.3.1 % ./bin/grafana-server web
INFO [12-04|01:47:52] Starting Grafana                         logger=settings version=9.3.1 commit=89b365f8b1 branch=HEAD compiled=2022-12-01T20:45:45+08:00
运行效果
运行效果

源码地址

https://github.com/grafana/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容