|
| 1 | +.. _metrics-generation-processor: |
| 2 | + |
| 3 | +*********************************** |
| 4 | +Metrics generation processor |
| 5 | +*********************************** |
| 6 | + |
| 7 | +.. meta:: |
| 8 | + :description: Creates new metrics using existing metrics following a given rule. |
| 9 | + |
| 10 | +The Splunk Distribution of the OpenTelemetry Collector uses the Metrics transform processor to creates new metrics using existing metrics following a given rule. |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +Get started |
| 16 | +====================== |
| 17 | + |
| 18 | +Follow these steps to configure and activate the component: |
| 19 | + |
| 20 | +1. Deploy the Splunk Distribution of the OpenTelemetry Collector to your host or container platform: |
| 21 | + |
| 22 | + - :ref:`otel-install-linux` |
| 23 | + - :ref:`otel-install-windows` |
| 24 | + - :ref:`otel-install-k8s` |
| 25 | + |
| 26 | +2. Configure the ``metricsgeneration`` processor as described in the next section. |
| 27 | +3. Restart the Collector. |
| 28 | + |
| 29 | +Sample configuration |
| 30 | +-------------------------------------------- |
| 31 | + |
| 32 | +To activate the resource processor, add ``metricsgeneration`` to the ``processors`` section of your configuration file. |
| 33 | + |
| 34 | +For example: |
| 35 | + |
| 36 | +.. code-block:: yaml |
| 37 | +
|
| 38 | + processors: |
| 39 | + metricsgeneration: |
| 40 | +
|
| 41 | +To complete the configuration, include the processor in the ``metrics`` pipeline of the ``service`` section of your configuration file. For example: |
| 42 | + |
| 43 | +.. code-block:: yaml |
| 44 | +
|
| 45 | + service: |
| 46 | + pipelines: |
| 47 | + metrics: |
| 48 | + processors: [metricsgeneration] |
| 49 | +
|
| 50 | +.. _metrics-generation-processor-config-example: |
| 51 | + |
| 52 | +Configuration example |
| 53 | +---------------------------------- |
| 54 | + |
| 55 | + |
| 56 | +.. _metrics-generation-processor-settings: |
| 57 | + |
| 58 | +Settings |
| 59 | +====================== |
| 60 | + |
| 61 | +The following table shows the configuration options for the ``metricstransform`` processor: |
| 62 | + |
| 63 | +.. raw:: html |
| 64 | + |
| 65 | + <div class="metrics-standard" category="included" url="https://raw.githubusercontent.com/splunk/collector-config-tools/main/cfg-metadata/processor/metricstransform.yaml"></div> |
| 66 | + |
| 67 | +Troubleshooting |
| 68 | +====================== |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | +.. raw:: html |
| 73 | + |
| 74 | + <div class="include-start" id="troubleshooting-components.rst"></div> |
| 75 | + |
| 76 | +.. include:: /_includes/troubleshooting-components.rst |
| 77 | + |
| 78 | +.. raw:: html |
| 79 | + |
| 80 | + <div class="include-stop" id="troubleshooting-components.rst"></div> |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
0 commit comments