Monitoring Hyperswitch with the hyperswitch-monitoring Helm chart

A self-hosted Hyperswitch stack needs metrics, logs and dashboards from day one. This page explains what the monitoring chart installs, what storage it needs, and when to connect your existing observability platform instead.

On this page

Monitoring Hyperswitch with the hyperswitch-monitoring Helm chart: what it installs and when you need it

A team running self-hosted Hyperswitch needs to see the health of the Router, the Scheduler and the database before go-live, because a payment switch that fails quietly is hard to diagnose once customers are on it. The hyperswitch-monitoring Helm chart is one way to put metrics, logs and dashboards in place early. It bundles VictoriaMetrics for metrics storage, Loki for logs, Grafana Alloy and OpenTelemetry for collection, and Grafana for dashboards. Each of these is a separate system you will run, back up and upgrade, so the chart is a set of operating decisions as much as a set of pods. Confirm the chart's current version, default values and component list in your own environment before you plan around them.

The core decision is whether to install that bundle or feed Hyperswitch telemetry into a platform you already run. Install the bundle when no central observability stack exists, or when the payment team needs its own retention and access boundary. Feed an existing platform when your security team already has log retention, access review and alerting processes that it audits. Either way, ask where each signal is stored, who can read it and for how long. Loki keeps logs indefinitely unless retention is enabled through its compactor, and Loki has no built-in authentication, so an authenticating reverse proxy must sit in front of it. Those two points apply whichever path you choose, and they are easy to miss in a default install.

Storage comes next. Loki keeps compressed log chunks and its index in object storage. Its recommended production stores are Amazon S3, Google Cloud Storage and Azure Blob Storage, while MinIO and the local filesystem are supported but not typically recommended for production. VictoriaMetrics is licensed under Apache 2.0 and can use NFS-based storage, but the volume it needs depends on your series count and retention period, which you should measure in a staging run. Grafana also needs MySQL or PostgreSQL rather than SQLite once it moves beyond a single-user setup. Confirm which database and object store the chart configures, and whether those settings can be changed before go-live.

How metrics, logs and dashboards flow through the monitoring stack

The diagram starts at the Hyperswitch Router and Scheduler pods, along with PostgreSQL and Redis, which emit metrics and logs. Alloy and OpenTelemetry collectors gather that telemetry and send metrics to VictoriaMetrics and logs to Loki, which keeps its chunks and index in object storage. Grafana queries both stores. The dashed boundary marks where an existing observability platform could replace the bundled components. This is a general flow, so confirm each hand-off, port and label against the chart before you rely on it.

General data flow from Hyperswitch workloads to bundled monitoring stores, to be confirmed against the chart.

Should you install the bundled stack or connect an existing platform?

If your organization has no metrics or log platform today, the bundled stack is the shortest route to working dashboards. It combines VictoriaMetrics for metrics, Loki for logs, Alloy and OpenTelemetry for collection and Grafana for viewing. You still own the infrastructure underneath it, and that is where most of the effort sits.

  • Collection and storage: The chart connects collection to the Hyperswitch services and stores the data, so you do not design those pipelines from scratch.
  • Object storage for logs: Loki keeps compressed chunks and its index in object storage. Its recommended production stores are Amazon S3, Google Cloud Storage and Azure Blob Storage. Confirm the bucket, credentials and access policy before installation.
  • Retention you set yourself: Loki retention is disabled by default, so logs persist until you enable it and define periods for each stream.
  • Grafana configuration database: Grafana defaults to SQLite, which its documentation says does not scale for production. Plan PostgreSQL or MySQL if you need high availability.
  • Access in front of Loki: Loki has no built-in authentication layer, so an authenticating reverse proxy such as OAuth2 Proxy or Pomerium must sit in front of it.

Before you choose this path, confirm who will operate the stack, where the storage lives, and how backups and upgrades will be handled.

Chart components and the configuration choices each one forces

This table compares the main choices the hyperswitch-monitoring chart components force: metrics topology, Loki mode, object storage, log shipper and Grafana database. Read each row as a decision to settle before install, because changing it later usually means migrating data or redeploying. The main takeaway is that log volume and the Loki version you target decide most of the storage and mode choices.

