Store gateway returns no metrics even if blocks loaded #7770
Replies: 1 comment
-
Hey @caymard! 👋 I'm here to help you out with any bugs, questions, or contributions you might have! The store gateway returns no results when fetching metrics with Thanos query because of the relabel configuration applied to the store gateway. Specifically, the relabel configuration drops any series with the label s1 := e2ethanos.NewStoreGW(
e,
"1",
client.BucketConfig{
Type: client.S3,
Config: e2ethanos.NewS3Config(bucket, m.InternalEndpoint("http"), m.InternalDir()),
},
memcachedConfig,
"",
nil,
relabel.Config{
Action: relabel.Drop,
Regex: relabel.MustNewRegexp("value2"),
SourceLabels: model.LabelNames{"ext1"},
},
) This configuration ensures that any series with the label Additionally, to identify issues with block loading or querying in the Thanos Store Gateway logs, look for the following specific debug log entries or patterns:
These log entries and patterns can help diagnose and troubleshoot issues related to block loading or querying in the Thanos Store Gateway [2]. I also found similar discussions that might be relevant to your issue:
These discussions might provide additional insights or solutions to your problem. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm facing this issue since several days and did not find any way to understand what is happening.
I have several sidecars that are pushing 2-hours blocks on a bucket, a compactor is doing compaction/downsampling, and the store gateway to get those metrics.
The problem is : when I try to fetch some metrics only from the store gateway with thanos query (with endpoint filter enabled), I got 0 results (with the test query
count(up)
.Therefor, on Store Gateway UI, I see all my loaded blocks, and with the tool
thanos tools bucket inspect
also.Why does the store gateway returns absolutely no results ? How can I found some debug data, more than the debug logs ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions