Skip to content

Commit 11b6ee0

Browse files
authored
Merge pull request #662 from paulfantom/disable-remote-read
remove remote_read option and point to use direct queries for data retrieval
2 parents 879a29d + 24d303e commit 11b6ee0

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ keywords:
1212
- monitoring
1313
- tracing
1414
- opentelemetry
15-
version: 17.24.0
15+
version: 18.0.0
1616
# TODO(paulfantom): Enable after kubernetes 1.22 reaches EOL (2022-10-28)
1717
# kubeVersion: ">= 1.23.0"
1818
dependencies:

chart/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,6 @@ of the [Promscale](https://github.com/timescale/promscale) repo.
253253
| `kube-prometheus-stack.prometheus.prometheusSpec.scrapeTimeout` | Prometheus scrape timeout | `10s` |
254254
| `kube-prometheus-stack.prometheus.prometheusSpec.evaluationInterval` | Prometheus evaluation interval | `1m` |
255255
| `kube-prometheus-stack.prometheus.prometheusSpec.retention` | Prometheus data retention | `1d` |
256-
| `kube-prometheus-stack.prometheus.prometheusSpec.remoteRead[0].readRecent` | Whether reads should be made for queries for time ranges that the local storage should have complete data for. | `true` |
257-
| `kube-prometheus-stack.prometheus.prometheusSpec.remoteRead[0].url` | The Prometheus URL of the endpoint to query from. | `"http://{{ .Release.Name }}-promscale.{{ .Release.Namespace }}.svc:9201/read"` |
258256
| `kube-prometheus-stack.prometheus.prometheusSpec.remoteWrite[0].queueConfig.batchSendDeadline` | BatchSendDeadline is the maximum time a sample will wait in buffer. | `"30s"` |
259257
| `kube-prometheus-stack.prometheus.prometheusSpec.remoteWrite[0].queueConfig.capacity` | Capacity is the number of samples to buffer per shard before we start dropping them. | `100000` |
260258
| `kube-prometheus-stack.prometheus.prometheusSpec.remoteWrite[0].queueConfig.maxBackoff` | MaxBackoff is the maximum retry delay. | `"10s"` |

chart/values.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,9 @@ kube-prometheus-stack:
215215
operator: DoesNotExist
216216
# The remote_read spec configuration for Prometheus.
217217
# ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#remotereadspec
218-
remoteRead:
219-
# - {protocol}://{host}:{port}/{endpoint}
220-
- url: "http://{{ .Release.Name }}-promscale.{{ .Release.Namespace }}.svc:9201/read"
221-
readRecent: false
218+
# remoteRead:
219+
# - url: "http://{{ .Release.Name }}-promscale.{{ .Release.Namespace }}.svc:9201/read"
220+
# readRecent: false
222221
# The remote_write spec configuration for Prometheus.
223222
# ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#remotewritespec
224223
remoteWrite:

docs/upgrades.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ Firstly upgrade the helm repo to pull the latest available tobs helm chart. We a
88
helm repo update
99
```
1010

11+
## Upgrading from 17.x to 18.x
12+
13+
To get the best performance out of promscale we recommend to query it directly. Since tobs is already shipping grafana datasource configured this way, there is no need to configure `remote_read` option in prometheus. This is a breaking change for people using `remote_read` option. If you need to use `remote_read` option, you can still add it back by putting the following code snippet into your `values.yaml` file.
14+
15+
```yaml
16+
kube-prometheus-stack:
17+
prometheus:
18+
prometheusSpec:
19+
remoteRead:
20+
- url: "http://{{ .Release.Name }}-promscale.{{ .Release.Namespace }}.svc:9201/read"
21+
readRecent: false
22+
```
23+
1124
## Upgrading from 16.x to 17.x
1225
1326
With `17.0.0` we decided to diverge from gathering metrics data only from

0 commit comments

Comments
 (0)