# Monitoring Module for Azure
# Creates Log Analytics Workspace for centralized logging and monitoring

# Log Analytics Workspace
resource "azurerm_log_analytics_workspace" "main" {
  name                = "${var.cluster_name}-logs"
  location            = var.location
  resource_group_name = var.resource_group_name
  sku                 = "PerGB2018"
  retention_in_days   = var.environment == "prod" ? 90 : 30
  
  tags = merge(var.tags, {
    Purpose = "Logging"
  })
}

# Outputs are defined in outputs.tf

