InfluxDB

Is there a client for InfluxDB similar to PgAdmin4 for Postgres

[亡魂溺海] 提交于 2019-12-11 14:55:46
问题 Hi is any one aware of any clients for InfluxDB so that I can visualize the tables inside an influx database. And do that database manipulations using the visual tool. 回答1: There was an admin interface in versions < 1.2. Since 1.3 it was removed from InfluxDB itself and moved to Chronograf. More info is here. 来源: https://stackoverflow.com/questions/49387093/is-there-a-client-for-influxdb-similar-to-pgadmin4-for-postgres

Influx: doing math the same fields in different groups

六月ゝ 毕业季﹏ 提交于 2019-12-11 14:17:01
问题 I have InfluxDB measurement currently set up with following "schema": +----+-------------+-----------+ | ts | cost(field) | type(tag) | +----+-------------+-----------+ | 1 | 10 | 'a' | | 1 | 20 | 'b' | | 2 | 12 | 'a' | | 2 | 18 | 'b' | | 2 | 22 | 'c' | +------------------+-----------+ I am trying to write a query that will group my table by timestamp and get a delta between field values of two different tags. If I want to get delta between tag 'a' and tag 'b', it will give me following

Post simple value in InfluxDB

☆樱花仙子☆ 提交于 2019-12-11 12:48:20
问题 I try to POST a simple request to InfluxDB to know "How much VMs are UP ?" in my Grafana Dashboard. I think I go wrong somewhere, because my value is not reachable. It's my cURL command : curl -i -XPOST 'http://server:8086/write?db=DBname' --data-binary 'vm_up value=14 1448596134' If a key is necessary, it can be "server=dom0". Can you help me ? Thanks =) 回答1: I find the answer, is about timestamp. I need at precision=s to URL : http://server:8086/write?db=DBname&precision=s' 来源: https:/

【系统监控架构】InfluxDB 介绍安装及基本使用

不打扰是莪最后的温柔 提交于 2019-12-11 11:37:58
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> InfluxDB的简介 InfluxDB 是用Go语言编写的一个开源分布式时序、事件和指标数据库,无需外部依赖。 功能特点 基于时间序列,支持与时间有关的相关函数(如最大,最小,求和等) 可度量性:你可以实时对大量数据进行计算 基于事件:它支持任意的事件数据基于事件:它支持任意的事件数据 注:自带管理界面在1.2版之后,将不再提供。 oint属性 传统数据库中的概念 time(时间戳) 每个数据记录时间,是数据库中的主索引(会自动生成) fields(字段、数据) 各种记录值(没有索引的属性)也就是记录的值:温度, 湿度 tags(标签) 各种有索引的属性:地区,海拔 注意 在influxdb中,字段必须存在。因为字段是没有索引的。如果使用字段作为查询条件,会扫描符合查询条件的所有字段值,性能不及tag。类比一下,fields相当于SQL的没有索引的列。 tags是可选的,但是强烈建议你用上它,因为tag是有索引的,tags相当于SQL中的有索引的列。tag value只能是string类型。 series 相当于是 InfluxDB 中一些数据的集合,在同一个 database 中,retention policy、measurement、tag sets 完全相同的数据同属于一个 series,同一个

Influxdb修改数据保留策略

♀尐吖头ヾ 提交于 2019-12-11 11:33:13
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> retention policy : 存储策略,用于设置数据保留的时间,每个数据库刚开始会自动创建一个默认的存储策略 autogen,数据保留时间为永久,之后用户可以自己设置,例如保留最近2小时的数据。插入和查询数据时如果不指定存储策略,则使用默认存储策略,且默认存储策略可以修改。InfluxDB 会定期清除过期的数据。 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- InfluxDB每秒可以处理成千上万条数据,要将这些数据全部保存下来会占用大量的存储空间,有时我们可能并不需要将所有历史数据进行存储,因此,InfluxDB推出了数据保留策略( Retention Policies ),用来让我们自定义数据的保留时间。 一、InfluxDB 数据保留策略 说明 InfluxDB的数据保留策略(RP) 用来定义数据在InfluxDB中存放的时间,或者定义保存某个期间的数据。 一个数据库可以有多个保留策略

InfluxDB and pandas errors in Python

旧城冷巷雨未停 提交于 2019-12-11 06:08:01
问题 im following the instructions to read data from influx into pandas and im getting the following error: ValueError Traceback (most recent call last) <ipython-input-13-1e63a2e6d3db> in <module>() ----> 1 df = pd.DataFrame(AandCStation) 2 3 #AandCStation['time'] # gets the name 4 5 #AandCStation.values C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\frame.py in __init__(self, data, index, columns, dtype, copy) 328 dtype=dtype, copy=copy) 329 elif isinstance(data,

How to get more than one graph of samplers (which i have in my jmeter) in a graph of grafana using templating

青春壹個敷衍的年華 提交于 2019-12-11 05:59:11
问题 Im trying to get throughput/sec of each samples (i have in my jmeter test ) in grafana dashboard using influxdb . I'm using templating to configure .screenshot showing template settings My query is-- SELECT count("responsecode") FROM "samples" WHERE "label" =~ /$label/ AND "status" =~ /$status$/ AND $timeFilter GROUP BY time($interval) My intention is to get drop down option to select graph or response of one or more samplers in a graph of grafana dashboard . When i select more than one

How to create database and user in influxdb programmatically?

守給你的承諾、 提交于 2019-12-11 04:25:41
问题 In my use case I am using single ec2 instance [not a cluster]. I want to create a database and an user with all privileges programmatically? Is there a config file which I can edit and copy to the right location after influxdb is installed. Could someone help me with this? 回答1: There isn't any config option that you can use to do that with InfluxDB itself. After starting up an instance you can use the InfluxDB HTTP to create the users. The curl command to do so would be the following: curl

influxdb: Write multiple points vs single point multiple times

痴心易碎 提交于 2019-12-10 21:48:15
问题 I'm using influxdb in my project and I'm facing an issue with query when multiple points are written at once I'm using influxdb-python to write 1000 unique points to influxdb. In the influxdb-python there is a function called influxclient.write_points() I have two options now: Write each point once every time (1000 times) or Consolidate 1000 points and write all the points once. The first option code looks like this(pseudo code only) and it works: thousand_points = [0...9999 while i < 1000: .

How to store dates in InfluxDB

[亡魂溺海] 提交于 2019-12-10 18:12:45
问题 I need to develop an InfluxDB Time Series. The time series needs to contain the following information: time - The time the data was recorded. This will use the InfluxDB Time Field. value - The value for the time series. A simple integer. date - A separate date associated with the value. This date has nothing to do with the "time" field. It will be used to help narrow down queries. My current line of thinking is to save the above "date" field as a separate "column" in the time series so that I