|
6 | 6 |
|
7 | 7 | ## Getting started |
8 | 8 |
|
| 9 | +### Installation |
| 10 | + |
| 11 | +To install the [latest version from PyPI](https://pypi.org/project/opentelemetry-exporter-dynatrace-metrics/) run: |
| 12 | + |
| 13 | +```shell |
| 14 | +pip install opentelemetry-exporter-dynatrace-metrics |
| 15 | +``` |
| 16 | + |
9 | 17 | ### Usage |
10 | 18 |
|
11 | 19 | The general setup of OpenTelemetry Python is explained in the official [Getting Started Guide](https://opentelemetry-python.readthedocs.io/en/stable/getting-started.html). |
@@ -35,8 +43,8 @@ counter.add(25, {"dimension-1", "value-1"}) |
35 | 43 | To run the [example](example/basic_example.py), clone this repository and change to the `opentelemetry-metric-python` folder, then run: |
36 | 44 |
|
37 | 45 | ```shell |
38 | | -pip install . # install the Dynatrace exporter |
39 | | -export LOGLEVEL=DEBUG # (optional) Set the log level to debug to see more output (default is INFO) |
| 46 | +pip install . # install the Dynatrace exporter |
| 47 | +export LOGLEVEL=DEBUG # (optional) Set the log level to debug to see more output (default is INFO) |
40 | 48 | python example/basic_example.py |
41 | 49 | ``` |
42 | 50 |
|
@@ -80,29 +88,29 @@ The `prefix` parameter specifies an optional prefix, which is prepended to each |
80 | 88 | The `default_dimensions` parameter can be used to optionally specify a list of key/value pairs, which will be added as additional dimensions to all data points. |
81 | 89 | Dimension keys are unique, and labels on instruments will overwrite the default dimensions if key collisions appear. |
82 | 90 |
|
83 | | -#### Export OneAgent Metadata |
| 91 | +#### Export Dynatrace Metadata |
84 | 92 |
|
85 | | -If running on a host with a running OneAgent, setting the `export_oneagent_metadata` option to `True` will export metadata collected by the OneAgent to the Dynatrace endpoint. |
| 93 | +If running on a host with a running OneAgent, setting the `export_dynatrace_metadata` option to `True` will export metadata collected by the OneAgent to the Dynatrace endpoint. |
86 | 94 | If no Dynatrace API endpoint is set, the default exporter endpoint will be the OneAgent endpoint, and this option will be set automatically. |
87 | | -Therefore, if no endpoint is specified, we assume a OneAgent is running and export to it, including metadata. |
88 | | -More information on the underlying OneAgent feature that is used by the exporter can be found in the |
| 95 | +Therefore, if no endpoint is specified, a OneAgent is assumed to be running and used as the export endpoint for all metric lines, including metadata. |
| 96 | +More information on the underlying Dynatrace metadata feature that is used by the exporter can be found in the |
89 | 97 | [Dynatrace documentation](https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-methods/enrich-metrics/). |
90 | 98 |
|
91 | 99 | ##### Dimensions precedence |
92 | 100 |
|
93 | | -When specifying default dimensions, labels and OneAgent metadata enrichment, the precedence of dimensions with the same key is as follows: |
94 | | -Default dimensions are overwritten by labels passed to instruments, which in turn are overwritten by the OneAgent dimensions (even though the likeliness of a collision here is very low, since the OneAgent metadata only contains [Dynatrace reserved dimensions](https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/metric-ingestion-protocol/#syntax) starting with `dt.*`). |
| 101 | +When specifying default dimensions, labels and Dynatrace metadata enrichment, the precedence of dimensions with the same key is as follows: |
| 102 | +Default dimensions are overwritten by labels passed to instruments, which in turn are overwritten by the Dynatrace metadata dimensions (even though the likeliness of a collision here is very low, since the Dynatrace metadata only contains [Dynatrace reserved dimensions](https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/metric-ingestion-protocol/#syntax) starting with `dt.*`). |
95 | 103 |
|
96 | 104 | ## Development |
97 | 105 |
|
98 | 106 | ### Requirements |
99 | 107 |
|
100 | | -Just [`tox`](https://pypi.org/project/tox/) |
| 108 | +Just [`tox`](https://pypi.org/project/tox/). |
101 | 109 |
|
102 | 110 | ### Running tests and lint |
103 | 111 |
|
104 | | -*Test all supported python versions:* `tox` |
105 | | -*Test all supported python versions in parallel:* `tox -p` |
106 | | -*A particular python version:* `tox -e 38` |
107 | | -*Current python version*: `tox -e py` |
108 | | -*Lint*: `tox -e lint` |
| 112 | +* Test all supported python versions: `tox` |
| 113 | +* Test all supported python versions in parallel: `tox -p` |
| 114 | +* A particular python version: `tox -e 38` |
| 115 | +* Current python version: `tox -e py` |
| 116 | +* Lint: `tox -e lint` |
0 commit comments