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
$687.09
Annual cost
$8,245/year
| Compute | $515.09 |
| Storage | $172.00 |
| Other | $0.00 |
Saves $56.41/mo (8%) across m8g.2xlarge, m8g.large, m8g.xlarge.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Vmstorage | 1 × m7i.2xlarge | 8 | 32 | 2 TB ssd |
| Vminsert | 1 × m7i.large | 2 | 8 | 50 GB ssd |
| Vmselect | 1 × m7i.xlarge | 4 | 16 | 100 GB ssd |
This medium tier fits starter workloads requiring independently scaled insert, query, and storage paths on Google Cloud. Compute is the primary cost driver at five hundred fifteen dollars and nine cents per month. High availability is disabled across all nodes, creating a single point of failure for each VictoriaMetrics component.
Share the current URL or copy the AWS Terraform / OpenTofu baseline.
# Compatible with Terraform >= 1.6 and OpenTofu >= 1.6
terraform {
required_version = ">= 1.6.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
provider "aws" {
region = "us-east-1"
}
data "aws_availability_zones" "available" {
state = "available"
}
data "aws_ami" "debian_12_x86" {
most_recent = true
owners = ["136693071363"]
filter {
name = "name"
values = ["debian-12-amd64-*"]
}
filter {
name = "virtualization-type"
values = ["hvm"]
}
}
locals {
azs = slice(data.aws_availability_zones.available.names, 0, 3)
}
resource "aws_vpc" "workload" {
cidr_block = "10.42.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
tags = {
Name = "victoria-metrics-vpc"
}
}
resource "aws_subnet" "workload" {
count = 3
vpc_id = aws_vpc.workload.id
cidr_block = cidrsubnet(aws_vpc.workload.cidr_block, 8, count.index)
availability_zone = local.azs[count.index]
tags = {
Name = "victoria-metrics-subnet-${count.index + 1}"
}
}
# Generated for AWS (us-east-1) from the current estimate state.
resource "aws_instance" "vmstorage_1" {
count = 1
ami = data.aws_ami.debian_12_x86.id
instance_type = "m7i.2xlarge"
subnet_id = aws_subnet.workload[count.index % length(aws_subnet.workload)].id
associate_public_ip_address = true
root_block_device {
volume_type = "gp3"
volume_size = 50
encrypted = true
}
tags = {
Name = "victoria-metrics-vmstorage-1-${count.index + 1}"
App = "victoria-metrics"
Role = "vmstorage"
}
}
resource "aws_ebs_volume" "vmstorage_1_data" {
count = 1
availability_zone = local.azs[count.index % length(local.azs)]
size = 2000
type = "gp3"
encrypted = true
tags = {
Name = "victoria-metrics-vmstorage-1-data-${count.index + 1}"
App = "victoria-metrics"
Role = "vmstorage"
}
}
resource "aws_volume_attachment" "vmstorage_1_attach" {
count = 1
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.vmstorage_1_data[count.index].id
instance_id = aws_instance.vmstorage_1[count.index].id
}
resource "aws_instance" "vminsert_2" {
count = 1
ami = data.aws_ami.debian_12_x86.id
instance_type = "m7i.large"
subnet_id = aws_subnet.workload[count.index % length(aws_subnet.workload)].id
associate_public_ip_address = true
root_block_device {
volume_type = "gp3"
volume_size = 50
encrypted = true
}
tags = {
Name = "victoria-metrics-vminsert-2-${count.index + 1}"
App = "victoria-metrics"
Role = "vminsert"
}
}
resource "aws_ebs_volume" "vminsert_2_data" {
count = 1
availability_zone = local.azs[count.index % length(local.azs)]
size = 50
type = "gp3"
encrypted = true
tags = {
Name = "victoria-metrics-vminsert-2-data-${count.index + 1}"
App = "victoria-metrics"
Role = "vminsert"
}
}
resource "aws_volume_attachment" "vminsert_2_attach" {
count = 1
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.vminsert_2_data[count.index].id
instance_id = aws_instance.vminsert_2[count.index].id
}
resource "aws_instance" "vmselect_3" {
count = 1
ami = data.aws_ami.debian_12_x86.id
instance_type = "m7i.xlarge"
subnet_id = aws_subnet.workload[count.index % length(aws_subnet.workload)].id
associate_public_ip_address = true
root_block_device {
volume_type = "gp3"
volume_size = 50
encrypted = true
}
tags = {
Name = "victoria-metrics-vmselect-3-${count.index + 1}"
App = "victoria-metrics"
Role = "vmselect"
}
}
resource "aws_ebs_volume" "vmselect_3_data" {
count = 1
availability_zone = local.azs[count.index % length(local.azs)]
size = 100
type = "gp3"
encrypted = true
tags = {
Name = "victoria-metrics-vmselect-3-data-${count.index + 1}"
App = "victoria-metrics"
Role = "vmselect"
}
}
resource "aws_volume_attachment" "vmselect_3_attach" {
count = 1
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.vmselect_3_data[count.index].id
instance_id = aws_instance.vmselect_3[count.index].id
}
Reference architecture: VictoriaMetrics for minimal-cluster, version VictoriaMetrics cluster version current documentation, retrieved April 13, 2026.
https://docs.victoriametrics.com/cluster-victoriametrics/
Pricing: AWS 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.