Staging instance, all changes can be removed at any time

Skip to content

thanos: Configure gateway service to expose historical data

This exposes the gateway service around the storage bucket where historical data is stored (by sidecar services). This makes this service be referenced in the thanos query configuration so it can be queried as well.

Related to T4385 Depends on D8092

Test Plan

vagrant testing.

root@thanos:~# cat /etc/thanos/query-sd.yaml
---
- targets:
  - mmca.softwareheritage.org:443
  - 10.168.100.29:19090
  - 10.168.50.90:19093
(reverse-i-search)`cat ': ^Ct /etc/thanos/query-sd.yaml
root@thanos:~# systemctl cat thanos-gateway | grep -C3 store
[Service]
Restart=on-failure
User=prometheus
ExecStart=/opt/thanos/current/thanos store --data-dir=/var/lib/prometheus/metrics2 \
    --objstore.config-file=/etc/thanos/objstore.yml \
    --http-address=10.168.50.90:19192 \
    --grpc-address=10.168.50.90:19093
ExecReload=/bin/kill -HUP $MAINPID

Migrated from D8097 (view on Phabricator)

Merge request reports

Loading