Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrometheus index out of range during delete_series #5037
Comments
This comment has been minimized.
This comment has been minimized.
|
Thanks! Any chance you could try this with 2.6.0? 2.2.1 is quite an old Prometheus version and there have been a myriad of fixes to the TSDB code since then. In particular, in the current master of Prometheus I see an array length check that prevents this specific |
This comment has been minimized.
This comment has been minimized.
|
I'll give it a try. I'm using the Rancher Helm chart that is severly outdated it seems. |
This comment has been minimized.
This comment has been minimized.
|
Thank you! This seems to have resolved the issue. Prometheus also starts up significantly faster than it did before. Now all I have to figure out is why my Influx DB queue is filling up causing prometheus to dump metrics. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the heads-up @MaxDiOrio! I'm closing the issue for now. |
MaxDiOrio commentedDec 24, 2018
Bug Report
What did you do?
For some reason, I am having an issue with one series.
So I figure I'd delete the series and let it re-create:
Calling
curl -XPOST -d@prom_delete.json -H"Content-Type: application/json" http://prometheus.prod.cluster/api/v2/admin/tsdb/delete_series
with
{
"matchers": [{
"type": "EQ",
"name": "job",
"value": "kubernetes-nodes-cadvisor"
}]
}
Yields:
12/24/2018 11:23:33 AM panic: runtime error: index out of range
12/24/2018 11:23:33 AM
12/24/2018 11:23:33 AM goroutine 3354 [running]:
12/24/2018 11:23:33 AM github.com/prometheus/prometheus/vendor/github.com/prometheus/tsdb.(*memSeries).minTime(...)
12/24/2018 11:23:33 AM /go/src/github.com/prometheus/prometheus/vendor/github.com/prometheus/tsdb/head.go:1109
12/24/2018 11:23:33 AM github.com/prometheus/prometheus/vendor/github.com/prometheus/tsdb.(*Head).Delete(0xc420283540, 0x80003883122cdf10, 0x7fffc77cedd324d7, 0xc60b769dd0, 0x1, 0x1, 0xc4abc52788, 0xc4abc52790)
12/24/2018 11:23:33 AM /go/src/github.com/prometheus/prometheus/vendor/github.com/prometheus/tsdb/head.go:591 +0x50d
12/24/2018 11:23:33 AM github.com/prometheus/prometheus/vendor/github.com/prometheus/tsdb.(*DB).Delete.func2(0xc400000008, 0x1b6e848)
12/24/2018 11:23:33 AM /go/src/github.com/prometheus/prometheus/vendor/github.com/prometheus/tsdb/db.go:726 +0x5e
12/24/2018 11:23:33 AM github.com/prometheus/prometheus/vendor/golang.org/x/sync/errgroup.(*Group).Go.func1(0xc5ffa6ff00, 0xc5fcb182c0)
12/24/2018 11:23:33 AM /go/src/github.com/prometheus/prometheus/vendor/golang.org/x/sync/errgroup/errgroup.go:58 +0x57
12/24/2018 11:23:33 AM created by github.com/prometheus/prometheus/vendor/golang.org/x/sync/errgroup.(*Group).Go
12/24/2018 11:23:33 AM /go/src/github.com/prometheus/prometheus/vendor/golang.org/x/sync/errgroup/errgroup.go:55 +0x66
Environment
Running in K8S
Prometheus version=2.2.1, branch=HEAD, revision=bc6058c81272a8d938c05e75607371284236aadc