从CLI查询InfluxDB时以本地时区显示时间 [英] Display time in local timezone when querying InfluxDB from the CLI

查看:483
本文介绍了从CLI查询InfluxDB时以本地时区显示时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用UTC将点存储在InfluxDB中,但是当从命令行查询时

I store points in InfluxDB using UTC but when querying from the command line,

influx -precision rfc3339

对于所有查询,我都希望在本地时区显示它们.我该怎么办?

I want to display them in the local timezone, for all queries. How can I do that?

要显示特定时区的时间,我可以在每个查询的末尾添加(例如)tz('America/Chicago'),但这很烦人.有没有一种方法可以配置Influx以显示 all 查询在特定时区的时间? CLI文档没有列出和说明要执行此操作的参数或命令.

To display the time in a specific timezone, I can add (for example) tz('America/Chicago') to the end of each query, but this is annoying. Is there a way to configure Influx to show the time in a specific timezone for all queries? The CLI documentation doesn't list and argument or command to do that.

推荐答案

显然这是不可能的,但是您可以+1

Apparently this is not possible, but you can +1 the feature request.

这篇关于从CLI查询InfluxDB时以本地时区显示时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