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
2 changes: 1 addition & 1 deletion azure/Makefile.Common
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ destroy-terraform:

.PHONY: run-collector
run-collector:
docker run -d --name=$(EXAMPLE_NAME) -v ./:/conf/ -e AZURE_CLIENT_ID=${AZURE_CLIENT_ID} -e AZURE_CLIENT_SECRET=${AZURE_CLIENT_SECRET} -e AZURE_SUBSCRIPTION_ID=${AZURE_SUBSCRIPTION_ID} -e AZURE_TENANT_ID=${AZURE_TENANT_ID} -e LS_ACCESS_TOKEN=${LS_ACCESS_TOKEN} otel/opentelemetry-collector-contrib:0.79.0 --config=/conf/collector.yaml
docker run -d --name=$(EXAMPLE_NAME) -v ./:/conf/ -e AZURE_CLIENT_ID=${AZURE_CLIENT_ID} -e AZURE_CLIENT_SECRET=${AZURE_CLIENT_SECRET} -e AZURE_SUBSCRIPTION_ID=${AZURE_SUBSCRIPTION_ID} -e AZURE_TENANT_ID=${AZURE_TENANT_ID} -e LS_ACCESS_TOKEN=${LS_ACCESS_TOKEN} otel/opentelemetry-collector-contrib:0.81.0 --config=/conf/collector.yaml

