InfluxDB

SkyWalking 后端服务存储配置

老子叫甜甜 提交于 2020-07-27 22:28:49
版本:7.0.0 描述 采集的数据需要存储,提供给相关人员查看系统调用链路信息,因此需要配置存储项。 一般在本地尝鲜可以使用默认的h2数据库。可以很快的部署SkyWalking服务,体验相关功能。 开发环境可以使用MySQL数据库。 测试和生产环境建议使用elasticsearch。 配置 在application.yml里面,配置storage模块。 具体配置项如下: selector:存储选择器 elasticsearch:elasticsearch6.X以下配置项 nameSpace:命名空间,如:SkyWalking clusterNodes:集群节点,如:localhost:9200 protocol:协议,如:HTTP trustStorePath:SSL配置路径 trustStorePass:SSL配置,7.0.0之后可以在secretsManagementFile里面管理 user:用户名,7.0.0之后可以在secretsManagementFile里面管理 password:密码,7.0.0之后可以在secretsManagementFile里面管理 secretsManagementFile:安全管理文件 enablePackedDownsampling:如果开启,则采样索引(小时和天精度)将向下合并到分钟索引中,es7.0.0的一个增强功能,降低50

influxDB

和自甴很熟 提交于 2020-07-27 13:55:41
开源的分布式时序、时间和指标数据库,使用Go语言编写,无需外部依赖。其中,时间序列数据库是数据格式里包含Timestamp字段的数据,比如某一时间用户上网流量、通话详单等。但是,有什么数据不包含Timestamp呢?几乎所有的数据都可以打上一个Timestamp字段。时间序列数据更重要的一个属性是如何去查询它,包括数据的过滤、计算等。 它有三大特性: 时序性(Time Series):与时间相关的函数的灵活使用(例如最大、最小、求和等); 度量(Metrics):对实时大量数据进行计算; 事件(Event):支持任意的事件数据,换句话说,任意事件的数据我们都可以做操作。 个人认为InfluxDB的几个优点: 无特殊依赖,几乎开箱即用(如ElasticSearch需要Java) 自带数据过期功能; 自带权限管理,精细到“表”级别; 原生的HTTP支持,内置HTTP API 强大的类SQL语法,支持min, max, sum, count, mean, median 等一系列函数,方便统计。 自带管理界面(如下图),免插件配置。 InfluxDB基本概念 1、与传统数据库中的名词做比较 InfluxDB中的名词 传统数据库中的概念 database 数据库 measurement 数据库中的表 points 表里面的一行数据 2、InfluxDB中特有的概念 1)Point

Multi-timeseries operations in Grafana

情到浓时终转凉″ 提交于 2020-07-20 07:24:02
问题 How do I subtract two timeseries in Grafana? Or add two together, divide one by another, etc...? I have found vague hints online about taking differences between timeseries, but nothing that actually tells me how to do so. I'm using Grafana v2.0.2 with Influxdb v0.8 and have played around with the graph controls enough to discover things like the difference operator I can apply, but I have no idea how to use it. I've attempted to find documentation on this, but the closest I can find is

Multi-timeseries operations in Grafana

假如想象 提交于 2020-07-20 07:23:11
问题 How do I subtract two timeseries in Grafana? Or add two together, divide one by another, etc...? I have found vague hints online about taking differences between timeseries, but nothing that actually tells me how to do so. I'm using Grafana v2.0.2 with Influxdb v0.8 and have played around with the graph controls enough to discover things like the difference operator I can apply, but I have no idea how to use it. I've attempted to find documentation on this, but the closest I can find is

Convert TAG to FIELD in InfluxDB

谁说胖子不能爱 提交于 2020-07-19 07:11:43
问题 Is it possible to convert a tag (which is string) to make field (like double) which would contain a transformed version of the tag value? Like an QL update expression? 回答1: One could use influx_inspect export to dump the database in the line protocol format. Then relevant columns could be grepped and modified with your favorite tool, like python or sed/bash. And the modified time series could be re-inserted directly into the database (one could use split -l 7000 to split field time series

Convert TAG to FIELD in InfluxDB

我与影子孤独终老i 提交于 2020-07-19 07:11:05
问题 Is it possible to convert a tag (which is string) to make field (like double) which would contain a transformed version of the tag value? Like an QL update expression? 回答1: One could use influx_inspect export to dump the database in the line protocol format. Then relevant columns could be grepped and modified with your favorite tool, like python or sed/bash. And the modified time series could be re-inserted directly into the database (one could use split -l 7000 to split field time series

How do we change the “precision:ms” setting in the Grafana Query Inspector?

被刻印的时光 ゝ 提交于 2020-07-08 11:12:08
问题 I have an InfluxDB database with only x11 data points in it. These data are not displaying correctly (or at least as I would expect) in Grafana when the time between them is shorter than 1ms. If I insert data points 1 ms apart, then everything works as expected and I see all x11 points at the correct times, as shown below.: However, if I delete these points and upload new ones but this time one point per 100 μs, then although the data displays correctly in InfluxDB, in Grafana I see only two

Using InfluxDB difference function

自古美人都是妖i 提交于 2020-06-01 04:36:47
问题 I have some measurement data in my influxdb database which I can query with: select * from E_real_con name: E_real_con time value ---- ----- 1537920001044785525 | 57160036.00 1538006401069651036 | 57227208.00 1538092800108297103 | 57294112.00 1538179200697333731 | 57366108.00 However, "value" is a cumulative value and I would like to get the delta/difference between two consecutive values. I tried the following: SELECT difference(last(value)) FROM E_real_con WHERE time >= now() - 7d GROUP BY

Using InfluxDB difference function

生来就可爱ヽ(ⅴ<●) 提交于 2020-06-01 04:36:07
问题 I have some measurement data in my influxdb database which I can query with: select * from E_real_con name: E_real_con time value ---- ----- 1537920001044785525 | 57160036.00 1538006401069651036 | 57227208.00 1538092800108297103 | 57294112.00 1538179200697333731 | 57366108.00 However, "value" is a cumulative value and I would like to get the delta/difference between two consecutive values. I tried the following: SELECT difference(last(value)) FROM E_real_con WHERE time >= now() - 7d GROUP BY