[Python] Simple example of influxdb-client-python

Discussão em 'Python' iniciado por Stack, Dezembro 9, 2024.

  1. Stack

    Stack Membro Participativo

    I am running the script example.py from the influxdb-client-python code base. It runs and writes a data point to a local influxDB instance, for tests and learning purposes only. From what I understand, this script is supposed to write a single point in 2 different ways: using line_protocol (a string) and the Point data structure. I have no problem with the Point data structure; however, the line_protocol writes a point somewhere in February 1970. I am afraid this is a problem of WritePrecision. Maybe it should not be specified when using a Datetime object that is converted to a line_protocol? Can someone please confirm this behaviour (if this is not an error on my side) and also that this is expected ? Many thanks.

    Continue reading...

Compartilhe esta Página