Azure Log Analytics Datasource Windows Performance Counter

This page shows how to write Terraform and Azure Resource Manager for Log Analytics Datasource Windows Performance Counter and write them securely.

azurerm_log_analytics_datasource_windows_performance_counter (Terraform)

The Datasource Windows Performance Counter in Log Analytics can be configured in Terraform with the resource name azurerm_log_analytics_datasource_windows_performance_counter. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L7
resource "azurerm_log_analytics_datasource_windows_performance_counter" "this" {
  counter_name        = var.counter_name
  instance_name       = var.instance_name
  interval_seconds    = var.interval_seconds
  name                = var.name
  object_name         = var.object_name

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages a Log Analytics (formally Operational Insights) Windows Performance Counter DataSource.

Microsoft.OperationalInsights/workspaces/datasources (Azure Resource Manager)

The workspaces/datasources in Microsoft.OperationalInsights can be configured in Azure Resource Manager with the resource name Microsoft.OperationalInsights/workspaces/datasources. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Frequently asked questions

What is Azure Log Analytics Datasource Windows Performance Counter?

Azure Log Analytics Datasource Windows Performance Counter is a resource for Log Analytics of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Log Analytics Datasource Windows Performance Counter?

For Terraform, the niveklabs/azurerm source code example is useful. See the Terraform Example section for further details.