ComponentOptions and what they meanChoose whenConfirm before install
VictoriaMetricsSingle-node is one small binary configured by command-line flags. Cluster splits ingestion and query across components. Both are Apache 2.0.Single-node suits one Hyperswitch environment with modest metric volume. Cluster suits multiple environments or heavy query load.Expected series count, retention period, and whether the Enterprise features (backup automation, downsampling) matter to you.
Loki deployment modeMonolithic runs a single binary, documented for up to about 20 GB of logs per day. Simple scalable separates read, write and backend targets, approaching 1 TB per day. Microservices suits very large clusters.Monolithic for low daily log volume. Simple scalable only if you accept its deprecation path. Microservices for very large clusters.Your daily log volume against these thresholds, and whether your Loki version still supports the mode you pick.
Simple scalable deprecationLoki documentation says simple scalable mode is being deprecated and will be removed with the Loki 4.0 release.Plan for a migration if you choose simple scalable and expect to run past Loki 4.0.The Loki release that your chart pins and the migration path the Loki docs describe for the mode you choose.
Loki object storageAmazon S3, Google Cloud Storage and Azure Blob Storage are the recommended production stores. S3-compatible stores such as MinIO and the local filesystem are supported but not typically recommended for production.Use a managed object store matching your cloud. Use an S3-compatible store only if your team operates it with equivalent durability.Bucket location, lifecycle and access policy, and whether your S3-compatible store is supported for production in your setup.
Log retentionRetention is disabled by default, so logs are kept indefinitely until the compactor retention setting is enabled. Each stream rule must be at least 24 hours.Set retention on day one if logs contain payment-adjacent data that your policy limits.Your retention period per stream, set in the chart values before the first ingest.
Log shipperGrafana Alloy, a distribution of the OpenTelemetry Collector, is Grafana's supported shipper for Loki. Loki also accepts OpenTelemetry logs over HTTP, plus Fluent Bit, Fluentd and the Docker logging driver.Alloy when you want one supported agent for logs and telemetry. Fluent Bit or Fluentd when an existing agent already runs on your nodes.Whether your current agent can send to Loki with the labels and tenant header your queries need.
Grafana databaseSQLite is the default. MySQL 8.0 or later and PostgreSQL 12 or later are supported. Grafana documents that SQLite does not scale for production.PostgreSQL or MySQL for any production or high availability setup. SQLite only for a short evaluation.Which database service you will run, its backup approach, and the Grafana version that supports it.
Loki authenticationLoki has no built-in authentication layer. Its documentation says to place an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium in front of it.Always in production, because the chart's Loki endpoint otherwise has no login.Which proxy your team runs and how tenant headers are set for each user group.

Installing the chart in sequence and checking each stage

The install order builds the storage and tenancy layer first, then the metrics and log backends, then the collectors and Grafana. Each stage closes with a check, so a fault is found before the next component depends on it.

  1. Create namespaces and object storage buckets

    The platform engineer creates a dedicated namespace for the monitoring stack, kept apart from payment workloads, and creates object storage buckets for Loki chunks and its TSDB index. Loki's recommended production stores are Amazon S3, Google Cloud Storage and Azure Blob Storage, and MinIO is not typically recommended for production. In the chart values, confirm the bucket names, region, and the credentials Loki uses, including permission to delete objects, since retention depends on it. The step is done when a test pod in the namespace can write and read an object in each bucket.

  2. Set Loki multi-tenancy and authentication

    The platform engineer sets auth_enabled to true so Loki runs multi-tenant and every request must carry an X-Scope-OrgID header. Loki has no built-in authentication layer, so an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium must sit in front of it. Set retention in the same pass, because Loki keeps logs indefinitely until retention_enabled is set. The check is that a request without a credential is refused, a request with the proper tenant header is accepted, and the retention settings match the period your compliance team has agreed.

  3. Deploy VictoriaMetrics and Loki

    The platform engineer deploys VictoriaMetrics in single-node or cluster form and deploys Loki in a supported deployment mode. Loki's monolithic mode is documented for up to about 20 GB of logs per day, and the simple scalable mode is being deprecated and will be removed with Loki 4.0, so plan a larger volume on the microservices path. Confirm the VictoriaMetrics retention flag and its persistent volume, and confirm the Loki storage configuration points at the buckets from the first step. The stage is complete when all pods report ready and a test log line written to Loki appears as an object in the bucket.

  4. Deploy Alloy and OpenTelemetry collectors

    The platform engineer deploys Grafana Alloy as the log shipper for Loki and deploys an OpenTelemetry Collector to receive metrics and send them to VictoriaMetrics, which accepts OpenTelemetry metrics. In the values, confirm that each exporter targets the correct service name, that Alloy sets the tenant header for the intended tenant, and that the collectors run on the nodes whose workloads you need to observe. The step closes when the collectors report successful exports with no sustained send errors in their own logs.

  5. Deploy Grafana with a production database

    The platform engineer deploys Grafana with its configuration database set to PostgreSQL 12 or later, since Grafana's installation docs say SQLite does not scale for production. Add VictoriaMetrics as a Prometheus-compatible data source for PromQL and Loki as a log data source with the X-Scope-OrgID header configured. Define data sources and dashboards as provisioning files so they load at startup. Confirm the login method: generic OAuth works in all editions, while SAML and team sync require Grafana Enterprise or Grafana Cloud. The step is done when each data source passes its connection test and a user can sign in.

  6. Verify that metrics and logs arrive

    The platform engineer runs a PromQL query in Grafana for a metric the OpenTelemetry Collector is known to send, and a LogQL query under the intended tenant for logs from a known workload. Check that the newest timestamps are current, not hours old. Then query the same logs with a different tenant header and confirm that nothing from the first tenant appears, which tests isolation. The stage is complete when metrics and logs both appear, the isolation test passes, and the collector and Alloy logs show no sustained failures.

  7. Record the version baseline and test upgrades

    The platform engineer records the chart version and the exact VictoriaMetrics, Loki, Alloy, OpenTelemetry Collector and Grafana versions deployed, along with the values files used. Grafana's upgrade guidance says each minor release is supported for 9 months, so the baseline is the starting point for scheduled upgrades. Confirm with the chart maintainers which component versions the chart pins and test any change in a non-production cluster first. The step is complete when the baseline is stored with the values in version control and a repeat install from those files produces the same results.

