These examples show how to customize the metrics that are output by the SDK using configuration on metric readers. There are multiple examples:
preferred_aggregation.py: Shows how to configure the preferred aggregation for metric instrument types.
preferred_temporality.py: Shows how to configure the preferred temporality for metric instrument types.
preferred_exemplarfilter.py: Shows how to configure the exemplar filter.
synchronous_gauge_read.py: Shows how to use PeriodicExportingMetricReader
in a synchronous manner to explicitly control the collection of metrics.
The source files of these examples are available here.
Installationpip install -r requirements.txtRun the Example
The output will be shown in the console.
Useful linksRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4