InfluxDB

Select every hour query

≡放荡痞女 提交于 2019-12-13 18:19:04
问题 I have a simple weather station DB with example content: time humi1 humi2 light pressure station-id temp1 temp2 ---- ----- ----- ----- -------- ---------- ----- ----- 1530635257289147315 66 66 1834 1006 bee1 18.6 18.6 1530635317385229860 66 66 1832 1006 bee1 18.6 18.6 1530635377466534866 66 66 1829 1006 bee1 18.6 18.6 Station writes data every minute. I want to get SELECT not with all series, but just series written every hour (or every 60th series, simply said). How can I achieve it? I tried

Kubernetes : configuring custom influxdb sink for heapster running in kube-system namespace on GKE

假装没事ソ 提交于 2019-12-13 13:24:21
问题 I need to configure heapster to send kubernetes cluster metrics to our custom influx db server . For this I tried to edit heapster deployment in kube-system namespace but after some time deployment is getting reverted to original state . I am using GKE , master version is 1.5.7 and node version is 1.5.6 . 回答1: As for now, a custom configuration of addons is not supported on GKE. Any changes to the default Heapster configuration will be reverted by addon-manager. If the default Heapster

Retrieve data from InfluxDB with javascript (client-side, using a browser)

妖精的绣舞 提交于 2019-12-13 07:25:26
问题 I want to build a static html page which retrieves data from influxDB. Is there any jquery/ajax solution or even a js library to do this? I've tried to use influent, an InfluxDB driver for Javascript apps which says it can work in browser but I had no success when I tried to use influent.js 回答1: I captured with the developer tools the http requests that Grafana sends in order to create graphs and tried to do the same with jQuery get(): // something like this $.get("http://localhost:8086/query

Which db manager for a 100Go Table? [closed]

大憨熊 提交于 2019-12-12 17:25:47
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I realize a 2G / 3G / 4G data retrieval project as part of my studies. I have to store this data, and to make queries on it. My table : [freq {float}, dbm {float}, timestamp {init}] I receive about 15GB per day of data, from 100000 to 200000 entries per minute, and that's for 6 day's. I could use a simple DBMS

Query influxdb for a date

别来无恙 提交于 2019-12-12 12:32:30
问题 I have a table in influxdb that has a column called 'expirydate'. In the column I have afew dates e.g. "2016-07-14" or "2016-08-20". I want to select only the 2016-07-14 date, but I am unsure how? My query is currently: SELECT * FROM tablee where expirydate = '2016-07-14' limit 1000 But this does not work. Can someone please help me? 回答1: Assuming the value table**e** is a valid measurement... If you are looking at selecting all of the points for the day '2016-07-14', then your query should

Graph for individual sampler throughput in grafana using jmeter and influx db

旧时模样 提交于 2019-12-12 01:38:07
问题 Im trying to graph throughput of individual samplers i have in jmeter ,in grafana using influx db. Bellow is my jmeter test with 3 thread group having dummy sampler. 1. 2. 3. According to how jmeter calculates throughput , throughput for very first second should be 10 and after 10 seconds throughput should be 2 ,similarly after 20 sec throughput should be 5. I've attached influx db Screenshot bellow Using this im plotting graph in grafana: Bellow is what i've got: However in graph as you can

NoSQL influxdb

◇◆丶佛笑我妖孽 提交于 2019-12-11 21:40:14
介绍 InfluxDB介绍 InfluxDB 是用Go语言编写的一个开源分布式时序、事件和指标数据库,无需外部依赖。 特色功能 基于时间序列,支持与时间有关的相关函数(如最大,最小,求和等); 可度量性:你可以实时对大量数据进行计算; 基于事件:它支持任意的事件数据; 主要特点 无结构(无模式):可以是任意数量的列; 可拓展; 支持min, max, sum, count, mean, median 等一系列函数,方便统计; 原生的HTTP支持,内置HTTP API; 强大的类SQL语法; 自带管理界面,方便使用; influxdb与传统数据库的比较库、表等比较: influxDB 传统数据库中的概念 database 数据库 measurement 数据库中的表 points 表里面的一行数据 influxdb数据的构成:Point由时间戳(time)、数据(field)、标签(tags)组成。 Point属性 传统数据库中的概念 time 每个数据记录时间,是数据库中的主索引(会自动生成) fields 各种记录值(没有索引的属性)也就是记录的值:温度, 湿度 tags 各种有索引的属性:地区,海拔 influxdb使用的端口如下: 8083: Web admin管理服务的端口, http://localhost:8083 8086: 数据写入influxdb的地址

How to run InfluxDB as a foreground process on Docker using Mesos Marathon

て烟熏妆下的殇ゞ 提交于 2019-12-11 20:46:15
问题 OBJ: I want to start a daemon container with Marathon. I want influxdb to be the service running on the container. Using the Docker run command, I currently start the influxdb service in my daemon containers using supervisord. Is there a way of starting the influxDB service in the foreground directly? Is there a way that Marathon can help to achieve this? I really want to avoid using supervisord. I feel it is redundant as a process handler. Thank you! 回答1: You can run the Docker container

telegraf 安装

萝らか妹 提交于 2019-12-11 20:39:38
安装配置 cd /tmp wget https://dl.influxdata.com/telegraf/releases/telegraf-1.10.3-1.x86_64.rpm yum install telegraf-1.10.3-1.x86_64.rpm -y #influxdb配置 vim /etc/telegraf/telegraf.conf urls = ["http://127.0.0.1:8086"] database = "telegraf" username = "telegraf" password = "telegraf" urls:表示influxdb的地址及端口号 database:influxdb数据库名 username:数据库用户名 password:数据库密码 客户端 #使用客户端查看数据 https://github.com/CymaticLabs/InfluxDBStudio/releases/download/v0.2.0-beta.1/InfluxDBStudio-0.2.0.zip #安装需要安装环境.NET Framework 4.6.1 以上 #https://dotnet.microsoft.com/download/thank-you/net48 来源: CSDN 作者: 取壳羊 链接: https://blog.csdn

Influxdb performance issue

一世执手 提交于 2019-12-11 18:12:18
问题 We have a distributed system that runs on high load therefore we have experienced some data lost due to influx overriding points that had arrived in the same time exactly. Tried to move to nano seconds precision but since we work with Java, we could not find the real nano seconds in clock way. So we did something else, I fear, that might causing us performance issues. We added a tag called distinctor, which we random a integer value between 1-1000. This insures all points are inserted an