Skip to content

Commit df5d25a

Browse files
committed
docs: Describe the queryLogFile setting
We want to allow cluster admins to enable the query log, however it should be noted that this is a temporary solution for debugging situations ad-hoc and should not be enabled permanently. https://prometheus.io/docs/guides/query-log/
1 parent 6eb3280 commit df5d25a

File tree

3 files changed

+26
-17
lines changed

3 files changed

+26
-17
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Note: This CHANGELOG is only for the monitoring team to track all monitoring related changes. Please see OpenShift release notes for official changes.
22

3+
## 4.10
4+
5+
- [#1373](https://github.com/openshift/cluster-monitoring-operator/pull/1373) Enable admins to toggle the [query_log_file](https://prometheus.io/docs/guides/query-log/#enable-the-query-log) setting for Prometheus.
6+
37
## 4.9
48

59
- [#1312](https://github.com/openshift/cluster-monitoring-operator/pull/1312) Support label to exclude namespaces from user-workload monitoring.

Diff for: Documentation/user-guides/configuring-cluster-monitoring.md

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ resources: [v1.ResourceRequirements](https://kubernetes.io/docs/api-reference/v1
8383
# specified by users
8484
externalLabels:
8585
[ - <labelname>: <labelvalue> ]
86+
# log all the queries run by the engine to a log file
87+
# this option should be enabled temporarily only to support debugging
88+
# as there is no option to support or manage log rotation
89+
queryLogFile: string
8690
```
8791
8892
### AlertmanagerMainConfig

Diff for: examples/user-workload/README.md

+18-17
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,26 @@ data:
1818
Configuration example is located in this directory, with the following supported configuration fields:
1919
```
2020
prometheusOperator:
21-
logLevel string
22-
nodeSelector map[string]string
23-
tolerations []v1.Toleration
21+
logLevel string
22+
nodeSelector map[string]string
23+
tolerations []v1.Toleration
2424
2525
thanosRuler:
26-
logLevel string
27-
nodeSelector map[string]string
28-
tolerations []v1.Toleration
29-
resources *v1.ResourceRequirements
30-
volumeClaimTemplate *v1.PersistentVolumeClaim
26+
logLevel string
27+
nodeSelector map[string]string
28+
tolerations []v1.Toleration
29+
resources *v1.ResourceRequirements
30+
volumeClaimTemplate *v1.PersistentVolumeClaim
3131
3232
prometheus:
33-
logLevel string
34-
nodeSelector map[string]string
35-
tolerations []v1.Toleration
36-
retention string
37-
resources *v1.ResourceRequirements
38-
externalLabels map[string]string
39-
volumeClaimTemplate *v1.PersistentVolumeClaim
40-
hostport string
41-
remoteWrite []monv1.RemoteWriteSpec
33+
logLevel string
34+
nodeSelector map[string]string
35+
tolerations []v1.Toleration
36+
retention string
37+
resources *v1.ResourceRequirements
38+
externalLabels map[string]string
39+
volumeClaimTemplate *v1.PersistentVolumeClaim
40+
hostport string
41+
remoteWrite []monv1.RemoteWriteSpec
42+
queryLogFile string
4243
```

0 commit comments

Comments
 (0)