.PHONY: stop-collector
stop-collector:
Expand Down
2 changes: 1 addition & 1 deletion azure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Detailed description of available [Azure metrics per service](https://learn.micr

Collector Azure Monitor receiver has to be configured to capture required Azure resources, [configuration description](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/azuremonitorreceiver#configuration).

The following example configuration collects metrics from Kong and send them to Lightstep Observability:
The following example configuration collects metrics from Azure and send them to Lightstep Observability:

```yaml
receivers:
Expand Down
2 changes: 1 addition & 1 deletion azure/compute_disks/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ variable "lightstep_project" {

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

resource "lightstep_dashboard" "otel_collector_dashboard" {
Expand Down
2 changes: 1 addition & 1 deletion azure/compute_virtualmachines/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ variable "lightstep_project" {

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

resource "lightstep_dashboard" "otel_collector_dashboard" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ variable "lightstep_project" {

output "dashboard_url" {
value = "https://app.lightstep.com/${var.lightstep_project}/dashboard/${lightstep_dashboard.otel_collector_dashboard.id}"
description = "OpenTelemetry Collector Containerregistry_registries Dashboard URL"
description = "OpenTelemetry Collector Container Registry Registries Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
Expand Down
58 changes: 8 additions & 50 deletions azure/containerservice_managedclusters/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ variable "lightstep_project" {

output "dashboard_url" {
value = "https://app.lightstep.com/${var.lightstep_project}/dashboard/${lightstep_dashboard.otel_collector_dashboard.id}"
description = "OpenTelemetry Collector Containerservice_managedclusters Dashboard URL"
description = "OpenTelemetry Collector Container Service Managed Clusters Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
Expand All @@ -33,7 +33,7 @@ resource "lightstep_dashboard" "otel_collector_dashboard" {
display = "line"
hidden = false
query_string = <<EOT
metric azure_apiserver_current_inflight_requests_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_requestkind == $metadata_requestkind)) | delta | group_by [], sum
metric azure_apiserver_current_inflight_requests_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_node_cpu_usage_percentage_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_node == $metadata_node) && (metadata_nodepool == $metadata_nodepool)) | delta | group_by [], sum
metric azure_node_cpu_usage_percentage_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 @@ -93,7 +93,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_node_network_in_bytes_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_node == $metadata_node) && (metadata_nodepool == $metadata_nodepool)) | delta | group_by [], sum
metric azure_node_network_in_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 @@ -108,7 +108,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_node_network_out_bytes_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_node == $metadata_node) && (metadata_nodepool == $metadata_nodepool)) | delta | group_by [], sum
metric azure_node_network_out_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 @@ -123,7 +123,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_kube_node_status_condition_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_condition == $metadata_condition) && (metadata_status == $metadata_status) && (metadata_status2 == $metadata_status2) && (metadata_node == $metadata_node)) | delta | group_by [], sum
metric azure_kube_node_status_condition_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_condition == $metadata_condition)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -138,7 +138,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_kube_pod_status_phase_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_phase == $metadata_phase) && (metadata_namespace == $metadata_namespace) && (metadata_pod == $metadata_pod)) | delta | group_by [], sum
metric azure_kube_pod_status_phase_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_namespace == $metadata_namespace)) | delta | group_by [], sum
EOT
}
}
Expand All @@ -153,7 +153,7 @@ EOT
display = "line"
hidden = false
query_string = <<EOT
metric azure_kube_pod_status_ready_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_namespace == $metadata_namespace) && (metadata_pod == $metadata_pod) && (metadata_condition == $metadata_condition)) | delta | group_by [], sum
metric azure_kube_pod_status_ready_average | filter ((azuremonitor.subscription_id == $azuremonitor_subscription_id) && (azuremonitor.tenant_id == $azuremonitor_tenant_id) && (azuremonitor.resource_id == $azuremonitor_resource_id) && (location == $location) && (metadata_namespace == $metadata_namespace) && (metadata_condition == $metadata_condition)) | delta | group_by [], sum
EOT
}
}
Expand Down Expand Up @@ -199,46 +199,4 @@ EOT
default_values = []
suggestion_attribute_key = "metadata_namespace"
}

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

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

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

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

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

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

template_variable {
name = "metadata_status2"
default_values = []
suggestion_attribute_key = "metadata_status2"
}
}
4 changes: 2 additions & 2 deletions azure/dbformariadb_servers/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ variable "lightstep_project" {

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

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.lightstep_project
dashboard_name = "MariaDB Servers Metrics"
dashboard_description = "Monitor Dbformariadb_servers with this metrics overview dashboard."
dashboard_description = "Monitor MariaDB Servers with this metrics overview dashboard."

chart {
name = "Active Connections"
Expand Down
6 changes: 3 additions & 3 deletions azure/dbformysql_flexibleservers/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ variable "lightstep_project" {

output "dashboard_url" {
value = "https://app.lightstep.com/${var.lightstep_project}/dashboard/${lightstep_dashboard.otel_collector_dashboard.id}"
description = "OpenTelemetry Collector Dbformysql_flexibleservers Dashboard URL"
description = "OpenTelemetry Collector MySQL Flexible Servers Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.lightstep_project
dashboard_name = "DB Mysql Flexible Servers Metrics"
dashboard_description = "Monitor DB Mysql Flexible Servers with this metrics overview dashboard."
dashboard_name = "MySQL Flexible Servers Metrics"
dashboard_description = "Monitor MySQL Flexible Servers with this metrics overview dashboard."

chart {
name = "CPU %"
Expand Down
6 changes: 3 additions & 3 deletions azure/dbformysql_servers/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ variable "lightstep_project" {

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

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.lightstep_project
dashboard_name = "DB Mysql Servers Metrics"
dashboard_description = "Monitor DB Mysql Servers with this metrics overview dashboard."
dashboard_name = "MySQL Servers Metrics"
dashboard_description = "Monitor MySQL Servers with this metrics overview dashboard."

chart {
name = "CPU %"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ variable "lightstep_project" {

output "dashboard_url" {
value = "https://app.lightstep.com/${var.lightstep_project}/dashboard/${lightstep_dashboard.otel_collector_dashboard.id}"
description = "OpenTelemetry Collector Dbforpostgresql_flexibleservers Dashboard URL"
description = "OpenTelemetry Collector PostgreSQL Flexible Servers Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.lightstep_project
dashboard_name = "DB PostgreSQL Flexible Servers Metrics"
dashboard_description = "Monitor Dbforpostgresql_flexibleservers with this metrics overview dashboard."
dashboard_name = "PostgreSQL Flexible Servers Metrics"
dashboard_description = "Monitor PostgreSQL Flexible Servers with this metrics overview dashboard."

chart {
name = "Active Connections"
Expand Down
6 changes: 3 additions & 3 deletions azure/dbforpostgresql_servers/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ variable "lightstep_project" {

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

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.lightstep_project
dashboard_name = "DB PostgreSQL Servers Metrics"
dashboard_description = "Monitor Dbforpostgresql_servers with this metrics overview dashboard."
dashboard_name = "PostgreSQL Servers Metrics"
dashboard_description = "Monitor PostgreSQL Servers with this metrics overview dashboard."

chart {
name = "Active Connections"
Expand Down
Loading