qryn-helm

by mk-raven

Helm chartv0.1.9App 3.2.39Verified publisher

A Helm chart for Kubernetes

About this chart

Helm Chart for qryn

Overview

This Helm chart provides Kubernetes deployment configurations for qryn a polyglot, lighweight, multi-standard observability framework for Logs, Metrics and Traces, designed to be drop-in compatible with Loki, Prometheus, Tempo and Opentelemetry.


Table of Contents

  • Prerequisites
  • Installation
  • Parameters
  • Contributing
  • License

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.7+
  • A running ClickHouse server (optional but recommended)

Installation

Get Repository Info

helm repo add qryn-helm https://metrico.github.io/qryn-helm/
helm repo update

See helm repository for command documentation.

Install Chart To deploy qryn using this Helm chart, use the following command:

helm repo add qryn-helm https://metrico.github.io/qryn-helm/
helm install [RELEASE_NAME] qryn-helm/qryn-helm --version [Helm chart version]

See helm install for command documentation.

For customization, you can provide a values.yaml file or use --set flags to override specific configurations during installation.

Feel free to modify the configurations based on your requirements and environment.


Parameters

Global Parameters

KeyDefaultDescription
kubernetesClusterDomaincluster.localKubernetes cluster DNS domain.

Image Parameters

KeyDefaultDescription
image.repositoryqxip/qrynQryn image repository.
image.tag""Qryn image tag (default: latest).
imagePullSecrets[]Secrets for pulling images.
imageCredentials{}Custom image registry credentials.

Deployment Parameters

KeyDefaultDescription
replicaCount1Number of replicas.
podAnnotations{}Annotations for pods.
podLabels{}Labels for pods.
resourcesSee values.yamlResource requests and limits.

Service Parameters

KeyDefaultDescription
service.typeClusterIPService type (e.g., ClusterIP, NodePort, LoadBalancer).
service.port3100Service port.

Probes

KeyDefaultDescription
livenessProbe{}Liveness probe config.
readinessProbe{}Readness probe config.

Ingress Parameters

KeyDefaultDescription
ingress.enabledfalseEnable ingress.
ingress.className""Ingress class name.
ingress.annotations{}Annotations for ingress.
ingress.hostsSee values.yamlHosts configuration.
ingress.tls[]TLS configuration.

Autoscaling Parameters

KeyDefaultDescription
autoscaling.enabledfalseEnable Horizontal Pod Autoscaler.
autoscaling.minReplicas1Minimum number of replicas.
autoscaling.maxReplicas5Maximum number of replicas.
autoscaling.targetCPUUtilizationPercentage80Target CPU utilization percentage.
autoscaling.targetMemoryUtilizationPercentage80Target memory utilization percentage.

Environment Variables

KeyDefaultDescription
env.CLICKHOUSE_SERVERlocalhostClickHouse server address.
env.CLICKHOUSE_PORT8123ClickHouse server port.
env.CLICKHOUSE_DBqrynClickHouse database name.
env.CLICKHOUSE_AUTHdefault:ClickHouse authentication credentials.

Security and Service Account

KeyDefaultDescription
serviceAccount.createtrueCreate a ServiceAccount.
serviceAccount.automountfalseAutomount API credentials.
serviceAccount.name""Custom service account name.

Node Affinity and Tolerations

KeyDefaultDescription
nodeSelector{}Node selection constraints.
tolerations[]Toleration rules.
affinity{}Affinity rules.

Qryn image parameters

Environment VariableDefaultUsage
CLICKHOUSE_SERVERlocalhostClickhouse Server address
CLICKHOUSE_PORT8123Clickhouse Server port
CLICKHOUSE_DBqrynClickhouse Database Name
CLICKHOUSE_AUTHdefault:Clickhouse Authentication (user:password)
CLICKHOUSE_PROTOhttpClickhouse Protocol (http, https)
CLICKHOUSE_TIMEFIELDrecord_datetimeClickhouse DateTime column for native queries
CLUSTER_NAMEundefinedClickhouse Cluster name
BULK_MAXAGE2000Max Age for Bulk Inserts
BULK_MAXSIZE5000Max Size for Bulk Inserts
BULK_MAXCACHE50000Max Labels in Memory Cache
LABELS_DAYS7Max Days before Label rotation
SAMPLES_DAYS7Max Days before Timeseries rotation
HOST0.0.0.0HTTP API IP
PORT3100HTTP API PORT
QRYN_LOGINundefinedBasic HTTP Username
QRYN_PASSWORDundefinedBasic HTTP Password
READONLYfalseReadonly Mode, no DB Init
OMIT_CREATE_TABLESfalseOmit database provisioning on startup. Dangerous.
FASTIFY_BODYLIMIT5242880API Maximum payload size in bytes
FASTIFY_REQUESTTIMEOUT0API Maximum Request Timeout in ms
FASTIFY_MAXREQUESTS0API Maximum Requests per socket
FASTIFY_METRICSfalseAPI /metrics exporter
ADVANCED_PROMETHEUS_MAX_SAMPLES5000000Max samples per a promql request
CORS_ALLOW_ORIGIN*CORS Allow Origin, default to any
TEMPO_SPAN24Default span for Tempo queries in hours
TEMPO_TAGTRACEfalseOptional tagging of TraceID (expensive)
DEBUGfalseDebug Mode (for backwards compatibility)
LOG_LEVELinfoLog Level
HASHxxhash64Hash function using for fingerprints. Currently supported short-hash and xxhash64 (xxhash64 function)
ALERTMAN_URLfalseAlertmanager API URL, i.e., http://my_alertmanager_url:1234
ADVANCED_SAMPLES_ORDERINGtimestamp_nsSpecify the 'ORDER BY' your samples table should use (for multiple use comma-separated list fingerprint,timestamp_ns)

ENV Settings

For more information about qryn environment variables, visit qryn Environments.


Contributing

Whether it's code, documentation or grammar, we ❤️ all contributions. Not sure where to get started?

  • Join our Matrix Channel, and ask us any questions.
  • Have a PR or idea? Request a session / code walkthrough with our team for guidance.

License

©️ QXIP BV, released under the GNU Affero General Public License v3.0. See LICENSE for details.

Deploy qryn-helm with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has qryn-helm 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartqryn-helm is pinned at v0.1.9 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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