Define precision in environment

influxdb
#1

Dear All,

So that I don’t need to type it every time i issue command influx - I wish precision is stored in the linux environment.

Is that possible please?

Thanks a lot in advance

#2

I think you can set the time precision when you create a database, but I don’t think there’s a way to set the precision in the environment.

You can set the precision for a specific database using the “precision” parameter (documented for the api here) so that you don’t have to set each write.

#3

Might be helpful to create a bash alias in your .bash_profile:

alias influx='influx -precision rfc3339'
1 Like
#4

thanks a lot. shall try this