HAProxy receiver π
The HAProxy receiver generates metrics by polling periodically the HAProxy process through a dedicated socket or HTTP URL. The supported pipeline type is metrics
. See Process your data with pipelines for more information.
Note
Out-of-the-box dashboards and navigators arenβt supported for the HAProxy receiver yet, but are planned for a future release.
Get started π
Follow these steps to configure and activate the component:
Deploy the Splunk Distribution of the OpenTelemetry Collector to your host or container platform:
Configure the receiver as described in the next section.
Restart the Collector.
Sample configurations π
To activate the HAProxy receiver, add haproxy
to the receivers
section of your configuration file, as shown in the following example:
receivers:
haproxy:
endpoint: file:///var/run/haproxy.ipc
collection_interval: 1m
metrics:
To complete the configuration, include the receiver in the metrics
pipeline of the service
section of your configuration file. For example:
service:
pipelines:
metrics:
receivers: [haproxy]
Configuration options π
You can configure the following settings:
endpoint
. Required. Path to the endpoint exposed by HAProxy for communications. It can be a local file socket or a HTTP URL.collection_interval
. Optional,1m
by default. The scraping collection interval.initial_delay
. Optional,1s
by default. Defines how long this receiver waits before starting.
Settings π
The following table shows the configuration options for the HAProxy receiver:
Metrics π
The following metrics, resource attributes, and attributes are available.
Activate or deactivate specific metrics π
You can activate or deactivate specific metrics by setting the enabled
field in the metrics
section for each metric. For example:
receivers:
samplereceiver:
metrics:
metric-one:
enabled: true
metric-two:
enabled: false
The following is an example of host metrics receiver configuration with activated metrics:
receivers:
hostmetrics:
scrapers:
process:
metrics:
process.cpu.utilization:
enabled: true
Note
Deactivated metrics arenβt sent to Splunk Observability Cloud.
Billing π
If youβre in a MTS-based subscription, all metrics count towards metrics usage.
If youβre in a host-based plan, metrics listed as active (Active: Yes) on this document are considered default and are included free of charge.
Learn more at Infrastructure Monitoring subscription usage (Host and metric plans).
Troubleshooting π
If you are a Splunk Observability Cloud customer and are not able to see your data in Splunk Observability Cloud, you can get help in the following ways.
Available to Splunk Observability Cloud customers
Submit a case in the Splunk Support Portal .
Contact Splunk Support .
Available to prospective customers and free trial users
Ask a question and get answers through community support at Splunk Answers .
Join the Splunk #observability user group Slack channel to communicate with customers, partners, and Splunk employees worldwide. To join, see Chat groups in the Get Started with Splunk Community manual.