thanos
Thanos is a highly available metrics system that can be added on top of existing Prometheus deployments, providing a global query view across all Prometheus installations.
About this chart
Thanos packaged by Bitnami
Thanos is a highly available metrics system that can be added on top of existing Prometheus deployments, providing a global query view across all Prometheus installations.
Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.
Azure-ready Charts with Containers from marketplace.azurecr.io
This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.
$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo
TL;DR
helm repo add my-repo https://charts.bitnami.com/bitnami
helm install my-release my-repo/thanos
Introduction
This chart bootstraps a Thanos deployment on a Kubernetes cluster using the Helm package manager.
Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.
Prerequisites
- Kubernetes 1.19+
- Helm 3.2.0+
- PV provisioner support in the underlying infrastructure
Installing the Chart
To install the chart with the release name my-release:
helm repo add my-repo https://charts.bitnami.com/bitnami
helm install my-release my-repo/thanos
These commands deploy Thanos on the Kubernetes cluster with the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release chart:
helm uninstall my-release
Architecture
This charts allows you install several Thanos components, so you deploy an architecture as the one below:
+--------------+ +--------------+ +--------------+
| Thanos |----------------> | Thanos Store | | Thanos |
| Query | | | Gateway | | Compactor |
+--------------+ | +--------------+ +--------------+
push | | |
+--------------+ alerts +--------------+ | | storages | Downsample &
| Alertmanager | <----------| Thanos | <----| | query metrics | compact blocks
| (*) | | Ruler | | | |
+--------------+ +--------------+ | \/ |
^ | | +----------------+ |
| push alerts +--------------|----> | MinIO® (*) | <---------+
| | | |
+------------------------------+ | +----------------+
|+------------+ +------------+| | ^
|| Prometheus |->| Thanos || <----------------+ |
|| (*) |<-| Sidecar (*)|| query | inspect
|+------------+ +------------+| metrics | blocks
+------------------------------+ |
+--------------+
| Thanos |
| Bucket Web |
+--------------+
Note: Components marked with (*) are provided by subchart(s) (such as the Bitnami MinIO® chart) or external charts (such as the Bitnami kube-prometheus chart).
Check the section Integrate Thanos with Prometheus and Alertmanager for detailed instructions to deploy this architecture.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
nameOverride | String to partially override common.names.fullname template (will maintain the release name) | "" |
fullnameOverride | String to fully override common.names.fullname template | "" |
commonLabels | Add labels to all the deployed resources | {} |
commonAnnotations | Add annotations to all the deployed resources | {} |
clusterDomain | Kubernetes Cluster Domain | cluster.local |
extraDeploy | Array of extra objects to deploy with the release | [] |
Thanos common parameters
| Name | Description | Value |
|---|---|---|
image.registry | Thanos image registry | docker.io |
image.repository | Thanos image repository | bitnami/thanos |
image.tag | Thanos image tag (immutable tags are recommended) | 0.28.1-scratch-r0 |
image.digest | Thanos image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | Thanos image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
objstoreConfig | The objstore configuration | "" |
indexCacheConfig | The index cache configuration | "" |
bucketCacheConfig | The bucket cache configuration | "" |
existingObjstoreSecret | Secret with Objstore Configuration | "" |
existingObjstoreSecretItems | Optional item list for specifying a custom Secret key. If so, path should be objstore.yml | [] |
httpConfig | The https and basic auth configuration | "" |
existingHttpConfigSecret | Secret containing the HTTPS and Basic auth configuration | "" |
https.enabled | Set to true to enable HTTPS. Requires a secret containing the certificate and key. | false |
https.autoGenerated | Create self-signed TLS certificates. | false |
https.existingSecret | Existing secret containing your own server key and certificate | "" |
https.certFilename | tls.crt | |
https.keyFilename | tls.key | |
https.caFilename | ca.crt | |
https.key | TLS Key for Thanos HTTPS - ignored if existingSecret is provided | "" |
https.cert | TLS Certificate for Thanos HTTPS - ignored if existingSecret is provided | "" |
https.ca | (Optional, used for client) CA Certificate for Thanos HTTPS - ignored if existingSecret is provided | "" |
https.clientAuthType | Server policy for client authentication using certificates. Maps to ClientAuth Policies. | "" |
auth.basicAuthUsers | Object containing : key-value pairs for each user that will have access via basic authentication | {} |
serviceAccount.create | Specifies whether a ServiceAccount should be created | false |
serviceAccount.name | Name of the service account to use. If not set and create is true, a name is generated using the fullname template. | "" |
serviceAccount.automountServiceAccountToken | Automount service account token for the server service account | true |
serviceAccount.annotations | Annotations for service account. Evaluated as a template. Only used if create is true. | {} |
Thanos Query parameters
| Name | Description | Value |
|---|---|---|
query.enabled | Set to true to enable Thanos Query component | true |
query.logLevel | Thanos Query log level | info |
query.logFormat | Thanos Query log format | logfmt |
query.replicaLabel | Replica indicator(s) along which data is de-duplicated | ["replica"] |
query.dnsDiscovery.enabled | Enable store APIs discovery via DNS | true |
query.dnsDiscovery.sidecarsService | Sidecars service name to discover them using DNS discovery | "" |
query.dnsDiscovery.sidecarsNamespace | Sidecars namespace to discover them using DNS discovery | "" |
query.stores |
Deploy thanos with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has thanos on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartthanos is pinned at v11.6.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply