博客
关于我
InfluxDB搭建及配置
阅读量:509 次
发布时间:2019-03-07

本文共 895 字,大约阅读时间需要 2 分钟。

Blogger 提到的一篇关于 InfluxDB 搭建及配置的文章

一、InfluxDB 安装

在 CentOS 系统上安装 InfluxDB,可按照以下步骤操作:

  • 通过终端输入以下命令下载安装包:
  • wget https://dl.influxdata.com/influxdb/releases/influxdb-1.2.4.x86_64.rpm
    1. 使用 yum 命令进行仓库安装:
    2. yum localinstall influxdb-1.2.4.x86_64.rpm
      1. 启动 InfluxDB 服务并验证运行状态:
      2. systemctl start influxdb.serviceps -ef | grep influxdb

        二、InfluxDB 配置

      3. 打开 InfluxDB 的配置文件进行编辑:
      4. vi /etc/influxdb/influxdb.conf
        1. 配置管理员访问设置:
        2. [admin]enabled = truebind-address = ":8083"
          1. 启用 HTTPS 安全连接(如有需求):
          2. https-enabled = truehttps-certificate = "/etc/ssl/influxdb.pem"

            三、测试

            通过启动服务后,可以通过终端查看 InfluxDB 的运行状态:

            ss -tnulp | grep influxdtcp

            此外,也可以通过浏览器访问 http://localhost:8083 检查管理页面。

            四、Grafana 数据源及报表配置

          3. 在 Grafana 中添加 InfluxDB 数据源:
            • 输入数据源名称(如:InfluxDB)。
            • ền tửemann地址和端口(如:http://localhost:8086)。
            • 输入数据库名称。
            • (可选)配置数据源的用户名和密码。
            1. 配置报表时,可以添加 InfluxDB 中的测量信息举例:
            2. query: SELECT "time" AS time, "value" AS value FROM "your_db"

              通过以上步骤,可以完成 InfluxDB 的安装、配置及数据源的处理。

    转载地址:http://rgqjz.baihongyu.com/

    你可能感兴趣的文章
    python regex_Python RegEx
    查看>>
    python requests post 中文结果请求得到unicode
    查看>>
    Python Requests接口自动化测试实战
    查看>>
    Python requests模块
    查看>>
    python request与grequests该如何选择
    查看>>
    python request模块
    查看>>
    Python requirements.txt的使用方法
    查看>>
    Python REST(Web 服务)框架的推荐?
    查看>>
    Python rsa 加密
    查看>>
    Python RSA操作
    查看>>
    Python轻松实现统计学中重要的相关性分析
    查看>>
    Python scrapy 常见问题及解决 【遇到的坑】
    查看>>
    Python Seborn热图数据的动态更新
    查看>>
    Python Seborn绘制空白直方图
    查看>>
    Python Selenium - 获取href值
    查看>>
    Python Selenium实现自动化测试及Chrome驱动使用!
    查看>>
    Python Selenium搭建UI自动化测试框架
    查看>>
    Python Selenium模块详解
    查看>>
    Python selenium爬取影评生成词云图
    查看>>
    python selenium自动化测试报告
    查看>>