- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
设置:
用 curl 访问 influxdb 数据库,有一些问题。请阅读以下步骤以重现该问题。
使用 openssl 创建证书
openssl req -x509 -nodes -newkey rsa:2048 -keyout ./influxdb-selfsigned.key -out ./influxdb-selfsigned.crt -days 365000 -subj "/C=US/ST=Oregon/L=Portland/O=Company Name/OU=Org/CN=www.example.com"
sudo cp ./influxdb-selfsigned.key /etc/ssl/
sudo cp ./influxdb-selfsigned.crt /etc/ssl/
FROM influxdb:latest
COPY ./influxdb-selfsigned.key /etc/ssl/influxdb-selfsigned.key
COPY ./influxdb-selfsigned.crt /etc/ssl/influxdb-selfsigned.crt
RUN chown influxdb:influxdb /etc/ssl/influxdb-selfsigned.*
码头 build 。 -t influxdb:v1
bind-address = "127.0.0.1:8088"
[meta]
dir = "/var/lib/influxdb/meta"
[data]
dir = "/var/lib/influxdb/data"
engine = "tsm1"
wal-dir = "/var/lib/influxdb/wal"
[[udp]]
enabled = true
bind-address = ":8089"
database = "tmpdb"
[http]
enabled = true
bind-address = ":8086"
auth-enabled = false
log-enabled = true
https-enabled = true
https-certificate = "/etc/ssl/influxdb-selfsigned.crt"
https-private-key = "/etc/ssl/influxdb-selfsigned.key"
docker run -it --net=host -v $HOME:$HOME -w $PWD influxdb:v1 \
influxd -config influxdb.conf
openssl s_client -connect localhost:8086
---
No client certificate CA names sent
Peer signing digest: SHA512
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 1529 bytes and written 269 bytes
Verification error: self signed certificate
---
New, TLSv1.2, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.2
Cipher : ECDHE-RSA-AES256-GCM-SHA384
Session-ID: C1DB40C5CE80B89FD2365E8EFF2C04EF191DD6C50EE61D02219099330868969B
Session-ID-ctx:
Master-Key: A5E27D93D02194154AF277DBAAC4703554762C84D1981E8EA7ED4E1B63052C90282BDEA55E9EE2D2C372480C5061D4C4
PSK identity: None
PSK identity hint: None
SRP username: None
TLS session ticket:
0000 - f9 65 11 7a a5 91 77 b7-58 2c 8c c8 ac a3 71 45 .e.z..w.X,....qE
0010 - 1b 96 16 e4 34 ad 18 dc-98 f4 5d b4 d1 58 7a 2c ....4.....]..Xz,
0020 - f8 af 85 f4 04 8a f7 b4-01 48 06 40 01 a4 4b a4 .........H.@..K.
0030 - 35 1e fa ab aa 09 6b 19-4f 33 04 15 a9 8e 7f 42 5.....k.O3.....B
0040 - bc 6c 46 70 58 6a 6c 12-ab 5f 9d 14 4a fa 17 66 .lFpXjl.._..J..f
0050 - 62 08 2d 49 71 be 69 67-ae 30 ab c6 8a 07 2b 58 b.-Iq.ig.0....+X
0060 - d5 b0 a6 55 6f 89 af 27-f7 e9 e4 11 0c c4 f2 68 ...Uo..'.......h
0070 - 33 89 83 62 6b 22 dc 89- 3..bk"..
Start Time: 1559701453
Timeout : 7200 (sec)
Verify return code: 18 (self signed certificate)
Extended master secret: no
---
curl --tlsv1.2 -o tmp.txt -G 'http://localhost:8086/db/tmpdb/series?u=root&p=root'
2019/06/05 02:15:20 http: TLS handshake error from 127.0.0.1:35094: tls: first record does not look like a TLS handshake
最佳答案
尝试在 curl 命令中使用 https 而不是 http。
关于ssl - 如何使用 curl 访问 influxdb 数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56453622/
我正在尝试收集 smartctl 指标并将它们推送到 influxdb 中。我很难为插入的值添加标签,以便标签和值位于正确的位置。 如果我这样做: curl -POST 'http://localho
是否可以设置 influxdb 从其他 influxdb 获取数据? 或者有一些本地日志代理用于流入数据。 例如我有 10 个后端服务器。我希望每个后端服务器中间件代码都在 influxdb 或一些本
我正在尝试获取给定测量的标签值。我在 influxDB 中进行了测量,如下所示。 > select * from "EVENT_LIVE" name: EVENT_LIVE time
在尝试理解 InfluxDb 的不同概念时,我遇到了 this文档,其中有与 SQL 数据库的术语比较。 An InfluxDB measurement is similar to an SQL da
我的 influxDB 用例是存储来自不同 PLC 的过程数据并对其进行趋势分析。我使用 grafana 可视化这些数据。在第一个试点中,我使用了 influxDB 的模式设计指南,使用通用测量名称并
有没有办法在 influxdb 中为特定查询创建临时表? (因此它们的范围只是该查询,而不是创建并插入到新的测量中)。 我想过写一个连续查询,但是有restrictions在 where 子句(即时间
在InfluxDB中,可以将多维哈希值post到数据库吗? 例如,这个散列: { "field1": "value1", "field2": { "field2a":
有没有办法从 InfluxDB 测量中选择所有值字段(或所有标签字段)? SELECT * FROM ... 查询选择值 和 标签。 最佳答案 SELECT *::field FROM "measur
什么查询将返回 InfluxDB 中不同主机的数量?我有一小群计算机(希望如此)通过 collectd 将统计数据写入 InfluxDB,但我不知道如何计算计算机成功写入的次数。 编辑:使用 Infl
我正在尝试使用一个我几乎不了解的数据库,我需要知道一个表的列名: 这是我尝试过的: client = DataFrameClient(host, 8086, username, password, "
我的 influxdb 数据库中有一些测量数据,我可以使用这些数据进行查询: 从 E_real_con 中选择 * 名称:E_real_con 时间值(value) ---- ----- 153792
我正在使用 telegraf 将 snmp 数据推送到我的 InfluxDB 并通过 Grafana 将其可视化。 现在我遇到了一个奇怪的问题(很可能只是我的误解......) 鉴于以下系列: snm
每天查询 InfluxDB 特定时间的最佳方法是什么,例如,我有一个有 checkin / checkout 事件的系列,我需要在上个月每天下午 2 点到 3 点之间查看它们,我知道没有在查询语言上执
是否可以使用不同的保留策略处理 influxdb 中的不同测量? 最佳答案 InfluxDB 完全可以做到这一点。为此,您需要创建一个具有两个保留策略的数据库,然后将数据写入关联的保留策略。 例子:
InfluxDB我有两个写点,一个是开始,一个是结束。我只需要确定这两个事件之间的持续时间,并围绕它进行查询。 InfluxDB 有差异()聚合方法,但它不适用于时间元字段。 提供自定义时间戳值是实现
我已经使用 influxDB 一段时间了,但从来没有从它连续流过数据。一个简单的 GET/query 就足够了。但是现在我需要一种将数据流式传输到前端以绘制漂亮图形等的方法。 到目前为止,我们一直在前
能否请您帮助解决以下错误 - INSERT blocks,color=blue number=90 1547095860 ERR: {"error":"partial write: points be
我在 InfluxDB 中设置身份验证时遇到问题。首先跟随教程告诉我更改配置文件: https://docs.influxdata.com/influxdb/v1.7/administration/a
我在 Influxdb 中有 my_db1、my_db2、my_db3,现在有没有办法通过查询在这些数据库之间移动或复制数据? 最佳答案 InfluxQL 提供了一个 INTO可用于在数据库之间复制数
我在 localhost:8086 上运行了 InfluxDB (它是默认的)和在不同端口上运行的 go 程序(因为它必须,也不能在 8086 上运行)。我试图在我的 go 程序中使用 JavaScr
我是一名优秀的程序员,十分优秀!