ClickHouse Self-Managed
Self-managed ClickHouse columnar OLAP and observability analytics cluster with ClickHouse Keeper coordination.
Medium — starter cluster for higher-ingest or independently scaled insert, query, and storage paths
Monthly cost
$678.48
Annual cost
$8,142/year
| Compute | $463.48 |
| Storage | $215.00 |
| Other | $0.00 |
Saves $4.60/mo (1%) across c4a-standard-8, c4a-standard-2, c4a-standard-4.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Vmstorage | 1 × n4-standard-8 | 8 | 32 | 2 TB ssd |
| Vminsert | 1 × n4-standard-2 | 2 | 8 | 50 GB ssd |
| Vmselect | 1 × n4-standard-4 | 4 | 16 | 100 GB ssd |
This Google Cloud deployment runs the VictoriaMetrics medium cluster tier in us-central1 for higher-ingest workloads requiring independently scaled paths. The primary cost driver is compute at $463.48 per month, dominated by the n4-standard-8 instance dedicated to vmstorage. High availability is disabled at this scale, meaning node failures cause component downtime until manual intervention or orchestration recovers the service.
Share the current URL or copy the Google Cloud Terraform / OpenTofu baseline.
# Compatible with Terraform >= 1.6 and OpenTofu >= 1.6
terraform {
required_version = ">= 1.6.0"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 6.0"
}
}
}
variable "project_id" {
description = "Google Cloud project ID for this deployment."
type = string
default = "replace-with-project-id"
}
provider "google" {
project = var.project_id
region = "us-central1"
}
locals {
zones = ["us-central1-a", "us-central1-b", "us-central1-c"]
}
# Generated for Google Cloud (us-central1) from the current estimate state.
resource "google_compute_disk" "vmstorage_1_data" {
count = 1
name = "victoria-metrics-vmstorage-1-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 2000
}
resource "google_compute_instance" "vmstorage_1" {
count = 1
name = "victoria-metrics-vmstorage-1-${count.index + 1}"
machine_type = "n4-standard-8"
zone = local.zones[count.index % length(local.zones)]
boot_disk {
initialize_params {
image = "projects/debian-cloud/global/images/family/debian-12"
size = 50
type = "hyperdisk-balanced"
}
}
network_interface {
network = "default"
access_config {}
}
attached_disk {
source = google_compute_disk.vmstorage_1_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "victoria-metrics"
role = "vmstorage"
}
}
resource "google_compute_disk" "vminsert_2_data" {
count = 1
name = "victoria-metrics-vminsert-2-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 50
}
resource "google_compute_instance" "vminsert_2" {
count = 1
name = "victoria-metrics-vminsert-2-${count.index + 1}"
machine_type = "n4-standard-2"
zone = local.zones[count.index % length(local.zones)]
boot_disk {
initialize_params {
image = "projects/debian-cloud/global/images/family/debian-12"
size = 50
type = "hyperdisk-balanced"
}
}
network_interface {
network = "default"
access_config {}
}
attached_disk {
source = google_compute_disk.vminsert_2_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "victoria-metrics"
role = "vminsert"
}
}
resource "google_compute_disk" "vmselect_3_data" {
count = 1
name = "victoria-metrics-vmselect-3-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 100
}
resource "google_compute_instance" "vmselect_3" {
count = 1
name = "victoria-metrics-vmselect-3-${count.index + 1}"
machine_type = "n4-standard-4"
zone = local.zones[count.index % length(local.zones)]
boot_disk {
initialize_params {
image = "projects/debian-cloud/global/images/family/debian-12"
size = 50
type = "hyperdisk-balanced"
}
}
network_interface {
network = "default"
access_config {}
}
attached_disk {
source = google_compute_disk.vmselect_3_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "victoria-metrics"
role = "vmselect"
}
}
Reference architecture: VictoriaMetrics for minimal-cluster, version VictoriaMetrics cluster version current documentation, retrieved April 13, 2026.
https://docs.victoriametrics.com/cluster-victoriametrics/
Pricing: Google Cloud pricing snapshot, retrieved November 29, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on VictoriaMetrics cluster documentation and translated into VM-based planning tiers for single-node and clustered self-managed deployments.
Estimate excludes object storage backups, vmagent fan-out, vmauth policy layers beyond the generic load balancer role, and workload-specific tuning from a production test run.
Self-managed ClickHouse columnar OLAP and observability analytics cluster with ClickHouse Keeper coordination.
Self-managed Grafana, Loki, Tempo, and Mimir (AGPLv3) microservices stack for horizontally scalable Prometheus metrics, logs, and distributed traces backed by object storage.
Self-managed Confluent Platform 8.x (Apache Kafka 4.x KRaft) for durable event streaming, schema governance, and Connect pipelines.