TELEMETRY PIPELINE
Cloudflare

Cloudflare source plugin

The Cloudflare source plugin lets you configure Chronosphere Telemetry Pipeline to collect data from Cloudflare.

Supported telemetry types

This plugin supports these telemetry types:

LogsMetricsTraces

Configuration parameters

Use the parameters in this section to configure your plugin. The Telemetry Pipeline web interface uses the values in the Name column to describe the parameters. Items in the Key column are the YAML keys to use in pipeline configuration files.

NameKeyDescriptionDefault
noneaddrThe address to listen to for incoming data.:9880
noneresp_headersThe response headers to set, each separated by a newline character. Supports templating.Content-Type: application/json
noneresp_status_codeThe response status code to set. This value must be an integer. Supports templating.200
noneresp_bodyThe response body to set. Supports templating.{\"status\": \"ok\"}
nonetime_fromThe time to set. This value must be an RFC3339 formatted string. Supports templating.Current RFC3339 time
nonecert_fileThe path to the certificate file to enable TLS.none
nonekey_fileThe path to the key file to enable TLS.none

Example configuration

The following example shows one possible way to set the inputs section of your pipeline's YAML configuration file for the Cloudflare source plugin:

pipeline:
  inputs:
    - name: cloudflare
      addr: :9880
      resp_headers: |-
        X-Custom: some value
        X-Custom-2: some other value
      resp_status_code: 200
      resp_body: |-
        {"status":"ok"}
      time_from: |-
        {{.time}}
      cert_file: ./cert.pem
      key_file: ./key.pem