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
6 changes: 3 additions & 3 deletions azure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

The OTel Collector has a variety of [third party receivers](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/master/receiver) that provide integration with a wide variety of metric sources.

Please note that not all metrics receivers available for the OpenTelemetry Collector have been tested by Cloud Observability, and there may be bugs or unexpected issues in using these contributed receivers with Cloud Observability metrics. File any issues with the appropriate OpenTelemetry community.
Please note that not all metrics receivers available for the OpenTelemetry Collector have been tested by Lightstep Observability, and there may be bugs or unexpected issues in using these contributed receivers with Lightstep Observability metrics. File any issues with the appropriate OpenTelemetry community.
{: .callout}

## Prerequisites for local installation

You must have a Cloud Observability [access token](/docs/create-and-manage-access-tokens) for the project to report metrics to.
You must have a Lightstep Observability [access token](/docs/create-and-manage-access-tokens) for the project to report metrics to.
Also you must have Azure account credentials.

## Running the Example
Expand Down 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 Azure and send them to Cloud Observability:
The following example configuration collects metrics from Azure and send them to Lightstep Observability:

```yaml
receivers:
Expand Down
10 changes: 5 additions & 5 deletions azure/apimanagement_service/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ terraform {
required_version = ">= v1.0.11"
}

variable "cloud_observability_project" {
description = "Cloud Observability Project Name"
variable "lightstep_project" {
description = "Lightstep 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 API Management Service Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.cloud_observability_project
dashboard_name = "API Management Service Metrics"
project_name = var.lightstep_project
dashboard_name = "API Management Service Metrics"
dashboard_description = "Monitor API Management Service with this metrics overview dashboard."

chart {
Expand Down
6 changes: 3 additions & 3 deletions azure/apimanagement_service/examples/tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ provider "azurerm" {

variable "prefix" {
description = "A prefix used for all resources in this example"
default = "ex-apimgmt"
default = "ex-apimgmt"
}

resource "azurerm_resource_group" "example" {
name = var.prefix
name = "${var.prefix}"
location = "East US"
}

resource "azurerm_api_management" "example" {
name = var.prefix
name = "${var.prefix}"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
publisher_name = "My Company"
Expand Down
10 changes: 5 additions & 5 deletions azure/compute_disks/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ terraform {
required_version = ">= v1.0.11"
}

variable "cloud_observability_project" {
description = "Cloud Observability Project Name"
variable "lightstep_project" {
description = "Lightstep 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 Compute Disks Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.cloud_observability_project
dashboard_name = "Compute Disks Metrics"
project_name = var.lightstep_project
dashboard_name = "Compute Disks Metrics"
dashboard_description = "Monitor Compute Disks with this metrics overview dashboard."

chart {
Expand Down
26 changes: 13 additions & 13 deletions azure/compute_disks/examples/tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ provider "azurerm" {

variable "prefix" {
description = "A prefix used for all resources in this example"
default = "ex-compute-disks"
default = "ex-compute-disks"
}

resource "azurerm_resource_group" "example" {
name = var.prefix
name = "${var.prefix}"
location = "East US"
}

Expand Down Expand Up @@ -47,9 +47,9 @@ resource "azurerm_network_interface" "primary" {
}

resource "azurerm_network_interface" "internal" {
name = "${var.prefix}-internal-net"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
name = "${var.prefix}-internal-net"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location

ip_configuration {
name = "internal"
Expand Down Expand Up @@ -81,16 +81,16 @@ resource "azurerm_network_interface_security_group_association" "example" {
}

resource "azurerm_virtual_machine" "vm" {
name = "${var.prefix}-vm1"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
vm_size = "Standard_A1_v2"
name = "${var.prefix}-vm1"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
vm_size = "Standard_A1_v2"
network_interface_ids = [
azurerm_network_interface.primary.id,
azurerm_network_interface.internal.id
]
primary_network_interface_id = azurerm_network_interface.primary.id

delete_os_disk_on_termination = true

storage_image_reference {
Expand All @@ -101,9 +101,9 @@ resource "azurerm_virtual_machine" "vm" {
}

storage_os_disk {
caching = "ReadWrite"
name = "osdisk1"
create_option = "FromImage"
caching = "ReadWrite"
name = "osdisk1"
create_option = "FromImage"
managed_disk_type = "Standard_LRS"
}

Expand Down
10 changes: 5 additions & 5 deletions azure/compute_virtualmachines/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ terraform {
required_version = ">= v1.0.11"
}

variable "cloud_observability_project" {
description = "Cloud Observability Project Name"
variable "lightstep_project" {
description = "Lightstep 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 Compute Virtual Machines Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.cloud_observability_project
dashboard_name = "Compute Virtual Machines Metrics"
project_name = var.lightstep_project
dashboard_name = "Compute Virtual Machines Metrics"
dashboard_description = "Monitor Compute Virtual Machines with this metrics overview dashboard."

chart {
Expand Down
26 changes: 13 additions & 13 deletions azure/compute_virtualmachines/examples/tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ provider "azurerm" {

variable "prefix" {
description = "A prefix used for all resources in this example"
default = "ex-compute-vm"
default = "ex-compute-vm"
}

resource "azurerm_resource_group" "example" {
name = var.prefix
name = "${var.prefix}"
location = "East US"
}

Expand Down Expand Up @@ -47,9 +47,9 @@ resource "azurerm_network_interface" "primary" {
}

resource "azurerm_network_interface" "internal" {
name = "${var.prefix}-internal-net"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
name = "${var.prefix}-internal-net"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location

ip_configuration {
name = "internal"
Expand Down Expand Up @@ -81,16 +81,16 @@ resource "azurerm_network_interface_security_group_association" "example" {
}

resource "azurerm_virtual_machine" "vm" {
name = "${var.prefix}-vm1"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
vm_size = "Standard_A1_v2"
name = "${var.prefix}-vm1"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
vm_size = "Standard_A1_v2"
network_interface_ids = [
azurerm_network_interface.primary.id,
azurerm_network_interface.internal.id
]
primary_network_interface_id = azurerm_network_interface.primary.id

delete_os_disk_on_termination = true

storage_image_reference {
Expand All @@ -101,9 +101,9 @@ resource "azurerm_virtual_machine" "vm" {
}

storage_os_disk {
caching = "ReadWrite"
name = "osdisk1"
create_option = "FromImage"
caching = "ReadWrite"
name = "osdisk1"
create_option = "FromImage"
managed_disk_type = "Standard_LRS"
}

Expand Down
10 changes: 5 additions & 5 deletions azure/containerregistry_registries/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ terraform {
required_version = ">= v1.0.11"
}

variable "cloud_observability_project" {
description = "Cloud Observability Project Name"
variable "lightstep_project" {
description = "Lightstep 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 Container Registry Registries Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.cloud_observability_project
dashboard_name = "Container Registry Metrics"
project_name = var.lightstep_project
dashboard_name = "Container Registry Metrics"
dashboard_description = "Monitor Container Registry with this metrics overview dashboard."

chart {
Expand Down
8 changes: 4 additions & 4 deletions azure/containerregistry_registries/examples/tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ provider "azurerm" {

variable "prefix" {
description = "A prefix used for all resources in this example"
default = "exContainerRegistry"
default = "exContainerRegistry"
}

resource "azurerm_resource_group" "example" {
name = var.prefix
name = "${var.prefix}"
location = "East US"
}

resource "azurerm_container_registry" "example" {
name = "${var.prefix}registry"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
resource_group_name = "${azurerm_resource_group.example.name}"
location = "${azurerm_resource_group.example.location}"
sku = "Standard"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ terraform {
required_version = ">= v1.0.11"
}

variable "cloud_observability_project" {
description = "Cloud Observability Project Name"
variable "lightstep_project" {
description = "Lightstep 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 Container Service Managed Clusters Dashboard URL"
}

resource "lightstep_dashboard" "otel_collector_dashboard" {
project_name = var.cloud_observability_project
dashboard_name = "Container Service Managed Clusters Metrics"
project_name = var.lightstep_project
dashboard_name = "Container Service Managed Clusters Metrics"
dashboard_description = "Monitor Container Service Managed Clusters with this metrics overview dashboard."

chart {
Expand Down
4 changes: 2 additions & 2 deletions azure/containerservice_managedclusters/examples/tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ provider "azurerm" {

variable "prefix" {
description = "A prefix used for all resources in this example"
default = "ex-container-cluster"
default = "ex-container-cluster"
}

resource "azurerm_resource_group" "example" {
name = var.prefix
name = "${var.prefix}"
location = "East US"
}

Expand Down
10 changes: 5 additions & 5 deletions azure/dbformariadb_servers/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ terraform {
required_version = ">= v1.0.11"
}

variable "cloud_observability_project" {
description = "Cloud Observability Project Name"
variable "lightstep_project" {
description = "Lightstep 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 MariaDB Servers Dashboard URL"
}

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

chart {
Expand Down
4 changes: 2 additions & 2 deletions azure/dbformariadb_servers/examples/tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ provider "azurerm" {

variable "prefix" {
description = "A prefix used for all resources in this example"
default = "ex-maria"
default = "ex-maria"
}

resource "azurerm_resource_group" "example" {
name = var.prefix
name = "${var.prefix}"
location = "East US"
}

Expand Down
10 changes: 5 additions & 5 deletions azure/dbformysql_flexibleservers/dashboards/overview/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ terraform {
required_version = ">= v1.0.11"
}

variable "cloud_observability_project" {
description = "Cloud Observability Project Name"
variable "lightstep_project" {
description = "Lightstep 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 MySQL Flexible Servers Dashboard URL"
}

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

chart {
Expand Down
Loading