Docs » Available host and application monitors » Configure application receivers for hosts and servers » Collectd custom plugin

Collectd custom plugin πŸ”—

The Splunk Distribution of OpenTelemetry Collector uses the Smart Agent receiver with the collectd/custom monitor type to customize the collectd configuration of your managed collectd instances.

This integration is only available on Kubernetes and Linux.

Benefits πŸ”—

After you configure the integration, you can access these features:

  • View metrics. You can create your own custom dashboards, and most monitors provide built-in dashboards as well. For information about dashboards, see View dashboards in Observability Cloud.

  • View a data-driven visualization of the physical servers, virtual machines, AWS instances, and other resources in your environment that are visible to Infrastructure Monitoring. For information about navigators, see Splunk Infrastructure Monitoring navigators.

  • Access the Metric Finder and search for metrics sent by the monitor. For information, see Use the Metric Finder.

Installation πŸ”—

Follow these steps to deploy this integration:

  1. Deploy the Splunk Distribution of OpenTelemetry Collector to your host or container platform:

  2. Configure the monitor, as described in the Configuration section.

  3. Restart the Splunk Distribution of OpenTelemetry Collector.

Configuration πŸ”—

To use this integration of a Smart Agent monitor with the Collector:

  1. Include the Smart Agent receiver in your configuration file.

  2. Add the monitor type to the Collector configuration, both in the receiver and pipelines sections.

Example πŸ”—

To activate this integration, add the following to your Collector configuration:

receivers:
  smartagent/custom:
    type: collectd/custom
    ... # Additional config

Next, add the monitor to the service > pipelines > metrics > receivers section of your configuration file:

service:
  pipelines:
    metrics:
      receivers: [smartagent/custom/collectd]

Configuration settings πŸ”—

The following table shows the configuration options for this integration:

Option

Required

Type

Description

host

no

string

This option is filled in by the agent if using service discovery. It can be accessed in the provided configuration template with {{.Host}}. This option is set to the hostname or IP address of the discovered service. If you aren’t using service discovery, you can hard code the host/port in the configuration template and ignore these fields.

port

no

integer

This option is filled in by the agent if using service discovery. It can be accessed in the provided configuration template with {{.Port}}. This option is set to the port of the discovered service, if it is a TCP/UDP endpoint. (default: 0)

name

no

string

This option is filled in by the agent if using service discovery. It can be accessed in the provided configuration template with {{.Name}}. This option is set to the name that the observer creates for the endpoint upon discovery. You can generally ignore this field.

template

no

string

A configuration template for collectd. You can include as many plugin blocks as you want in this value. It is rendered as a standard Go template, so be mindful of the delimiters {{ and }}.

templates

no

list of strings

A list of templates, but otherwise equivalent to the above template option. This lets you have a single directory with collectd configuration files and load them all by using a globbed remote configuration value.

collectdReadThreads

no

integer

The number of read threads to use in collectd. This option defaults to the number of templates provided, capped at 10, but if you manually specify it, there is no limit. (default: 0)

Metrics πŸ”—

The Splunk Distribution of OpenTelemetry Collector does not do any built-in filtering of metrics coming out of this integration.

Troubleshooting πŸ”—

If you are not able to see your data in Splunk Observability Cloud, try these tips:

To learn about even more support options, see Splunk Customer Success.