InfluxDB

Cannot find data in Prometheus with InfluxDB remote write/read api

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-08 10:22:17
问题 InfluxDB announced Prometheus remote write/read api in ver1.4. https://docs.influxdata.com/influxdb/v1.4/supported_protocols/prometheus/ https://www.influxdata.com/blog/influxdb-now-supports-prometheus-remote-read-write-natively/ I have deployed a new InfluxDB, created a user called "paul" with password 'foo', created a database called "prometheus" and filled with sample data: Then, I modified the config yml of Prometheus (I found the '*' in influx doc example should be replaced by '-') I

Grafana worldmap panel with Influxdb doesn't show points

 ̄綄美尐妖づ 提交于 2021-02-08 02:04:44
问题 I installed Worldmap Panel for Grafana but I cannot display points on Worldmap Panel. I looked at Grafana worldmap: table datasource and other links but didn't find answer. I tried to use countries.json : Added screenshot I don't have reputation 10 so I cannot add more than 2 links. I tried also create table : points,key=AL,name=Alabama,latitude=32.7990 longitude=-86.8073 and in Worldmap selected for Location Data : table , for Table Label Field : points but still cannot see points. Could you

influxdb-java: org.influxdb.InfluxDBIOException: java.net.SocketException: Connection reset by peer: socket write error

馋奶兔 提交于 2021-02-05 09:36:21
问题 I'm testing InfluxDB to store sensor time series. I'm using the influxdb-java client library (version 2.15) and I'm running InfluxDB 1.7.6 locally for test purpose. All my points are stored .csv files (one per sensor) which are themselves stored in .zip files (one per dataset). My code run through each line of each csv files. Points are written in batch mode. /** * Get the connection to the database */ InfluxDB influxDB = InfluxDBFactory.connect("http://192.168.51.51:8086"); influxDB.query

influxdb-java: org.influxdb.InfluxDBIOException: java.net.SocketException: Connection reset by peer: socket write error

风格不统一 提交于 2021-02-05 09:35:06
问题 I'm testing InfluxDB to store sensor time series. I'm using the influxdb-java client library (version 2.15) and I'm running InfluxDB 1.7.6 locally for test purpose. All my points are stored .csv files (one per sensor) which are themselves stored in .zip files (one per dataset). My code run through each line of each csv files. Points are written in batch mode. /** * Get the connection to the database */ InfluxDB influxDB = InfluxDBFactory.connect("http://192.168.51.51:8086"); influxDB.query

Multiple operation on single column in Flux

♀尐吖头ヾ 提交于 2021-01-29 20:27:54
问题 Trying to recreate some of the basics in Flux compared to InfluxQL is quite a stretch at present. I can’t work out how to ask for multiple projections. select max(temp) - min(temp) from my_measurement I’m not sure how to go about this in Flux. Thanks 回答1: Option 1 - built in function The simplest way is probably to use the built-in spread function: The spread() function outputs the difference between the minimum and maximum values in a specified column. from(bucket: "example-bucket") |> range

Go: build error when compiling unit tests (I'm trying to mock influxdb types)

一世执手 提交于 2021-01-29 08:00:50
问题 I'm just starting with go language. My mini-project successfully reads data from InfluxDB. Problem: when I import my package (which uses InfluxDB) into my unit test package, the build fails. "Production" code: package data import client "github.com/influxdata/influxdb1-client/v2" func FunctionToTest() {} // To make import necessary, unused for now func createClient() (client.Client, error) { return client.NewHTTPClient(client.HTTPConfig{Addr: addr}) } Unit test: package data_test import ( "..

InfluxDB mathematics across measurements

寵の児 提交于 2021-01-29 02:16:03
问题 I have two measurements in my InfluxDB, say, mem_used and mem_ available . I tried to query across those measurements and do a mathematics with SELECT mean("mem_used_value") / mean("mem_available_value") FROM ( SELECT mean("value") AS "mem_used_value", mean("value") AS "mem_available_value" FROM "dbname"."autogen"."mem_used", "dbname"."autogen"."mem_available" GROUP BY time(1m) ) GROUP BY time(1m) The result of the query is very weird, and I was wondering if it’s possible for InfluxDB to

Write karate gatling data to different databases listening to different ports using influx config

白昼怎懂夜的黑 提交于 2021-01-28 11:38:12
问题 I want to write gatling performance data to different ports or to the databases because I have multiple microservices. Below is my galting config file- graphite { light = false # only send the all* stats host = "localhost" # The host where the Carbon server is located port = 2003 # The port to which the Carbon server listens to (2003 is default for plaintext, 2004 is default for pickle) protocol = "tcp" # The protocol used to send data to Carbon (currently supported : "tcp", "udp")

How to process result obtained from querying influxdb database from go code

╄→гoц情女王★ 提交于 2021-01-28 05:40:37
问题 I am querying an inlfluxdb databse from a go code like this. q := fmt.Sprintf("select step,timeTaken from ZtpBoot where cvpVersion = 2017.1.1 group by step,numberOfDevices" res, _ := queryDB(clnt, q) Result when executing query in influxdb is like:- name: ZtpBoot tags: numberOfDevices=2, step=Step3.verifyZtpViaPost time step timeTaken ---- ---- --------- 1495540747000000000 Step3.verifyZtpViaPost 0.108520030975 1495541643000000000 Step3.verifyZtpViaPost 0.115226984024 name: ZtpBoot tags:

How to filter grafana dashboard with greater than and less than operators?

£可爱£侵袭症+ 提交于 2021-01-28 01:44:41
问题 I'm working on a project where I'm using Grafana and InfluxdB. I was able to get all the required values to grafana. In my response I have a filed with value less than and greater than zero. I want to add a filter where user can select the type of operation. Any recommendation on how to crack this. So far I have tried.. I created a Variable (constant value 0, which i tried to use in my dashboard query with less than or greater than operator. As soon as I select my variable, the operator gets