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
$676.63
Annual cost
$8,120/year
| Compute | $515.38 |
| Storage | $161.25 |
| Other | $0.00 |
Saves $156.80/mo (23%) across Standard_D8ps_v6, Standard_D2ps_v6, Standard_D4ps_v6.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Vmstorage | 1 × Standard_D8s_v6 | 8 | 32 | 2 TB ssd |
| Vminsert | 1 × Standard_D2s_v6 | 2 | 8 | 50 GB ssd |
| Vmselect | 1 × Standard_D4s_v6 | 4 | 16 | 100 GB ssd |
This medium-tier VictoriaMetrics cluster on Azure in westus3 suits higher-ingest architectures with independently scaled insert, query, and storage paths. Compute is the primary cost driver at five hundred fifteen dollars and thirty-eight cents monthly, led by the vmstorage virtual machine. High availability is disabled at this scale, meaning node failure causes data unavailability until manual recovery occurs in Google Cloud.
Share the current URL or copy the Azure Terraform / OpenTofu baseline.
# Compatible with Terraform >= 1.6 and OpenTofu >= 1.6
terraform {
required_version = ">= 1.6.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 4.0"
}
}
}
variable "ssh_public_key" {
description = "SSH public key installed on Linux virtual machines."
type = string
default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG5vplaceholderreplacebeforeapply00000000000 azureuser@example"
}
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "workload" {
name = "victoria-metrics-westus3-rg"
location = "westus3"
}
resource "azurerm_virtual_network" "workload" {
name = "victoria-metrics-vnet"
address_space = ["10.42.0.0/16"]
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
}
resource "azurerm_subnet" "workload" {
name = "workload-internal"
resource_group_name = azurerm_resource_group.workload.name
virtual_network_name = azurerm_virtual_network.workload.name
address_prefixes = ["10.42.1.0/24"]
}
# Generated for Azure (westus3) from the current estimate state.
resource "azurerm_network_interface" "vmstorage_1_nic" {
count = 1
name = "victoria-metrics-vmstorage-1-nic-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
ip_configuration {
name = "internal"
subnet_id = azurerm_subnet.workload.id
private_ip_address_allocation = "Dynamic"
}
}
resource "azurerm_linux_virtual_machine" "vmstorage_1" {
count = 1
name = "victoria-metrics-vmstorage-1-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_D8s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.vmstorage_1_nic[count.index].id]
admin_ssh_key {
username = "azureuser"
public_key = var.ssh_public_key
}
os_disk {
caching = "ReadWrite"
storage_account_type = "StandardSSD_LRS"
disk_size_gb = 50
}
source_image_reference {
publisher = "Debian"
offer = "debian-12"
sku = "12-gen2"
version = "latest"
}
tags = {
app = "victoria-metrics"
role = "vmstorage"
}
}
resource "azurerm_managed_disk" "vmstorage_1_data" {
count = 1
name = "victoria-metrics-vmstorage-1-data-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
storage_account_type = "StandardSSD_LRS"
create_option = "Empty"
disk_size_gb = 2000
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "vmstorage_1_attach" {
count = 1
managed_disk_id = azurerm_managed_disk.vmstorage_1_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.vmstorage_1[count.index].id
lun = 0
caching = "None"
}
resource "azurerm_network_interface" "vminsert_2_nic" {
count = 1
name = "victoria-metrics-vminsert-2-nic-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
ip_configuration {
name = "internal"
subnet_id = azurerm_subnet.workload.id
private_ip_address_allocation = "Dynamic"
}
}
resource "azurerm_linux_virtual_machine" "vminsert_2" {
count = 1
name = "victoria-metrics-vminsert-2-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_D2s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.vminsert_2_nic[count.index].id]
admin_ssh_key {
username = "azureuser"
public_key = var.ssh_public_key
}
os_disk {
caching = "ReadWrite"
storage_account_type = "StandardSSD_LRS"
disk_size_gb = 50
}
source_image_reference {
publisher = "Debian"
offer = "debian-12"
sku = "12-gen2"
version = "latest"
}
tags = {
app = "victoria-metrics"
role = "vminsert"
}
}
resource "azurerm_managed_disk" "vminsert_2_data" {
count = 1
name = "victoria-metrics-vminsert-2-data-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
storage_account_type = "StandardSSD_LRS"
create_option = "Empty"
disk_size_gb = 50
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "vminsert_2_attach" {
count = 1
managed_disk_id = azurerm_managed_disk.vminsert_2_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.vminsert_2[count.index].id
lun = 0
caching = "None"
}
resource "azurerm_network_interface" "vmselect_3_nic" {
count = 1
name = "victoria-metrics-vmselect-3-nic-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
ip_configuration {
name = "internal"
subnet_id = azurerm_subnet.workload.id
private_ip_address_allocation = "Dynamic"
}
}
resource "azurerm_linux_virtual_machine" "vmselect_3" {
count = 1
name = "victoria-metrics-vmselect-3-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_D4s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.vmselect_3_nic[count.index].id]
admin_ssh_key {
username = "azureuser"
public_key = var.ssh_public_key
}
os_disk {
caching = "ReadWrite"
storage_account_type = "StandardSSD_LRS"
disk_size_gb = 50
}
source_image_reference {
publisher = "Debian"
offer = "debian-12"
sku = "12-gen2"
version = "latest"
}
tags = {
app = "victoria-metrics"
role = "vmselect"
}
}
resource "azurerm_managed_disk" "vmselect_3_data" {
count = 1
name = "victoria-metrics-vmselect-3-data-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
storage_account_type = "StandardSSD_LRS"
create_option = "Empty"
disk_size_gb = 100
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "vmselect_3_attach" {
count = 1
managed_disk_id = azurerm_managed_disk.vmselect_3_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.vmselect_3[count.index].id
lun = 0
caching = "None"
}
Reference architecture: VictoriaMetrics for minimal-cluster, version VictoriaMetrics cluster version current documentation, retrieved April 13, 2026.
https://docs.victoriametrics.com/cluster-victoriametrics/
Pricing: Azure 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.