Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.13 KB

README.md

File metadata and controls

47 lines (35 loc) · 1.13 KB

Gotchas

  • Number of datapoints returned are dependent on data ingested time and query start/end time

    • two TSDB by be off by 1 data point max
  • Right now all the implementation are only returning time in milliseconds.

TODOs

  • add funtions like rate(prometheus)/non-negative-derative option.
  • add regex filters e.g. for prometheus, change = to =~

run tests

Prometheuse

go test tests/tsdb_test.go -v -run TestPrometheus

Mimir

go test tests/tsdb_test.go -v -run TestMimir

InfluxDB

go test tests/tsdb_test.go -v -run TestInfluxDB

All in one Test

go test tests/tsdb_test.go -v -run TestAllTSDBs

Import guide

Due to https://stackoverflow.com/questions/32232655/go-get-results-in-terminal-prompts-disabled-error-for-github-private-repo

Configure go get to authenticate and fetch over https, all you need to do is to add the following line to $HOME/.netrc

machine github.com login USERNAME password TOKEN

Since its a private repo, its good not to cache it in proxy

go env -w GOPRIVATE=github.com/equinix-gnae/*
go env -w GOPRIVATE=github.com/equinix-nspa/*