You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Create service account that have permission to this bucket
56
+
3. Download JSON credentials for service account and run: `kubectl create secret generic gcs-credentials --from-file=<your-json-file>`
57
+
4. Run `bash kube/apply-lts.sh`
32
58
33
-
```bash
34
-
echo"Starting Prometheus pod with sidecar."
35
-
kubectl apply -f kube/manifests/prometheus
36
-
```
59
+
You will be now able to reach Prometheus on http://prometheus-gcs.default.svc.cluster.local:9090/graph
60
+
And Thanos Query UI on http://thanos-query.default.svc.cluster.local:19099/graph
37
61
38
-
## Start query node targeting Prometheus sidecar
62
+
Thanos Query UI should show exactly the same data as Prometheus, but also older data if it's running longer that 12h.
39
63
40
-
```bash
41
-
echo"Starting Thanos query pod targeting sidecar."
42
-
kubectl apply -f kube/manifests/thanos-query
43
-
```
64
+
After 3h sidecar should upload first block to GCS. You can make that quicker by changing prometheus `storage.tsdb.{min,max}-block-duration` to smaller value (e.g 20m)
44
65
45
-
You can invoke `bash kube/apply-example.sh` that will do all these steps.
0 commit comments