Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.22 KB

File metadata and controls

50 lines (33 loc) · 1.22 KB
page_type sample
languages
python
products
azure-monitor

Microsoft Azure Monitor Opentelemetry Exporter Metric Python Samples

These code samples show common champion scenario operations with the AzureMonitorMetricExporter.

Installation

$ pip install azure-monitor-opentelemetry-exporter --pre

Run the Applications

Metrics

  • Update APPLICATIONINSIGHTS_CONNECTION_STRING environment variable

  • Run the sample

$ # from this directory
$ python sample_metrics.py

Instrument usage

  • Update APPLICATIONINSIGHTS_CONNECTION_STRING environment variable

  • Run the sample

$ # from this directory
$ python sample_instruments.py

Explore the data

After running the applications, data would be available in Azure