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
11 changes: 11 additions & 0 deletions azure/aad_domainservices/metrics.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Name,Description,Unit,DataType,Attributes,Default Aggregation
azure_\directoryservices(ntds)\ldap_searches/sec_average;azure_\directoryservices(ntds)\ldap_searches/sec_count;azure_\directoryservices(ntds)\ldap_searches/sec_maximum;azure_\directoryservices(ntds)\ldap_searches/sec_minimum;azure_\directoryservices(ntds)\ldap_searches/sec_total,"This metric indicates the average number of searches per second for the NTDS object. It is backed by performance counter data from the domain controller, and can be filtered or splitted by role instance.",CountPerSecond,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_datacenter;metadata_tenant;metadata_role;metadata_roleinstance;metadata_scaleunit,average
azure_\dns\total_query_received/sec_average;azure_\dns\total_query_received/sec_count;azure_\dns\total_query_received/sec_maximum;azure_\dns\total_query_received/sec_minimum;azure_\dns\total_query_received/sec_total,"This metric indicates the average number of queries received by DNS server in each second. It is backed by performance counter data from the domain controller, and can be filtered or splitted by role instance.",CountPerSecond,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_datacenter;metadata_tenant;metadata_role;metadata_roleinstance;metadata_scaleunit,average
azure_\process(dns)\%_processor_time_average;azure_\process(dns)\%_processor_time_count;azure_\process(dns)\%_processor_time_maximum;azure_\process(dns)\%_processor_time_minimum;azure_\process(dns)\%_processor_time_total,"This metric indicates the percentage of elapsed time that all of dns process threads used the processor to execute instructions. An instruction is the basic unit of execution in a computer, a thread is the object that executes instructions, and a process is the object created when a program is run. Code executed to handle some hardware interrupts and trap conditions are included in this count. It is backed by performance counter data from the domain controller, and can be filtered or splitted by role instance.",Percent,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_datacenter;metadata_tenant;metadata_role;metadata_roleinstance;metadata_scaleunit,average
azure_\dns\total_response_sent/sec_average;azure_\dns\total_response_sent/sec_count;azure_\dns\total_response_sent/sec_maximum;azure_\dns\total_response_sent/sec_minimum;azure_\dns\total_response_sent/sec_total,"This metric indicates the average number of reponses sent by DNS server in each second. It is backed by performance counter data from the domain controller, and can be filtered or splitted by role instance.",CountPerSecond,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_datacenter;metadata_tenant;metadata_role;metadata_roleinstance;metadata_scaleunit,average
azure_\process(lsass)\%_processor_time_average;azure_\process(lsass)\%_processor_time_count;azure_\process(lsass)\%_processor_time_maximum;azure_\process(lsass)\%_processor_time_minimum;azure_\process(lsass)\%_processor_time_total,"This metric indicates the percentage of elapsed time that all of lsass process threads used the processor to execute instructions. An instruction is the basic unit of execution in a computer, a thread is the object that executes instructions, and a process is the object created when a program is run. Code executed to handle some hardware interrupts and trap conditions are included in this count. It is backed by performance counter data from the domain controller, and can be filtered or splitted by role instance.",Percent,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_datacenter;metadata_tenant;metadata_role;metadata_roleinstance;metadata_scaleunit,average
azure_\memory\%_committed_bytes_in_use_average;azure_\memory\%_committed_bytes_in_use_count;azure_\memory\%_committed_bytes_in_use_maximum;azure_\memory\%_committed_bytes_in_use_minimum;azure_\memory\%_committed_bytes_in_use_total,"This metric indicates the ratio of Memory\Committed Bytes to the Memory\Commit Limit. Committed memory is the physical memory in use for which space has been reserved in the paging file should it need to be written to disk. The commit limit is determined by the size of the paging file. If the paging file is enlarged, the commit limit increases, and the ratio is reduced. This counter displays the current percentage value only; it is not an average. It is backed by performance counter data from the domain controller, and can be filtered or splitted by role instance.",Percent,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_datacenter;metadata_tenant;metadata_role;metadata_roleinstance;metadata_scaleunit,average
azure_\directoryservices(ntds)\ldap_successful_binds/sec_average;azure_\directoryservices(ntds)\ldap_successful_binds/sec_count;azure_\directoryservices(ntds)\ldap_successful_binds/sec_maximum;azure_\directoryservices(ntds)\ldap_successful_binds/sec_minimum;azure_\directoryservices(ntds)\ldap_successful_binds/sec_total,"This metric indicates the number of LDAP successful binds per second for the NTDS object. It is backed by performance counter data from the domain controller, and can be filtered or splitted by role instance.",CountPerSecond,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_datacenter;metadata_tenant;metadata_role;metadata_roleinstance;metadata_scaleunit,average
azure_\processor(_total)\%_processor_time_average;azure_\processor(_total)\%_processor_time_count;azure_\processor(_total)\%_processor_time_maximum;azure_\processor(_total)\%_processor_time_minimum;azure_\processor(_total)\%_processor_time_total,"This metric indicates the percentage of elapsed time that the processor spends to execute a non-Idle thread. It is calculated by measuring the percentage of time that the processor spends executing the idle thread and then subtracting that value from 100%. (Each processor has an idle thread that consumes cycles when no other threads are ready to run). This counter is the primary indicator of processor activity, and displays the average percentage of busy time observed during the sample interval. It should be noted that the accounting calculation of whether the processor is idle is performed at an internal sampling interval of the system clock (10ms). On todays fast processors, % Processor Time can therefore underestimate the processor utilization as the processor may be spending a lot of time servicing threads between the system clock sampling interval. Workload based timer applications are one example of applications which are more likely to be measured inaccurately as timers are signaled just after the sample is taken. It is backed by performance counter data from the domain controller, and can be filtered or splitted by role instance.",Percent,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_datacenter;metadata_tenant;metadata_role;metadata_roleinstance;metadata_scaleunit,average
azure_\security_system-wide_statistics\kerberos_authentications_average;azure_\security_system-wide_statistics\kerberos_authentications_count;azure_\security_system-wide_statistics\kerberos_authentications_maximum;azure_\security_system-wide_statistics\kerberos_authentications_minimum;azure_\security_system-wide_statistics\kerberos_authentications_total,"This metric indicates the number of times that clients use a ticket to authenticate to this computer per second. It is backed by performance counter data from the domain controller, and can be filtered or splitted by role instance.",CountPerSecond,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_datacenter;metadata_tenant;metadata_role;metadata_roleinstance;metadata_scaleunit,average
azure_\security_system-wide_statistics\ntlm_authentications_average;azure_\security_system-wide_statistics\ntlm_authentications_count;azure_\security_system-wide_statistics\ntlm_authentications_maximum;azure_\security_system-wide_statistics\ntlm_authentications_minimum;azure_\security_system-wide_statistics\ntlm_authentications_total,"This metric indicates the number of NTLM authentications processed per second for the Active Directory on this domain contrller or for local accounts on this member server. It is backed by performance counter data from the domain controller, and can be filtered or splitted by role instance.",CountPerSecond,Gauge,azuremonitor.subscription_id;azuremonitor.tenant_id;azuremonitor.resource_id;location;metadata_datacenter;metadata_tenant;metadata_role;metadata_roleinstance;metadata_scaleunit,average
292 changes: 292 additions & 0 deletions azure/cache_redis/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,292 @@
terraform {
required_providers {
lightstep = {
source = "lightstep/lightstep"
version = "~> 1.76.0"
}
}
required_version = ">= v1.0.11"
}