How much storage the monitoring stack needs and how retention is set

Storage needs follow four inputs: log volume per day, metric cardinality, retention periods and the object store you choose. Log volume is the largest unknown for the Loki side of the stack, because every router, scheduler and connector pod writes request and error logs that Alloy ships to Loki. Metric cardinality drives the VictoriaMetrics side, since each unique combination of labels such as processor, route, status and pod creates another series to store. Retention multiplies both figures by the number of days you keep them. Before you install anything, pull a representative day of logs and count the active series from a staging environment running your expected traffic, then decide how many days of each signal your audit, incident and capacity reviews require.

Loki retention is disabled by default. Until you set retention_enabled to true in the compactor configuration, logs are kept indefinitely, which can quietly fill an object store. When you enable it, you can set retention globally, per tenant, or per stream selector, and each stream rule must be at least 24 hours. Payment logs often need different periods than application debug output, so a per-stream rule for the Hyperswitch router and scheduler is worth planning early. Confirm with your compliance and security team how long payment-adjacent logs must be kept, and make sure those logs do not contain card data or other sensitive fields before you set that period.

Ask your DeployOpen contact or your platform vendor for a written sizing estimate based on your own traffic, retention targets and chosen object store, and confirm the Loki and VictoriaMetrics deployment modes against that estimate. The Loki storage documentation recommends Amazon S3, Google Cloud Storage or Azure Blob Storage for production, and notes that MinIO and local filesystems are not typically recommended for production. Check the Loki retention documentation for the exact compactor settings in the version you deploy, and review storage growth again after the first month of production traffic.

Securing the monitoring stack: authentication, tenancy and Grafana hardening

A monitoring stack for a payment switch holds sensitive operational data and gives access to incident detail, so it needs the same access discipline as the payment path. The cards below cover the gateway in front of Loki, how tenants are separated, what Grafana's identity options allow in each edition, the hardening settings to review, and filtering logs before they are stored.

Put an authenticating proxy in front of Loki

Loki has no built-in authentication layer, so the Loki endpoints are reachable by anyone who can route to them unless you place a gateway in front. Loki's documentation expects an authenticating reverse proxy such as nginx, HAProxy, OAuth2 Proxy or Pomerium. Confirm in your cluster that the write path from Alloy and the read path from Grafana both pass through the proxy, and that no Loki service is exposed through a plain ingress or NodePort.

Loki authentication docs

Separate tenants with X-Scope-OrgID

Loki is multi-tenant only when auth_enabled is true, and it identifies each tenant through the X-Scope-OrgID header on every request. The header is a routing label, not a credential, so the proxy must set or validate it based on the authenticated identity. Decide whether payment platform logs, security logs and application team logs share one tenant or get their own, and test that a user in one tenant cannot query another by changing the header.

