influxdata / influxdata/influxdb1-client

Writing own timestamp as tag to Influx

Open
#48 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
192
Forks
109
PR merge metrics
No merged PRs in 30d

Description

In Influx, if we want to write a timestamp of our own, we can write like this
**insert measure1 timestamp1=15678267593i,name="Victoria"**
and later fetch data based on the same, this works = **"select * from measure1 where timestamp1=15678267593".**
I do not understand how to enable the same with go influx client. I do not want to override time (using the Time field in Point structure).

Please let me know on how to enable the same or whether that functionality is supported in the existing influx go client or not.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the Go client's Point structure and the write path, focusing on how fields and the Time field are serialized. Determine whether a user-defined timestamp field can be written and queried without overriding point time; document the supported behavior or narrow the request into a concrete client change.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.