|
| 1 | +.. _telegraf: |
| 2 | + |
| 3 | +Telegraf |
| 4 | +================== |
| 5 | + |
| 6 | +.. meta:: |
| 7 | + :description: Use this Splunk Observability Cloud integration for the telegraf monitor. See benefits, install, configuration, and metrics |
| 8 | + |
| 9 | + |
| 10 | +Instead of using The Splunk Distribution of the OpenTelemetry Collector's Smart Agent receiver with the |
| 11 | +Telegraf monitor to scrape metrics, it is recommended to install Telegraf plugin independently, then push metrics to the Splunk Opentelemetry collector |
| 12 | +via OTLP. |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +.. note:: All the setup was carried out on a Linux Ubuntu OS based machine but should be replicable on any machines running Linux OS with Debian flavor. |
| 17 | + |
| 18 | +These instruction to install the telegraf plugin to scrape metrics on other OS (for e.g. MacOS/Windows) operating systems, have not been tested |
| 19 | +out. |
| 20 | + |
| 21 | +Benefits |
| 22 | +-------- |
| 23 | + |
| 24 | +.. include:: /_includes/benefits.rst |
| 25 | + |
| 26 | +Installation of Telegraf Plugin |
| 27 | +---------------------------------- |
| 28 | + |
| 29 | +Run the following commands to install Telegraf from the InfluxData repository: |
| 30 | + |
| 31 | +.. code:: shell |
| 32 | +
|
| 33 | + curl --silent --location -O \ https://repos.influxdata.com/influxdata-archive.key \ && echo "943666881a1b8d9b849b74caebf02d3465d6beb716510d86a39f6c8e8dac7515 influxdata-archive.key" \ |
| 34 | + | sha256sum -c - && cat influxdata-archive.key \ |
| 35 | + | gpg --dearmor \ |
| 36 | + | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive.gpg > /dev/null \ |
| 37 | + && echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main' \ |
| 38 | + | sudo tee /etc/apt/sources.list.d/influxdata.list |
| 39 | + sudo apt-get update && sudo apt-get install telegraf |
| 40 | +
|
| 41 | +
|
| 42 | +After successful installation of telegraf above, you can add the following to your telegraf configuration file (usually the config file resides on |
| 43 | +./etc/telegraf/telegraf.d directory) |
| 44 | + |
| 45 | + |
| 46 | + # Send OpenTelemetry metrics over gRPC |
| 47 | + [[outputs.opentelemetry]] |
| 48 | + |
| 49 | +For detailed information on the Telegraf Opentelemetry output plugin configuration, check https://github.com/influxdata/telegraf/blob/master/plugins/outputs/opentelemetry/README.md |
| 50 | + |
| 51 | +Configuration |
| 52 | +------------- |
| 53 | + |
| 54 | +To retrieve metrics from this telegraf installation running independently, the following Collector |
| 55 | +configuration is sufficient: |
| 56 | + |
| 57 | +.. code:: yaml |
| 58 | +
|
| 59 | + receivers: |
| 60 | + otlp: |
| 61 | + protocols: |
| 62 | + http: |
| 63 | + grpc: |
| 64 | + signalfx: |
| 65 | + exporters: |
| 66 | + signalfx: |
| 67 | + access_token: "SPLUNK_TOKEN" |
| 68 | + realm: "us0" |
| 69 | + service: |
| 70 | + pipelines: |
| 71 | + metrics: |
| 72 | + receivers: [otlp] |
| 73 | + exporters: [signalfx] |
| 74 | + metrics/internal: |
| 75 | + receivers: [signalfx] |
| 76 | + processors: |
| 77 | + exporters: [signalfx] |
| 78 | +
|
| 79 | +
|
| 80 | +Troubleshooting |
| 81 | +--------------- |
| 82 | + |
| 83 | +.. include:: /_includes/troubleshooting-components.rst |
0 commit comments