variable "cloud_observability_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}"
description = "OpenTelemetry Collector Cache Redis Dashboard URL"
}

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

chart {
name = "All Operations per Second"
rank = "0"
type = "timeseries"

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

chart {
name = "All Cache Hits"
rank = "1"
type = "timeseries"

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

chart {
name = "All Cache Misses"
rank = "2"
type = "timeseries"

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

chart {
name = "All Used Memory %"
rank = "3"
type = "timeseries"

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

chart {
name = "All % Processor Time"
rank = "4"
type = "timeseries"

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

chart {
name = "All Server Load"
rank = "5"
type = "timeseries"

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

chart {
name = "All Cache Read"
rank = "6"
type = "timeseries"

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

chart {
name = "All Cache Write"
rank = "7"
type = "timeseries"

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

chart {
name = "All Evicted Keys"
rank = "8"
type = "timeseries"

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

chart {
name = "All Expired Keys"
rank = "9"
type = "timeseries"

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

chart {
name = "All Connected Clients"
rank = "10"
type = "timeseries"

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

chart {
name = "All Connections Closed per Second"
rank = "11"
type = "timeseries"

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

chart {
name = "All Connections Created per Second"
rank = "12"
type = "timeseries"

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

chart {
name = "All Get Commands"
rank = "13"
type = "timeseries"

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

chart {
name = "All Set Commands"
rank = "14"
type = "timeseries"

query {
query_name = "a"
display = "line"
hidden = false
query_string = <<EOT
metric azure_allsetcommands_total | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_shardid == $metadata_shardid) && (metadata_port == $metadata_port) && (metadata_primary == $metadata_primary)) | 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_port"
default_values = []
suggestion_attribute_key = "metadata_port"
}

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

template_variable {
name = "metadata_shardid"
default_values = []
suggestion_attribute_key = "metadata_shardid"
}
}
Loading