Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions azure/dashboards/compute_disks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "lightstep_dashboard" "otel_collector_dashboard" {
display = "line"
hidden = false
query_string = <<EOT
metric azure_composite_disk_read_bytes/sec_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_composite_disk_read_bytes/sec_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -48,7 +48,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_composite_disk_read_operations/sec_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_composite_disk_read_operations/sec_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -63,7 +63,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_composite_disk_write_bytes/sec_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_composite_disk_write_bytes/sec_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -78,7 +78,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_composite_disk_write_operations/sec_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_composite_disk_write_operations/sec_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -93,13 +93,11 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_diskpaidburstiops_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_diskpaidburstiops_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}



template_variable {
name = "azuremonitor_resource_id"
default_values = []
Expand All @@ -123,6 +121,4 @@ EOT
default_values = []
suggestion_attribute_key = "location"
}


}
}
30 changes: 14 additions & 16 deletions azure/dashboards/compute_virtualmachines/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "lightstep_dashboard" "otel_collector_dashboard" {
display = "line"
hidden = false
query_string = <<EOT
metric azure_percentage_cpu_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_percentage_cpu_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -48,7 +48,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_available_memory_bytes_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_available_memory_bytes_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -63,7 +63,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_network_in_total | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_network_in_total | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -78,7 +78,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_network_out_total | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_network_out_total | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -93,7 +93,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_os_disk_bandwidth_consumed_percentage_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun) ) | delta | group_by [], sum
metric azure_os_disk_bandwidth_consumed_percentage_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -108,7 +108,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_cpu_credits_consumed_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_cpu_credits_consumed_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -123,7 +123,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_cpu_credits_remaining_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_cpu_credits_remaining_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}
Expand Down Expand Up @@ -153,7 +153,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_data_disk_read_operations/sec_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun) ) | delta | group_by [], sum
metric azure_data_disk_read_operations/sec_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -168,7 +168,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_data_disk_write_bytes/sec_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun) ) | delta | group_by [], sum
metric azure_data_disk_write_bytes/sec_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -183,7 +183,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_data_disk_write_operations/sec_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun) ) | delta | group_by [], sum
metric azure_data_disk_write_operations/sec_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -198,7 +198,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_data_disk_bandwidth_consumed_percentage_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun) ) | delta | group_by [], sum
metric azure_data_disk_bandwidth_consumed_percentage_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -213,7 +213,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_data_disk_iops_consumed_percentage_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun) ) | delta | group_by [], sum
metric azure_data_disk_iops_consumed_percentage_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -228,7 +228,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_data_disk_max_burst_bandwidth_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun) ) | delta | group_by [], sum
metric azure_data_disk_max_burst_bandwidth_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_lun == $metadata_lun)) | delta | group_by [], sum
EOT
}
}
Expand Down Expand Up @@ -262,6 +262,4 @@ EOT
default_values = []
suggestion_attribute_key = "metadata_lun"
}


}
}
16 changes: 6 additions & 10 deletions azure/dashboards/containerregistry_registries/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "lightstep_dashboard" "otel_collector_dashboard" {
display = "line"
hidden = false
query_string = <<EOT
metric azure_agentpoolcputime_total | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_agentpoolcputime_total | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -48,7 +48,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_runduration_total | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_runduration_total | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -63,7 +63,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_storageused_average | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_geolocation == $metadata_geolocation) ) | delta | group_by [], sum
metric azure_storageused_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_geolocation == $metadata_geolocation)) | delta | group_by [], sum
EOT
}
}
Expand Down Expand Up @@ -108,7 +108,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_totalpullcount_total | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_totalpullcount_total | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -123,13 +123,11 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_totalpushcount_total | filter ( (azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) ) | delta | group_by [], sum
metric azure_totalpushcount_total | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location)) | delta | group_by [], sum
EOT
}
}



template_variable {
name = "azuremonitor_resource_id"
default_values = []
Expand Down Expand Up @@ -159,6 +157,4 @@ EOT
default_values = []
suggestion_attribute_key = "metadata_geolocation"
}


}
}
Loading