zoukankan      html  css  js  c++  java
  • InfluxDB学习之InfluxDB的基本概念

     

    一、与传统数据库中的名词做比较

    influxDB中的名词 传统数据库中的概念
    database 数据库
    measurement 数据库中的表
    points 表里面的一行数据

    二、InfluxDB中独有的概念

    1)Point

    Point由时间戳(time)、数据(field)、标签(tags)组成。

    Point相当于传统数据库里的一行数据,如下表所示:

    Point属性 传统数据库中的概念
    time 每个数据记录时间,是数据库中的主索引(会自动生成)
    fields 各种记录值(没有索引的属性)也就是记录的值:温度, 湿度
    tags 各种有索引的属性:地区,海拔
    2)series

    所有在数据库中的数据,都需要通过图表来展示,而这个series表示这个表里面的数据,可以在图表上画成几条线:通过tags排列组合算出来。

    如下所示:

    复制代码
    >show series from cpu
    key
    cpu,cpu=cpu-total,host=ResourcePool-0246-billing07
    cpu,cpu=cpu-total,host=billing07
    cpu,cpu=cpu0,host=ResourcePool-0246-billing07
    cpu,cpu=cpu0,host=billing07
    cpu,cpu=cpu1,host=ResourcePool-0246-billing07
    cpu,cpu=cpu1,host=billing07
    cpu,cpu=cpu10,host=ResourcePool-0246-billing07
    cpu,cpu=cpu10,host=billing07
    cpu,cpu=cpu11,host=ResourcePool-0246-billing07
    cpu,cpu=cpu11,host=billing07
    cpu,cpu=cpu12,host=ResourcePool-0246-billing07
    cpu,cpu=cpu12,host=billing07
    cpu,cpu=cpu13,host=ResourcePool-0246-billing07
    cpu,cpu=cpu13,host=billing07
    cpu,cpu=cpu14,host=ResourcePool-0246-billing07
    cpu,cpu=cpu14,host=billing07
    cpu,cpu=cpu15,host=ResourcePool-0246-billing07
    cpu,cpu=cpu15,host=billing07
    cpu,cpu=cpu16,host=ResourcePool-0246-billing07
    cpu,cpu=cpu17,host=ResourcePool-0246-billing07
    cpu,cpu=cpu18,host=ResourcePool-0246-billing07
    cpu,cpu=cpu19,host=ResourcePool-0246-billing07
    cpu,cpu=cpu2,host=ResourcePool-0246-billing07
    cpu,cpu=cpu2,host=billing07
    cpu,cpu=cpu20,host=ResourcePool-0246-billing07
    cpu,cpu=cpu21,host=ResourcePool-0246-billing07
    cpu,cpu=cpu22,host=ResourcePool-0246-billing07
    cpu,cpu=cpu23,host=ResourcePool-0246-billing07
    cpu,cpu=cpu3,host=ResourcePool-0246-billing07
    cpu,cpu=cpu3,host=billing07
    cpu,cpu=cpu4,host=ResourcePool-0246-billing07
    cpu,cpu=cpu4,host=billing07
    cpu,cpu=cpu5,host=ResourcePool-0246-billing07
    cpu,cpu=cpu5,host=billing07
    cpu,cpu=cpu6,host=ResourcePool-0246-billing07
    cpu,cpu=cpu6,host=billing07
    cpu,cpu=cpu7,host=ResourcePool-0246-billing07
    cpu,cpu=cpu7,host=billing07
    cpu,cpu=cpu8,host=ResourcePool-0246-billing07
    cpu,cpu=cpu8,host=billing07
    cpu,cpu=cpu9,host=ResourcePool-0246-billing07
    cpu,cpu=cpu9,host=billing07
    复制代码
  • 相关阅读:
    MSDN Visual系列:利用关联来过滤MOSS中的BDC数据
    SharePoint2007中开箱即用的权限(策略)级别
    SharePoint命令提示符
    使自定义的aspx页面仅用于部分SharePoint站点
    SharePoint 2010 中的站点模板(Site Templates)
    MSDN Visual系列:MOSS企业级搜索之三——创建和使用搜索范围
    推荐《Office SharePoint Server 2007案例实战开发》
    MSDN Visual系列:MOSS企业级搜索之四——创建内容源用于爬网业务数据
    通过主机标头实现多个SharePoint Web应用程序共用一个端口
    MSDN Visual系列:在MOSS中创建一个BDC实体
  • 原文地址:https://www.cnblogs.com/gaoguangjun/p/8512996.html
Copyright © 2011-2022 走看看