| page_type | sample | |
|---|---|---|
| languages |
|
|
| products |
|
These code samples show common champion scenario operations with the AzureMonitorMetricExporter.
- Metrics: sample_metrics.py
- Instruments: sample_instruments.py
$ pip install azure-monitor-opentelemetry-exporter --pre-
Update
APPLICATIONINSIGHTS_CONNECTION_STRINGenvironment variable -
Run the sample
$ # from this directory
$ python sample_metrics.py-
Update
APPLICATIONINSIGHTS_CONNECTION_STRINGenvironment variable -
Run the sample
$ # from this directory
$ python sample_instruments.pyAfter running the applications, data would be available in Azure