Loki multi-tenancy docs

Match Grafana sign-in to your edition

Grafana's open source edition supports LDAP, generic OAuth, Entra ID, Okta, GitHub, GitLab, Google OAuth, auth proxy and JWT. SAML, team sync, active sync and SCIM provisioning are available only in Grafana Enterprise and Grafana Cloud. If your identity provider requires SAML or automated deprovisioning, the edition decision is a licensing question to settle before the build, and access reviews should be planned around the options you actually have.

Grafana authentication docs

Harden Grafana cookies and content policy

The Grafana security hardening guidance recommends secure and SameSite cookies, a Content Security Policy, Trusted Types, hiding the version from unauthenticated users, requiring authentication for the metrics endpoint and domain verification against DNS rebinding. Apply each setting in your Grafana configuration and verify it from an outside browser session. Treat the metrics endpoint as sensitive, because it reveals service names and internal topology.

Grafana hardening docs

Use database-backed Grafana for access

Grafana defaults to SQLite, which the installation docs say does not scale for production. Production and high availability need MySQL 8.0 or later or PostgreSQL 12 or later, and HA needs database-backed auth tokens so users can reach any node. Store the database credentials in your secrets system rather than in values files, and confirm that a restored Grafana database keeps the same user and token state.

Filter payment-adjacent data before storage

Logs from a payment switch can carry card-adjacent values, customer identifiers, tokens and request bodies, and Loki stores them as compressed chunks in object storage that may outlive the incident. Redact or drop these fields in Alloy before they reach Loki, and keep the rules in version control so reviewers can see them. Ask your QSA or compliance lead whether any log field falls inside the cardholder data environment, because that decides the storage and access controls the logs must meet.

Questions teams ask before installing Hyperswitch monitoring

What drives the cost of a Hyperswitch monitoring stack?

Most of the cost comes from storage, compute and the people who install, tune and run the stack, not from the open-source licenses alone. The recurring costs are object storage for Loki logs and VictoriaMetrics metric data, the cluster capacity that runs Grafana, Loki, VictoriaMetrics, Alloy and OpenTelemetry, and the database behind Grafana. Log volume and retention period are the largest levers. Loki keeps logs indefinitely until retention is enabled, so set a retention rule before go-live. Metric cardinality also drives storage growth. A quote should separate one-time work (design, installation, dashboards, testing) from recurring work (upgrades, on-call, storage growth). If you compare a hosted option, the Grafana pricing page lists a Pro tier starting with a 19 US dollar monthly platform fee plus usage, and an Enterprise tier with a minimum commitment of 25,000 US dollars per year.

How long does it take to get a working monitoring stack?

No duration is fixed for this chart in the material available, so agree any timeline in writing against a defined scope. Time depends on whether the target cluster is ready, whether object storage and identity are already available, how many Hyperswitch environments you monitor, and whether dashboards and alerts are built from scratch or reused. A working stack means Grafana can query metrics and logs from the Hyperswitch namespaces, with retention and access controls in place. A practical sequence is to confirm storage and retention, install the chart in a non-production cluster, verify that metrics and logs arrive, and then promote the stack to production. Ask any partner to list which of these steps are included, what the acceptance check is, and what your team must provide before work starts.

What does the monitoring work need from our platform and security teams?

The platform team provides a Kubernetes namespace, storage classes, node capacity, an ingress path for Grafana, and a database for Grafana configuration. The Grafana installation docs state that SQLite does not scale for production, so use PostgreSQL 12 or later or MySQL 8.0 or later. Object storage buckets and credentials are needed for Loki, and Amazon S3, Google Cloud Storage and Azure Blob Storage are its recommended production stores. The security team owns identity for Grafana, TLS, secrets handling, network policy and log content rules. SAML is available only in Grafana Enterprise and Grafana Cloud, so confirm which identity protocol you can use on the edition you choose. Loki has no built-in authentication, so an authenticating reverse proxy must sit in front of it. Confirm what Alloy collects, since payment-related logs can contain sensitive data.

Can an internal team install the Hyperswitch monitoring chart alone?

