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
8 changes: 4 additions & 4 deletions azure/cache_redis/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ terraform {
required_version = ">= v1.0.11"
}

variable "cloud_observability_project" {
variable "lightstep_project" {
description = "Cloud Observability Project Name"
type = string
}

output "dashboard_url" {
value = "https://app.lightstep.com/${var.cloud_observability_project}/dashboard/${lightstep_dashboard.otel_collector_dashboard.id}"
value = "https://app.lightstep.com/${var.lightstep_project}/dashboard/${lightstep_dashboard.otel_collector_dashboard.id}"
description = "OpenTelemetry Collector Cache Redis Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.cloud_observability_project
project_name = var.lightstep_project
dashboard_name = "Cache Redis Metrics"
dashboard_description = "Monitor Cache Redis with this metrics overview dashboard."
dashboard_description = "[Beta] Monitor Cache Redis with this metrics overview dashboard."

chart {
name = "All Operations per Second"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ terraform {
required_version = ">= v1.0.11"
}

variable "cloud_observability_project" {
variable "lightstep_project" {
description = "Cloud Observability Project Name"
type = string
}

output "dashboard_url" {
value = "https://app.lightstep.com/${var.cloud_observability_project}/dashboard/${lightstep_dashboard.otel_collector_dashboard.id}"
value = "https://app.lightstep.com/${var.lightstep_project}/dashboard/${lightstep_dashboard.otel_collector_dashboard.id}"
description = "OpenTelemetry Collector CDN Web Application Firewall Policies Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.cloud_observability_project
project_name = var.lightstep_project
dashboard_name = "CDN Web Application Firewall Policies Metrics"
dashboard_description = "Monitor CDN Web Application Firewall Policies with this metrics overview dashboard."
dashboard_description = "[Beta] Monitor CDN Web Application Firewall Policies with this metrics overview dashboard."

chart {
name = "Web Application Firewall Requests"
Expand Down
8 changes: 4 additions & 4 deletions azure/cdn_profiles/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ terraform {
required_version = ">= v1.0.11"
}

variable "cloud_observability_project" {
variable "lightstep_project" {
description = "Cloud Observability Project Name"
type = string
}

output "dashboard_url" {
value = "https://app.lightstep.com/${var.cloud_observability_project}/dashboard/${lightstep_dashboard.otel_collector_dashboard.id}"
value = "https://app.lightstep.com/${var.lightstep_project}/dashboard/${lightstep_dashboard.otel_collector_dashboard.id}"
description = "OpenTelemetry Collector CDN Profiles Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.cloud_observability_project
project_name = var.lightstep_project
dashboard_name = "CDN Profiles Metrics"
dashboard_description = "Monitor CDN Profiles with this metrics overview dashboard."
dashboard_description = "[Beta] Monitor CDN Profiles with this metrics overview dashboard."

chart {
name = "Requests"
Expand Down
8 changes: 4 additions & 4 deletions azure/cognitiveservices_accounts/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ terraform {
required_version = ">= v1.0.11"
}

variable "cloud_observability_project" {
variable "lightstep_project" {
description = "Cloud Observability Project Name"
type = string
}

output "dashboard_url" {
value = "https://app.lightstep.com/${var.cloud_observability_project}/dashboard/${lightstep_dashboard.otel_collector_dashboard.id}"
value = "https://app.lightstep.com/${var.lightstep_project}/dashboard/${lightstep_dashboard.otel_collector_dashboard.id}"
description = "OpenTelemetry Collector Cognitive Services Accounts Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.cloud_observability_project
project_name = var.lightstep_project
dashboard_name = "Cognitive Services Accounts Metrics"
dashboard_description = "Monitor Cognitive Services Accounts with this metrics overview dashboard."
dashboard_description = "[Beta] Monitor Cognitive Services Accounts with this metrics overview dashboard."

chart {
name = "Success Rate"
Expand Down
181 changes: 181 additions & 0 deletions azure/compute_cloudservices/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
terraform {
required_providers {
lightstep = {
source = "lightstep/lightstep"
version = "~> 1.76.0"
}
}
required_version = ">= v1.0.11"
}

variable "lightstep_project" {
description = "Cloud Observability Project Name"
type = string
}

output "dashboard_url" {
value = "https://app.lightstep.com/${var.lightstep_project}/dashboard/${lightstep_dashboard.otel_collector_dashboard.id}"
description = "OpenTelemetry Collector Compute Cloud Services Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.lightstep_project
dashboard_name = "Compute Cloud Services Metrics"
dashboard_description = "[Beta] Monitor Compute Cloud Services with this metrics overview dashboard."

chart {
name = "Percentage CPU"
rank = "0"
type = "timeseries"

query {
query_name = "a"
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) && (metadata_roleinstanceid == $metadata_roleinstanceid) && (metadata_roleid == $metadata_roleid)) | delta | group_by [], sum
EOT
}
}

chart {
name = "Available Memory Bytes"
rank = "1"
type = "timeseries"

query {
query_name = "a"
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) && (metadata_roleinstanceid == $metadata_roleinstanceid) && (metadata_roleid == $metadata_roleid)) | delta | group_by [], sum
EOT
}
}

chart {
name = "Disk Read Operations/Sec"
rank = "2"
type = "timeseries"

query {
query_name = "a"
display = "line"
hidden = false
query_string = <<EOT
metric azure_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_roleinstanceid == $metadata_roleinstanceid) && (metadata_roleid == $metadata_roleid)) | delta | group_by [], sum
EOT
}
}

chart {
name = "Disk Write Operations/Sec"
rank = "3"
type = "timeseries"

query {
query_name = "a"
display = "line"
hidden = false
query_string = <<EOT
metric azure_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_roleinstanceid == $metadata_roleinstanceid) && (metadata_roleid == $metadata_roleid)) | delta | group_by [], sum
EOT
}
}

chart {
name = "Network In Total"
rank = "4"
type = "timeseries"

query {
query_name = "a"
display = "line"
hidden = false
query_string = <<EOT
metric azure_network_in_total_total | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_roleinstanceid == $metadata_roleinstanceid) && (metadata_roleid == $metadata_roleid)) | delta | group_by [], sum
EOT
}
}

chart {
name = "Network Out Total"
rank = "5"
type = "timeseries"

query {
query_name = "a"
display = "line"
hidden = false
query_string = <<EOT
metric azure_network_out_total_total | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_roleinstanceid == $metadata_roleinstanceid) && (metadata_roleid == $metadata_roleid)) | delta | group_by [], sum
EOT
}
}

chart {
name = "Disk Read Bytes"
rank = "6"
type = "timeseries"

query {
query_name = "a"
display = "line"
hidden = false
query_string = <<EOT
metric azure_disk_read_bytes_total | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_roleinstanceid == $metadata_roleinstanceid) && (metadata_roleid == $metadata_roleid)) | delta | group_by [], sum
EOT
}
}

