Skip to content

equinix-gnae/tsdb_intf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/*

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages