# make thanos-check DRY_RUN=server and make thanos-test-rules (BREAK=0, then BREAK=1) # 20261020T084528Z, laptop clock, UTC. git f93bf4c plus the PR 1 working tree # thanos, version 0.42.4 (branch: HEAD, revision: 45c4f39487e1653e606307d3952a6259fb96acae) # promtool, version 3.14.0 (branch: HEAD, revision: d7598b7141418fa35be2b5ec5d0fefb634199610) # v4.2.2+gb05881c, kubectl v1.36.5 ## make thanos-check DRY_RUN=server ==> renders go to $TMP ==> kustomize build of thanos and gpu-rules ==> dashboard JSON parses ==> 37 thanos flags exist in v0.42.4 ==> thanos query starts with the endpoint config ==> helm template kube-prometheus-stack 91.4.1 for par ==> helm template kube-prometheus-stack 91.4.1 for fin ok par Prometheus keeps site=par ok par sidecar image pinned by digest ok par sidecar uploads with monitoring/thanos-objstore ok par keeps 15 days locally ok sidecar Service is kube-prometheus-stack-thanos-discovery, as query.yaml expects ok sidecar Service exposes grpc 10901 ok Grafana gets the Thanos (EU1) data source ok fin Prometheus keeps site=fin ok fin has no sidecar ok fin has exactly one remote write ok fin writes to the CPU worker's NodePort over https ok fin verifies the server name in Receive's certificate ok fin's client key comes from thanos-remote-write ok no Grafana on fin ==> rendered kube-prometheus-stack objects match the overlays ==> server-side dry run on par: thanos (fin-sim objects in namespace thanos) and gpu-rules serviceaccount/prometheus-fin-sim created (server dry run) serviceaccount/thanos-certs created (server dry run) role.rbac.authorization.k8s.io/prometheus-fin-sim created (server dry run) role.rbac.authorization.k8s.io/thanos-certs created (server dry run) role.rbac.authorization.k8s.io/thanos-certs created (server dry run) rolebinding.rbac.authorization.k8s.io/prometheus-fin-sim created (server dry run) rolebinding.rbac.authorization.k8s.io/thanos-certs created (server dry run) rolebinding.rbac.authorization.k8s.io/thanos-certs created (server dry run) configmap/eu1-gpus-across-sites-dashboard created (server dry run) configmap/thanos-query-endpoints created (server dry run) service/thanos-compact created (server dry run) service/thanos-query created (server dry run) service/thanos-receive created (server dry run) service/thanos-receive-headless created (server dry run) service/thanos-receive-public created (server dry run) service/thanos-store created (server dry run) deployment.apps/thanos-query created (server dry run) statefulset.apps/thanos-compact created (server dry run) statefulset.apps/thanos-receive created (server dry run) statefulset.apps/thanos-store created (server dry run) job.batch/thanos-certs created (server dry run) podmonitor.monitoring.coreos.com/thanos created (server dry run) prometheus.monitoring.coreos.com/fin-sim created (server dry run) servicemonitor.monitoring.coreos.com/fin-sim-self created (server dry run) prometheusrule.monitoring.coreos.com/gpu-cardinality created (server dry run) ==> server-side dry run on par: the Prometheus objects rendered for par and for fin prometheus.monitoring.coreos.com/kube-prometheus-stack-prometheus serverside-applied (server dry run) prometheus.monitoring.coreos.com/kube-prometheus-stack-prometheus serverside-applied (server dry run) Warning: metadata.finalizers: "resources-finalizer.argocd.argoproj.io": prefer a domain-qualified finalizer name including a path (/) to avoid accidental conflicts with other finalizer writers application.argoproj.io/gpu-rules created (server dry run) Warning: metadata.finalizers: "resources-finalizer.argocd.argoproj.io": prefer a domain-qualified finalizer name including a path (/) to avoid accidental conflicts with other finalizer writers application.argoproj.io/thanos created (server dry run) ==> all checks passed ## make thanos-test-rules ==> promtool 3.14.0 ==> checking rule syntax Checking $TMP/gpu-cardinality.rules.yaml SUCCESS: 2 rules found ==> running unit tests SUCCESS ## make thanos-test-rules BREAK=1 (must fail its tests) ==> promtool 3.14.0 ==> checking rule syntax Checking $TMP/gpu-cardinality.rules.yaml SUCCESS: 2 rules found ==> running unit tests FAILED: expr: "gpu:dcgm_series:count", time: 2m, exp: {Hostname="eu1-par-gpu-01", UUID="GPU-l4", __name__="gpu:dcgm_series:count", gpu="0", modelName="NVIDIA L4"} 4E+00 got: {Hostname="eu1-par-gpu-01", UUID="GPU-l4", __name__="gpu:dcgm_series:count", gpu="0", modelName="NVIDIA L4", pod="nvidia-dcgm-exporter-a"} 4E+00 expr: "gpu:dcgm_series:count", time: 2m, exp: {Hostname="eu1-par-gpu-01", UUID="GPU-l4", __name__="gpu:dcgm_series:count", gpu="0", modelName="NVIDIA L4"} 2E+00 got: {Hostname="eu1-par-gpu-01", UUID="GPU-l4", __name__="gpu:dcgm_series:count", gpu="0", modelName="NVIDIA L4", pod="nvidia-dcgm-exporter-a"} 1E+00, {Hostname="eu1-par-gpu-01", UUID="GPU-l4", __name__="gpu:dcgm_series:count", gpu="0", modelName="NVIDIA L4", pod="nvidia-dcgm-exporter-b"} 1E+00 expr: "gpu:dcgm_series:count", time: 4m, exp: {Hostname="eu1-par-gpu-01", UUID="GPU-l4", __name__="gpu:dcgm_series:count", gpu="0", modelName="NVIDIA L4"} 1E+00 got: {Hostname="eu1-par-gpu-01", UUID="GPU-l4", __name__="gpu:dcgm_series:count", gpu="0", modelName="NVIDIA L4", pod="nvidia-dcgm-exporter-b"} 1E+00 ==> the broken rule failed its tests, as it should