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,362.15
Annual cost
$28,346/year
| Compute | $1,837.15 |
| Storage | $525.00 |
| Other | $0.00 |
Saves $17.87/mo (1%) across c4a-highmem-8, c4a-standard-8, c4a-standard-4.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Ingester | 3 × n4-highmem-8 | 8 | 64 | 500 GB nvme |
| Querier Distributor | 2 × n4-standard-8 | 8 | 32 | 100 GB ssd |
| Compactor Gateway | 2 × n4-standard-4 | 4 | 16 | 250 GB ssd |
| Object Storage | 1 × object-bucket | — | — | 10 TB object |
This Google Cloud architecture supports the medium Grafana LGTM tier handling two million active metric series and 500 GB per day of logs and traces. Compute drives the monthly cost at eighteen hundred thirty-seven dollars and fifteen cents, led by three n4-highmem-8 ingester nodes. High availability is disabled across this read-write split cluster to minimize expenses.
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" "ingester_1_data" {
count = 3
name = "grafana-lgtm-ingester-1-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 500
}
resource "google_compute_instance" "ingester_1" {
count = 3
name = "grafana-lgtm-ingester-1-${count.index + 1}"
machine_type = "n4-highmem-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"
}
attached_disk {
source = google_compute_disk.ingester_1_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "grafana-lgtm"
role = "ingester"
}
}
resource "google_compute_disk" "querier_distributor_2_data" {
count = 2
name = "grafana-lgtm-querier-distributor-2-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 100
}
resource "google_compute_instance" "querier_distributor_2" {
count = 2
name = "grafana-lgtm-querier-distributor-2-${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.querier_distributor_2_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "grafana-lgtm"
role = "querier-distributor"
}
}
resource "google_compute_disk" "compactor_gateway_3_data" {
count = 2
name = "grafana-lgtm-compactor-gateway-3-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 250
}
resource "google_compute_instance" "compactor_gateway_3" {
count = 2
name = "grafana-lgtm-compactor-gateway-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"
}
attached_disk {
source = google_compute_disk.compactor_gateway_3_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "grafana-lgtm"
role = "compactor-gateway"
}
}
resource "google_storage_bucket" "object_storage_4" {
count = 1
name = "${var.project_id}-grafana-lgtm-object-storage-4-${count.index + 1}"
location = "us-central1"
storage_class = "STANDARD"
uniform_bucket_level_access = true
labels = {
app = "grafana-lgtm"
role = "object-storage"
estimated_gb = "10000"
}
}
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: Google Cloud 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.