ClickHouse Self-Managed
Self-managed ClickHouse columnar OLAP and observability analytics cluster with ClickHouse Keeper coordination.
Medium — 2 million active metric series and 500 GB/day logs+traces in read/write split mode
Monthly cost
$2,458.31
Annual cost
$29,500/year
| Compute | $2,041.81 |
| Storage | $416.50 |
| Other | $0.00 |
Saves $619.04/mo (25%) across Standard_E8ps_v6, Standard_D8ps_v6, Standard_D4ps_v6.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Ingester | 3 × Standard_E8s_v6 | 8 | 64 | 500 GB nvme |
| Querier Distributor | 2 × Standard_D8s_v6 | 8 | 32 | 100 GB ssd |
| Compactor Gateway | 2 × Standard_D4s_v6 | 4 | 16 | 250 GB ssd |
| Object Storage | 1 × object-bucket | — | — | 10 TB object |
This Azure architecture in westus3 supports the Grafana LGTM stack processing two million active metric series and five hundred gigabytes daily of logs and traces. The primary cost driver is compute at two thousand forty-one dollars and eighty-one cents monthly across seven virtual machines. Standard_E8s_v6 instances exclusively drive the compute expense by provisioning ingester nodes. High availability remains disabled, requiring careful operational planning during infrastructure maintenance.
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 = "grafana-lgtm-westus3-rg"
location = "westus3"
}
resource "azurerm_virtual_network" "workload" {
name = "grafana-lgtm-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" "ingester_1_nic" {
count = 3
name = "grafana-lgtm-ingester-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" "ingester_1" {
count = 3
name = "grafana-lgtm-ingester-1-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_E8s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.ingester_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 = "grafana-lgtm"
role = "ingester"
}
}
resource "azurerm_managed_disk" "ingester_1_data" {
count = 3
name = "grafana-lgtm-ingester-1-data-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
storage_account_type = "Premium_LRS"
create_option = "Empty"
disk_size_gb = 500
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "ingester_1_attach" {
count = 3
managed_disk_id = azurerm_managed_disk.ingester_1_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.ingester_1[count.index].id
lun = 0
caching = "None"
}
resource "azurerm_network_interface" "querier_distributor_2_nic" {
count = 2
name = "grafana-lgtm-querier-distributor-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" "querier_distributor_2" {
count = 2
name = "grafana-lgtm-querier-distributor-2-${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.querier_distributor_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 = "grafana-lgtm"
role = "querier-distributor"
}
}
resource "azurerm_managed_disk" "querier_distributor_2_data" {
count = 2
name = "grafana-lgtm-querier-distributor-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 = 100
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "querier_distributor_2_attach" {
count = 2
managed_disk_id = azurerm_managed_disk.querier_distributor_2_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.querier_distributor_2[count.index].id
lun = 0
caching = "None"
}
resource "azurerm_network_interface" "compactor_gateway_3_nic" {
count = 2
name = "grafana-lgtm-compactor-gateway-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" "compactor_gateway_3" {
count = 2
name = "grafana-lgtm-compactor-gateway-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.compactor_gateway_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 = "grafana-lgtm"
role = "compactor-gateway"
}
}
resource "azurerm_managed_disk" "compactor_gateway_3_data" {
count = 2
name = "grafana-lgtm-compactor-gateway-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 = 250
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "compactor_gateway_3_attach" {
count = 2
managed_disk_id = azurerm_managed_disk.compactor_gateway_3_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.compactor_gateway_3[count.index].id
lun = 0
caching = "None"
}
resource "azurerm_storage_account" "object_storage_4" {
count = 1
name = "grafanalgtmobj4${count.index + 1}"
resource_group_name = azurerm_resource_group.workload.name
location = azurerm_resource_group.workload.location
account_tier = "Standard"
account_replication_type = "LRS"
allow_nested_items_to_be_public = false
tags = {
app = "grafana-lgtm"
role = "object-storage"
estimated_gb = "10000"
}
}
resource "azurerm_storage_container" "object_storage_4_blobs" {
count = 1
name = "object-storage-blobs"
storage_account_id = azurerm_storage_account.object_storage_4[count.index].id
container_access_type = "private"
}
Reference architecture: Grafana LGTM Observability Stack for read-write-split-cluster, version Grafana Mimir 2.15+ & Loki 3.x capacity planning guidance, retrieved November 11, 2026.
https://grafana.com/docs/mimir/latest/manage/plan-and-size/
Pricing: Azure pricing snapshot, retrieved November 22, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on Grafana Labs published Mimir and Loki capacity planning ratios (roughly 1 ingester vCPU and 8 GB RAM per 300K active series) plus shared Grafana UI and Tempo components.
Estimate excludes Grafana Enterprise licensing, OpenTelemetry collector agent fleets, and object-storage PUT/GET request charges.
Self-managed ClickHouse columnar OLAP and observability analytics cluster with ClickHouse Keeper coordination.
Self-managed VictoriaMetrics for long-retention metrics storage, Prometheus remote write, and cost-conscious observability backends.
Self-managed Confluent Platform 8.x (Apache Kafka 4.x KRaft) for durable event streaming, schema governance, and Connect pipelines.