Yes, a team with Kubernetes, Helm and observability experience can install the chart alone, but the risk sits in the decisions around installation. The hard parts are sizing Loki for your log volume, choosing a deployment mode, setting retention, putting authentication in front of Loki, and configuring Grafana for high availability. The Grafana high availability docs say alerting needs extra configuration to avoid duplicate notifications when two or more active-active servers run. Loki's monolithic mode is documented for up to about 20 GB of logs per day, and simple scalable mode is being deprecated and removed in Loki 4.0, so plan the mode with that in mind. Internal teams tend to succeed when they pilot in a non-production cluster, record who owns each component, and schedule a review. A partner can cover a defined part, such as design review or hardening, with the split agreed in writing.

How is the monitoring chart upgraded alongside Hyperswitch releases?

The upgrade follows two release trains. Hyperswitch ships roughly monthly minor releases, and each entry on its GitHub releases page includes a compatibility matrix for Control Center and web client versions. The monitoring components move on their own schedules. Grafana publishes minor releases about every other month and patch releases at least monthly, and each minor release is supported for 9 months. Loki and VictoriaMetrics also release frequently. Before each upgrade, read the Hyperswitch release notes and check for new required dependencies. For example, the v1.124.0 notes made Superposition a required configuration dependency, so that service must run before upgrading to that version. Pin chart and component versions, test in staging, and keep a rollback path. Ask the chart maintainers how they publish compatibility with each Hyperswitch version, since that detail is not covered in the material available here.

When does connecting an existing observability platform cost less?

Connecting Hyperswitch to an existing platform usually costs less when your organization already runs a platform that can ingest the data, meets your retention and access rules, and has a named owner. Hyperswitch telemetry can reach existing tools through OpenTelemetry. VictoriaMetrics ingests Prometheus remote write and OpenTelemetry metrics according to its README, and Loki accepts OpenTelemetry logs over HTTP. Before choosing this route, confirm data residency, retention, per-team access, alert ownership and licensing. Grafana and Loki are licensed under AGPLv3, a change announced on April 20, 2021, so have legal review how your use applies, as described on the Grafana Labs licensing page. Some capabilities, such as backup automation and downsampling in VictoriaMetrics, belong to its Enterprise edition. Connection work still needs a mapping of labels, dashboards and alerts to your existing standards.

What happens to logs and metrics if retention is not configured?

Logs in Loki are kept indefinitely, because retention is disabled by default and only applies once it is enabled. Object storage then grows with every day of payment-system traffic, and the cost of that growth lands on your infrastructure budget. Enable retention in the compactor before the first production logs arrive. Retention can be set globally, per tenant, or per stream selector, and each stream rule must be at least 24 hours, according to the Loki retention docs. Decide retention with your security and compliance teams, because the period affects investigation needs, storage cost and the data you hold about customers. Confirm how VictoriaMetrics retention is set for your metrics as well, and test that old data is removed as expected in a non-production environment.

How DeployOpen scopes and delivers Hyperswitch monitoring

DeployOpen scopes monitoring for a self-hosted Hyperswitch stack as a fixed-scope engagement agreed in writing before work starts. The written scope names which components the hyperswitch-monitoring chart will collect from (the Router and Scheduler services, the PostgreSQL primary and replica, Redis, and any card vault or outbound connector endpoints you run), which telemetry signals are in scope, which Grafana dashboards and alert rules are delivered, and how the timeline is sequenced against your Hyperswitch upgrades. Decisions that change the effort, such as whether VictoriaMetrics, Loki and Alloy are deployed new or whether the chart feeds an existing observability platform, should be settled in that scope, not during the build.

Delivery happens inside your own cloud accounts, data centers or Kubernetes clusters. DeployOpen installs the chart, sets the storage classes and object store for Loki, configures Alloy and OpenTelemetry collection, and wires Grafana to SSO on your identity provider. At handover, the deliverables should include documentation of each dashboard and its data source, the retention settings applied in Loki and VictoriaMetrics, the storage growth assumptions behind them, and the access model for the X-Scope-OrgID tenants if multi-tenancy is enabled. Ask for retention and storage numbers to be stated explicitly in the written scope, since they set the recurring cost of the stack.

Monitoring is not a one-time install. Hyperswitch releases roughly every month, so chart values, Grafana and Loki versions, and dashboard queries will need updating over time. DeployOpen offers retainers for upgrades, continuous checks of the monitoring stack, and alert tuning after go-live. Before you sign, confirm who owns the Grafana admin credentials and object store keys at handover, what response times the retainer covers, and whether the retainer includes testing the dashboards against your load and chaos test results. Those answers determine whether your own team can run the stack after the engagement ends.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.