-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: add -frontend.enabled-ruler-query-stats to docs #6530
base: master
Are you sure you want to change the base?
Docs: add -frontend.enabled-ruler-query-stats to docs #6530
Conversation
34a9309
to
d30c10c
Compare
@@ -29,6 +29,10 @@ In addition, you can configure gRPC client (Ruler -> Query Frontend) config, ple | |||
You can configure the query response format via `-ruler.query-response-format`. It is used to retrieve query results from the Query Frontend. | |||
The supported values are `protobuf` and `json`. We recommend using `protobuf`(default) because the retrieved query results containing native histograms are only supported on `protobuf`. | |||
|
|||
## Configure query stat log on the Query Frontend | |||
You can enable the query stats log at the Query Frontend for queries coming from the Ruler via `-frontend.enabled-ruler-query-stats`. | |||
It is disabled by default since the Ruler already leaves rule evaluation logs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does it work in Ruler evaluation log now. It used to work because Ruler embeds its own querier to evaluate rules so it gathers query stats and pass via context.
But now since evaluation is done at QFE does Ruler evaluation log still provide the same information as of before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh.. I just checked it, and the query stats logs values are 0
like:
cortex_ruler_query_seconds_total=0.003627083 query_wall_time_seconds=0s query_storage_wall_time_seconds=0s fetched_series_count=0 fetched_chunks_count=0 fetched_samples_count=0 fetched_chunks_bytes=0 fetched_data_bytes=0
And the Ruler query stats metrics tracked by queryStats
also 0
:
cortex_ruler_fetched_series_total, cortex_ruler_samples_total, cortex_ruler_fetched_chunks_bytes_total ...
I think we should fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added How to track query stat log and metric
contents instead.
d30c10c
to
4c16499
Compare
4c16499
to
d043ebf
Compare
Signed-off-by: SungJin1212 <[email protected]>
d043ebf
to
58edf03
Compare
This PR adds contents of #6504 to the Rule evaluations via query frontend guide docs (https://cortexmetrics.io/docs/guides/rule-evalutions-via-query-frontend).
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]