Skip to content

Commit c595cad

Browse files
author
Ganesh Vernekar
committed
Remove prometheus/tsdb
Signed-off-by: Ganesh Vernekar <[email protected]>
1 parent 804eff0 commit c595cad

File tree

8 files changed

+15
-943
lines changed

8 files changed

+15
-943
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ require (
5858
github.com/prometheus/client_golang v1.1.0
5959
github.com/prometheus/common v0.6.0
6060
github.com/prometheus/prometheus v0.0.0-20190818123050-43acd0e2e93f
61-
github.com/prometheus/tsdb v0.9.1
6261
github.com/satori/go.uuid v1.2.0 // indirect
6362
github.com/segmentio/fasthash v0.0.0-20180216231524-a72b379d632e
6463
github.com/sercand/kuberesolver v2.1.0+incompatible // indirect

go.sum

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
120120
github.com/dgrijalva/jwt-go v0.0.0-20160705203006-01aeca54ebda/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
121121
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
122122
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
123-
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
124123
github.com/dgryski/go-sip13 v0.0.0-20190329191031-25c5027a8c7b/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
125124
github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
126125
github.com/docker/go-units v0.4.0 h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw=
@@ -531,8 +530,6 @@ github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDa
531530
github.com/prometheus/prometheus v0.0.0-20180315085919-58e2a31db8de/go.mod h1:oAIUtOny2rjMX0OWN5vPR5/q/twIROJvdqnQKDdil/s=
532531
github.com/prometheus/prometheus v0.0.0-20190818123050-43acd0e2e93f h1:7C9G4yUogM8QP85pmf11vlBPuV6u2mPbqvbjPVKcNis=
533532
github.com/prometheus/prometheus v0.0.0-20190818123050-43acd0e2e93f/go.mod h1:rMTlmxGCvukf2KMu3fClMDKLLoJ5hl61MhcJ7xKakf0=
534-
github.com/prometheus/tsdb v0.9.1 h1:IWaAmWkYlgG7/S4iw4IpAQt5Y35QaZM6/GsZ7GsjAuk=
535-
github.com/prometheus/tsdb v0.9.1/go.mod h1:oi49uRhEe9dPUTlS3JRZOwJuVi6tmh10QSgwXEyGCt4=
536533
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
537534
github.com/rs/cors v1.6.0 h1:G9tHG9lebljV9mfp9SNPDL36nCDxmo3zTlAf1YgvzmI=
538535
github.com/rs/cors v1.6.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=

pkg/chunk/encoding/bigchunk.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"io"
88

99
"github.com/prometheus/common/model"
10-
"github.com/prometheus/tsdb/chunkenc"
10+
"github.com/prometheus/prometheus/tsdb/chunkenc"
1111
)
1212

1313
const samplesPerChunk = 120
@@ -172,7 +172,7 @@ func (b *bigchunk) Size() int {
172172
func (b *bigchunk) NewIterator() Iterator {
173173
var it chunkenc.Iterator
174174
if len(b.chunks) > 0 {
175-
it = b.chunks[0].Iterator()
175+
it = b.chunks[0].Iterator(nil)
176176
} else {
177177
it = chunkenc.NewNopIterator()
178178
}
@@ -257,9 +257,9 @@ func (it *bigchunkIterator) FindAtOrAfter(target model.Time) bool {
257257
}
258258

259259
if it.curr == nil {
260-
it.curr = it.chunks[it.i].Iterator()
260+
it.curr = it.chunks[it.i].Iterator(nil)
261261
} else if t, _ := it.curr.At(); int64(target) <= t {
262-
it.curr = it.chunks[it.i].Iterator()
262+
it.curr = it.chunks[it.i].Iterator(nil)
263263
}
264264

265265
for it.curr.Next() {
@@ -281,7 +281,7 @@ func (it *bigchunkIterator) Scan() bool {
281281

282282
for it.i < len(it.chunks)-1 {
283283
it.i++
284-
it.curr = it.chunks[it.i].Iterator()
284+
it.curr = it.chunks[it.i].Iterator(nil)
285285
if it.curr.Next() {
286286
return true
287287
}
@@ -326,7 +326,7 @@ func firstAndLastTimes(c chunkenc.Chunk) (int64, int64, error) {
326326
first int64
327327
last int64
328328
firstSet bool
329-
iter = c.Iterator()
329+
iter = c.Iterator(nil)
330330
)
331331
for iter.Next() {
332332
t, _ := iter.At()

vendor/github.com/prometheus/tsdb/LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

0 commit comments

Comments
 (0)