This service will become the new datasource for grafana.
It will transparently query data to the multiple datastores (filled with prometheus
metrics).
Currently that means pergamon and mmca, more are on their way.
Related to T4385
Differential D8092
Configure thanos query service to new dedicated node ardumont on Jul 7 2022, 11:48 AM. Authored by
Details This service will become the new datasource for grafana. It will transparently query data to the multiple datastores (filled with prometheus Currently that means pergamon and mmca, more are on their way. Related to T4385 vagrant up thanos:
For [2], I guess the data exposed are the actual one from mmca (as we don't have any overridable setup for that node in puppet). [1] $ vagrant ssh thanos > sudo -i root@thanos:~# ip a | grep 10.168 inet 10.168.50.90/16 brd 10.168.255.255 scope global eth1 root@thanos:~# ss -tanp | grep 1919* LISTEN 0 4096 *:19191 *:* users:(("thanos",pid=24042,fd=8)) ESTAB 0 0 [::ffff:10.168.50.90]:19191 [::ffff:10.168.0.1]:53606 users:(("thanos",pid=24042,fd=11)) ESTAB 0 0 [::ffff:10.168.50.90]:19191 [::ffff:10.168.0.1]:53610 users:(("thanos",pid=24042,fd=13)) ESTAB 0 0 [::ffff:10.168.50.90]:19191 [::ffff:10.168.0.1]:53608 users:(("thanos",pid=24042,fd=12)) ESTAB 0 0 [::ffff:10.168.50.90]:19191 [::ffff:10.168.0.1]:53612 users:(("thanos",pid=24042,fd=14)) root@thanos:~# systemctl status thanos-query | grep running Active: active (running) since Thu 2022-07-07 09:42:15 UTC; 4min 37s ago root@thanos:~# systemctl cat thanos-query | grep -C3 "thanos query" [Service] Restart=on-failure User=prometheus ExecStart=/opt/thanos/current/thanos query --http-address 0.0.0.0:19191 \ --store pergamon.internal.softwareheritage.org:19090 \ --store mmca.softwareheritage.org:19090 ExecReload=/bin/kill -HUP $MAINPID octo-diff on pergamon: ... ******************************************* File[/etc/systemd/system/thanos-sidecar.service] => parameters => content => @@ -12,8 +12,8 @@ ExecStart=/opt/thanos/current/thanos sidecar --tsdb.path=/var/lib/prometheus/metrics2 \ --prometheus.url=http://192.168.100.29:9090/ \ - --objstore.config-file=/etc/thanos-sidecar/objstore.yml \ + --objstore.config-file=/etc/thanos/objstore.yml \ --shipper.upload-compacted \ - --http-address=0.0.0.0:19191 \ - --grpc-address=0.0.0.0:19090 + --http-address=192.168.100.29:19191 \ + --grpc-address=192.168.100.29:19090 ExecReload=/bin/kill -HUP $MAINPID TimeoutStopSec=20s ******************************************* - File[/etc/thanos-sidecar/objstore.yml] ******************************************* - File[/etc/thanos-sidecar] ******************************************* + File[/etc/thanos/objstore.yml] => parameters => "ensure": "present" "group": "prometheus" "mode": "0640" "owner": "root" "content": >>> # File managed by puppet - modifications will be lost type: AZURE config: storage_account: swhthanosmetrics storage_account_key: '' container: metrics-historical-data-0 <<< ******************************************* + File[/etc/thanos] => parameters => "ensure": "directory" "group": "prometheus" "mode": "0750" "owner": "root" ******************************************* + Profile::Thanos::Export_query_endpoint[thanos-sidecar-pergamon.softwareheritage.org] => parameters => "grpc_address": "192.168.100.29:19090" ******************************************* Systemd::Unit_file[thanos-sidecar.service] => parameters => content => @@ -12,8 +12,8 @@ ExecStart=/opt/thanos/current/thanos sidecar --tsdb.path=/var/lib/prometheus/metrics2 \ --prometheus.url=http://192.168.100.29:9090/ \ - --objstore.config-file=/etc/thanos-sidecar/objstore.yml \ + --objstore.config-file=/etc/thanos/objstore.yml \ --shipper.upload-compacted \ - --http-address=0.0.0.0:19191 \ - --grpc-address=0.0.0.0:19090 + --http-address=192.168.100.29:19191 \ + --grpc-address=192.168.100.29:19090 ExecReload=/bin/kill -HUP $MAINPID TimeoutStopSec=20s ******************************************* *** End octocatalog-diff on pergamon.softwareheritage.org
Diff Detail
Event Timeline
Comment Actions Address the simple part of the comments (had a bit of a fight with vagrant):
Comment Actions wip: Rework logic to instantiate thanos query to lookup datastore (out of collected
|