chart {
name = "Disk Write Bytes"
rank = "7"
type = "timeseries"

query {
query_name = "a"
display = "line"
hidden = false
query_string = <<EOT
metric azure_disk_write_bytes_total | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_roleinstanceid == $metadata_roleinstanceid) && (metadata_roleid == $metadata_roleid)) | delta | group_by [], sum
EOT
}
}

template_variable {
name = "azuremonitor_resource_id"
default_values = []
suggestion_attribute_key = "azuremonitor.resource_id"
}

template_variable {
name = "azuremonitor_subscription_id"
default_values = []
suggestion_attribute_key = "azuremonitor.subscription_id"
}

template_variable {
name = "azuremonitor_tenant_id"
default_values = []
suggestion_attribute_key = "azuremonitor.tenant_id"
}

template_variable {
name = "location"
default_values = []
suggestion_attribute_key = "location"
}

template_variable {
name = "metadata_roleid"
default_values = []
suggestion_attribute_key = "metadata_roleid"
}

template_variable {
name = "metadata_roleinstanceid"
default_values = []
suggestion_attribute_key = "metadata_roleinstanceid"
}
}
9 changes: 9 additions & 0 deletions azure/compute_cloudservices/metrics.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Name,Description,Unit,DataType,Attributes,Default Aggregation
azure_percentage_cpu_average;azure_percentage_cpu_count;azure_percentage_cpu_maximum;azure_percentage_cpu_minimum;azure_percentage_cpu_total,The percentage of allocated compute units that are currently in use by the Virtual Machine(s),Percent,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_roleinstanceid;metadata_roleid,average
azure_available_memory_bytes_average;azure_available_memory_bytes_count;azure_available_memory_bytes_maximum;azure_available_memory_bytes_minimum;azure_available_memory_bytes_total,"Amount of physical memory, in bytes, immediately available for allocation to a process or for system use in the Virtual Machine",Bytes,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_roleinstanceid;metadata_roleid,average
azure_disk_read_operations/sec_average;azure_disk_read_operations/sec_count;azure_disk_read_operations/sec_maximum;azure_disk_read_operations/sec_minimum;azure_disk_read_operations/sec_total,Disk Read IOPS,CountPerSecond,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_roleinstanceid;metadata_roleid,average
azure_disk_write_operations/sec_average;azure_disk_write_operations/sec_count;azure_disk_write_operations/sec_maximum;azure_disk_write_operations/sec_minimum;azure_disk_write_operations/sec_total,Disk Write IOPS,CountPerSecond,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_roleinstanceid;metadata_roleid,average
azure_network_in_total_average;azure_network_in_total_count;azure_network_in_total_maximum;azure_network_in_total_minimum;azure_network_in_total_total,The number of bytes received on all network interfaces by the Virtual Machine(s) (Incoming Traffic),Bytes,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_roleinstanceid;metadata_roleid,total
azure_network_out_total_average;azure_network_out_total_count;azure_network_out_total_maximum;azure_network_out_total_minimum;azure_network_out_total_total,The number of bytes out on all network interfaces by the Virtual Machine(s) (Outgoing Traffic),Bytes,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_roleinstanceid;metadata_roleid,total
azure_disk_read_bytes_average;azure_disk_read_bytes_count;azure_disk_read_bytes_maximum;azure_disk_read_bytes_minimum;azure_disk_read_bytes_total,Bytes read from disk during monitoring period,Bytes,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_roleinstanceid;metadata_roleid,total
azure_disk_write_bytes_average;azure_disk_write_bytes_count;azure_disk_write_bytes_maximum;azure_disk_write_bytes_minimum;azure_disk_write_bytes_total,Bytes written to disk during monitoring period,Bytes,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_roleinstanceid;metadata_roleid,total
Loading