HAProxy Prometheus
Plugin: go.d.plugin Module: prometheus
Overview
Monitor HAProxy process, frontend, listener, backend, server, and stick-table behavior through its Prometheus endpoint.
Netdata periodically scrapes the HAProxy Prometheus endpoint with the generic Prometheus collector and applies the
built-in haproxy profile.
This collector is supported on all platforms.
This collector supports collecting metrics from multiple instances of this integration, including remote instances.
HAProxy Prometheus can be monitored further using the following other integrations:
Default Behavior
Auto-Detection
By default, it detects instances running on the local host by trying to connect to known ports that are allocated to exporters.
Limits
The default configuration for this integration does not impose any limits on data collection.
Performance Impact
The default configuration for this integration is not expected to impose a significant performance impact on the system.
Setup
You can configure the prometheus collector in two ways:
| Method | Best for | How to |
|---|---|---|
| UI | Fast setup without editing files | Go to Nodes → Configure this node → Collectors → Jobs, search for prometheus, then click + to add a job. |
| File | If you prefer configuring via file, or need to automate deployments (e.g., with Ansible) | Edit go.d/prometheus.conf and add a job. |
UI configuration requires paid Netdata Cloud plan.
Prerequisites
Enable the HAProxy Prometheus endpoint
Configure HAProxy's built-in Prometheus exporter as described in the HAProxy documentation.
Configuration
Options
The following options can be defined globally: update_every, autodetection_retry.
Config options
| Group | Option | Description | Default | Required |
|---|---|---|---|---|
| Collection | update_every | Data collection interval (seconds). | 10 | no |
| autodetection_retry | Autodetection retry interval (seconds). Set 0 to disable. | 0 | no | |
| Target | url | Target endpoint URL. | yes | |
| timeout | HTTP request timeout (seconds). | 10 | no | |
| expected_prefix | If set, the job's check passes only when at least one post-job, pre-profile metric name starts with this prefix. Guards against scraping an unexpected endpoint; profile-owned relabeling cannot satisfy it. | no | ||
| Customization | app | Application name used as the app segment of chart contexts (prometheus.<app>.<metric>). When unset, it is taken from a matched profile, otherwise it falls back to the job name. | no | |
| Filters | selector | Time series selector (filter). | no | |
| Limits | max_time_series | Global time series limit applied after job and profile relabeling. If the final output exceeds it, the data is not processed. | 2000 | no |
| max_time_series_per_metric | Per-metric time series limit applied to final metric families. Metrics exceeding it are skipped. | 200 | no | |
| Customization | fallback_type | Job-level fallback type overrides for untyped metrics. | no | |
| relabeling | Job-owned Prometheus-compatible metric relabeling, applied before profile selection. | no | ||
| profiles | Curated, exporter-specific chart profiles with optional untyped classification, profile-owned normalization, and scoped fallback-chart policy. User profiles may constrain unmatched fallback charts; stock profiles preserve unknown future families. Disable profiles with mode none. | auto | no | |
| HTTP Auth | username | Username for Basic HTTP authentication. | no | |
| password | Password for Basic HTTP authentication. | no | ||
| bearer_token_file | Path to a file containing a bearer token (used for Authorization: Bearer). | no | ||
| TLS | tls_skip_verify | Skip TLS certificate and hostname verification (insecure). | no | no |
| tls_ca | Path to CA bundle used to validate the server certificate. | no | ||
| tls_cert | Path to client TLS certificate (for mTLS). | no | ||
| tls_key | Path to client TLS private key (for mTLS). | no | ||
| Proxy | proxy_url | HTTP proxy URL. | no | |
| proxy_username | Username for proxy Basic HTTP authentication. | no | ||
| proxy_password | Password for proxy Basic HTTP authentication. | no | ||
| Request | method | HTTP method to use. | GET | no |
| body | Request body (e.g., for POST/PUT). | no | ||
| headers | Additional HTTP headers (one per line as key: value). | no | ||
| not_follow_redirects | Do not follow HTTP redirects. | no | no | |
| force_http2 | Force HTTP/2 (including h2c over TCP). | no | no | |
| Virtual Node | vnode | Associates this data collection job with a Virtual Node. | no |
selector
This option allows you to filter out unwanted time series. Only metrics matching the selector will be collected.
- Logic: (pattern1 OR pattern2) AND !(pattern3 or pattern4)
- Pattern syntax: selector.
- Option syntax:
selector:
allow:
- pattern1
- pattern2
deny:
- pattern3
- pattern4
fallback_type
This job option allows you to process untyped metrics as Counter or Gauge instead of ignoring them. Classification uses the post-job, pre-profile metric name. Profile relabeling preserves the selected type but cannot create or change it by renaming the final metric.
Selected profiles may provide exporter-owned fallback_type defaults inside their own match scope.
Job gauge rules take precedence over job counter rules, and both job rule sets take precedence over
every profile rule. Use them for deployment-specific overrides rather than exporter behavior that
belongs in a profile. Keep patterns narrow: a broad job rule such as gauge: ['*'] overrides profile
counter classifications. Blank patterns and patterns with leading or trailing whitespace are rejected.
- Metric name pattern syntax: shell file name pattern.
- Option syntax:
fallback_type:
counter:
- metric_name_pattern1
- metric_name_pattern2
gauge:
- metric_name_pattern3
- metric_name_pattern4
relabeling
A list of job-owned relabeling blocks, applied after selector and before profile selection. Each block
applies a list of Prometheus metric_relabel_configs rules to the metrics whose name matches match.
Profiles may own the same block format for exporter normalization after selection. See the
relabeling reference for
the full action set and more examples.
match: Netdata simple patterns matched against the full metric name — including any_bucket/_sum/_countsuffix, so prefer globs likeapp_lat*over an exactapp_lat(space-separated;*matches any sequence,?any character, a leading!negates). Use*to target every metric. Required.metric_relabel_configs: Prometheus relabel rules (source_labels,separator,regex,modulus,target_label,replacement,action), applied in order to the scraped samples before charts are built.
Relabeling that would corrupt a histogram or summary — splitting it, dropping a component, mutating the
le/quantile label, or merging two families — is rejected.
relabeling:
- match: 'http_*'
metric_relabel_configs:
- source_labels: [code]
regex: '(\d)\d\d'
target_label: code_class
replacement: '${1}xx'
profiles
Profiles ship curated charts for recognized exporters -- see the
profile format for the file format and how
to author your own. profiles.mode selects them:
auto(default): every profile whosematchhits at least one scraped metric.exact: only the profiles named inmode_exact.entries(each must match, or the job fails its check).combined:autoplus the profiles named inmode_combined.entries.none: no profiles — generic autogen charts only (the pre-profile behavior).
Selection uses post-job, pre-profile family names. A selected profile may carry fallback_type rules
that classify untyped scalar families inside its match scope and relabeling blocks that normalize
matching source families automatically before chart routing. Job fallback policy takes precedence;
conflicting profile rules use the same ordering as normalization. Each original family is
processed only by the first applicable profile normalizer: profile-name order in auto, configured
entry order in exact, and configured entries followed by remaining auto profiles in name order in
combined. Later profile pipelines do not see the family. All selected templates consume the same
final names and labels; the collector does not create a private metric stream per profile.
Only the block matching the selected mode (mode_exact or mode_combined) is read; entries under the
other block are ignored. Metrics not covered by an authored profile chart keep their generic autogen
charts unless an applicable profile autogen.selector rejects them. Every selector is limited to its
profile's match scope; when scopes overlap, every applicable selector must accept the series. This
changes fallback charts only; use selector or a relabeling drop rule to discard samples.
Stock profiles leave unknown future families eligible for generic fallback; closed fallback selectors are a
user-owned deployment policy, not a stock-profile authoring pattern.
profiles:
mode: exact
mode_exact:
entries:
- name: haproxy
via UI
Configure the prometheus collector from the Netdata web interface:
- Go to Nodes.
- Select the node where you want the prometheus data-collection job to run and click the ⚙ (Configure this node). That node will run the data collection.
- The Collectors → Jobs view opens by default.
- In the Search box, type prometheus (or scroll the list) to locate the prometheus collector.
- Click the + next to the prometheus collector to add a new job.
- Fill in the job fields, then click Test to verify the configuration and Submit to save.
- Test runs the job with the provided settings and shows whether data can be collected.
- If it fails, an error message appears with details (for example, connection refused, timeout, or command execution errors), so you can adjust and retest.
via File
The configuration file name for this integration is go.d/prometheus.conf.
The file format is YAML. Generally, the structure is:
update_every: 1
autodetection_retry: 0
jobs:
- name: some_name1
- name: some_name2
You can edit the configuration file using the edit-config script from the
Netdata config directory.
cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config go.d/prometheus.conf
Examples
HAProxy Prometheus
Collect HAProxy metrics with the automatically matched stock profile.
jobs:
- name: haproxy
url: http://127.0.0.1:8404/metrics
expected_prefix: haproxy_
Alerts
There are no alerts configured by default for this integration.
Metrics
The built-in Prometheus profiles on this page define 204 curated charts across the primary and applicable supporting profiles. The catalogue is generated from the same profile design and runtime chart contracts used by the Agent.
Eligible metrics that are not covered by a curated chart, including future exporter metrics, can still be collected through the generic Prometheus autogeneration behavior. This catalogue describes curated profile coverage; it is not an allowlist of every metric that the collector can render.
Curated profile coverage (204 charts)
HAProxy Prometheus — 204 charts
Curated process, frontend, listener, backend, server, and stick-table metrics from the HAProxy Prometheus exporter.Process (58 charts)
Activity (5 charts)
Received Logs
logs/svalueSource metric selectors (1)
haproxy_process_recv_logs_totalRelative Process ID
process idvalueSource metric selectors (1)
haproxy_process_relative_process_idRequests
requests/svalueSource metric selectors (1)
haproxy_process_requests_totalThreads
threadsvalueSource metric selectors (1)
haproxy_process_nbthreadWorker Processes
processesvalueSource metric selectors (1)
haproxy_process_nbprocCompression (3 charts)
Current Zlib Memory
bytesvalueSource metric selectors (1)
haproxy_process_current_zlib_memoryHTTP Compression Limit
bytes/svalueSource metric selectors (1)
haproxy_process_limit_http_compMax Zlib Memory
bytesvalueSource metric selectors (1)
haproxy_process_max_zlib_memoryConnections (11 charts)
Connections
connections/svalueSource metric selectors (1)
haproxy_process_connections_totalCurrent Connection Rate
connections/svalueSource metric selectors (1)
haproxy_process_current_connection_rateCurrent Connections
connectionsvalueSource metric selectors (1)
haproxy_process_current_connectionsHard Max Connections
connectionsvalueSource metric selectors (1)
haproxy_process_hard_max_connectionsLimit Connection Rate
connections/svalueSource metric selectors (1)
haproxy_process_limit_connection_rateMax Connection Rate
connections/svalueSource metric selectors (1)
haproxy_process_max_connection_rateMax Connections
connectionsvalueSource metric selectors (1)
haproxy_process_max_connectionsMax FDs
file descriptorsvalueSource metric selectors (1)
haproxy_process_max_fdsMax Pipes
pipesvalueSource metric selectors (1)
haproxy_process_max_pipesMax Sockets
socketsvalueSource metric selectors (1)
haproxy_process_max_socketsPipes
pipesused, freeSource metric selectors (2)
haproxy_process_pipes_used_totalhaproxy_process_pipes_free_totalErrors (3 charts)
Dropped Logs
logs/svalueSource metric selectors (1)
haproxy_process_dropped_logs_totalFailed Resolutions
errors/svalueSource metric selectors (1)
haproxy_process_failed_resolutionsWarnings
warnings/svalueSource metric selectors (1)
haproxy_process_total_warningsHealth (1 chart)
Active Peers
peersvalueSource metric selectors (1)
haproxy_process_active_peersMemory (4 charts)
Max Memory Bytes
bytesvalueSource metric selectors (1)
haproxy_process_max_memory_bytesPool Allocated Bytes
bytesvalueSource metric selectors (1)
haproxy_process_pool_allocated_bytesPool Failures
failures/svalueSource metric selectors (1)
haproxy_process_pool_failures_totalPool Used Bytes
bytesvalueSource metric selectors (1)
haproxy_process_pool_used_bytesQueue (1 chart)
Current Run Queue
tasksvalueSource metric selectors (1)
haproxy_process_current_run_queueSSL (13 charts)
Current Backend SSL Key Rate
keys/svalueSource metric selectors (1)
haproxy_process_current_backend_ssl_key_rateCurrent Frontend SSL Key Rate
keys/svalueSource metric selectors (1)
haproxy_process_current_frontend_ssl_key_rateCurrent SSL Connections
connectionsvalueSource metric selectors (1)
haproxy_process_current_ssl_connectionsCurrent SSL Rate
connections/svalueSource metric selectors (1)
haproxy_process_current_ssl_rateFrontend SSL Reuse
percentagevalueSource metric selectors (1)
haproxy_process_frontend_ssl_reuseLimit SSL Rate
connections/svalueSource metric selectors (1)
haproxy_process_limit_ssl_rateMax Backend SSL Key Rate
keys/svalueSource metric selectors (1)
haproxy_process_max_backend_ssl_key_rateMax Frontend SSL Key Rate
keys/svalueSource metric selectors (1)
haproxy_process_max_frontend_ssl_key_rateMax SSL Connections
connectionsvalueSource metric selectors (1)
haproxy_process_max_ssl_connectionsMax SSL Rate
connections/svalueSource metric selectors (1)
haproxy_process_max_ssl_rateSSL Cache Lookups
lookups/svalueSource metric selectors (1)
haproxy_process_ssl_cache_lookups_totalSSL Cache Misses
events/svalueSource metric selectors (1)
haproxy_process_ssl_cache_misses_totalSSL Connections
connections/svalueSource metric selectors (1)
haproxy_process_ssl_connections_totalScheduler (5 charts)
Connected Peers
peersvalueSource metric selectors (1)
haproxy_process_connected_peersCurrent Tasks
tasksvalueSource metric selectors (1)
haproxy_process_current_tasksJobs
jobsvalueSource metric selectors (1)
haproxy_process_jobsListeners
listenersvalueSource metric selectors (1)
haproxy_process_listenersUnstoppable Jobs
jobsvalueSource metric selectors (1)
haproxy_process_unstoppable_jobsSessions (3 charts)
Current Session Rate
sessions/svalueSource metric selectors (1)
haproxy_process_current_session_rateLimit Session Rate
sessions/svalueSource metric selectors (1)
haproxy_process_limit_session_rateMax Session Rate
sessions/svalueSource metric selectors (1)
haproxy_process_max_session_rateStatus (2 charts)
Busy Polling Enabled
{status}valueSource metric selectors (1)
haproxy_process_busy_polling_enabledStopping
{status}valueSource metric selectors (1)
haproxy_process_stoppingTiming (2 charts)
Idle Time Percent
percentagevalueSource metric selectors (1)
haproxy_process_idle_time_percentUptime Seconds
secondsvalueSource metric selectors (1)
haproxy_process_uptime_secondsTraffic (5 charts)
Bytes Out
bytes/svalueSource metric selectors (1)
haproxy_process_bytes_out_totalBytes Out Rate
bytes/svalueSource metric selectors (1)
haproxy_process_bytes_out_rateHTTP Compression Bytes In
bytes/svalueSource metric selectors (1)
haproxy_process_http_comp_bytes_in_totalHTTP Compression Bytes Out
bytes/svalueSource metric selectors (1)
haproxy_process_http_comp_bytes_out_totalSpliced Bytes Out
bytes/svalueSource metric selectors (1)
haproxy_process_spliced_bytes_out_totalFrontends (26 charts)
Compression (1 chart)
HTTP Compression Responses
responses/svalueSource metric selectors (1)
haproxy_frontend_http_comp_responses_totalConnections (3 charts)
Connections
connections/svalueSource metric selectors (1)
haproxy_frontend_connections_totalConnections Rate Max
connections/svalueSource metric selectors (1)
haproxy_frontend_connections_rate_maxDenied Connections
connections/svalueSource metric selectors (1)
haproxy_frontend_denied_connections_totalErrors (3 charts)
Errors
errors/srequest, header_rewriting, internalSource metric selectors (3)
haproxy_frontend_request_errors_totalhaproxy_frontend_failed_header_rewriting_totalhaproxy_frontend_internal_errors_totalRequests Denied
requests/svalueSource metric selectors (1)
haproxy_frontend_requests_denied_totalResponses Denied
responses/svalueSource metric selectors (1)
haproxy_frontend_responses_denied_totalHTTP (6 charts)
HTTP Cache Hits
hits/svalueSource metric selectors (1)
haproxy_frontend_http_cache_hits_totalHTTP Cache Lookups
lookups/svalueSource metric selectors (1)
haproxy_frontend_http_cache_lookups_totalHTTP Requests
requests/svalueSource metric selectors (1)
haproxy_frontend_http_requests_totalHTTP Requests Rate Max
requests/svalueSource metric selectors (1)
haproxy_frontend_http_requests_rate_maxHTTP Responses
responses/svalues of label codeSource metric selectors (1)
haproxy_frontend_http_responses_totalIntercepted Requests
requests/svalueSource metric selectors (1)
haproxy_frontend_intercepted_requests_totalSessions (8 charts)
Current Session Rate
sessions/svalueSource metric selectors (1)
haproxy_frontend_current_session_rateCurrent Sessions
sessionsvalueSource metric selectors (1)
haproxy_frontend_current_sessionsDenied Sessions
sessions/svalueSource metric selectors (1)
haproxy_frontend_denied_sessions_totalLimit Session Rate
sessions/svalueSource metric selectors (1)
haproxy_frontend_limit_session_rateLimit Sessions
sessionsvalueSource metric selectors (1)
haproxy_frontend_limit_sessionsMax Session Rate
sessions/svalueSource metric selectors (1)
haproxy_frontend_max_session_rateMax Sessions
sessionsvalueSource metric selectors (1)
haproxy_frontend_max_sessionsSessions
sessions/svalueSource metric selectors (1)
haproxy_frontend_sessions_totalStatus (1 chart)
Status
{status}values of label stateSource metric selectors (1)
haproxy_frontend_statusTraffic (4 charts)
HTTP Compression Bytes Bypassed
bytes/svalueSource metric selectors (1)
haproxy_frontend_http_comp_bytes_bypassed_totalHTTP Compression Bytes In
bytes/svalueSource metric selectors (1)
haproxy_frontend_http_comp_bytes_in_totalHTTP Compression Bytes Out
bytes/svalueSource metric selectors (1)
haproxy_frontend_http_comp_bytes_out_totalTraffic
bytes/sin, outSource metric selectors (2)
haproxy_frontend_bytes_in_totalhaproxy_frontend_bytes_out_totalListeners (12 charts)
Connections (2 charts)
Connections
connections/svalueSource metric selectors (1)
haproxy_listener_connections_totalDenied Connections
connections/svalueSource metric selectors (1)
haproxy_listener_denied_connections_totalErrors (3 charts)
Errors
errors/srequest, header_rewriting, internalSource metric selectors (3)
haproxy_listener_request_errors_totalhaproxy_listener_failed_header_rewriting_totalhaproxy_listener_internal_errors_totalRequests Denied
requests/svalueSource metric selectors (1)
haproxy_listener_requests_denied_totalResponses Denied
responses/svalueSource metric selectors (1)
haproxy_listener_responses_denied_totalSessions (5 charts)
Current Sessions
sessionsvalueSource metric selectors (1)
haproxy_listener_current_sessionsDenied Sessions
sessions/svalueSource metric selectors (1)
haproxy_listener_denied_sessions_totalLimit Sessions
sessionsvalueSource metric selectors (1)
haproxy_listener_limit_sessionsMax Sessions
sessionsvalueSource metric selectors (1)
haproxy_listener_max_sessionsSessions
sessions/svalueSource metric selectors (1)
haproxy_listener_sessions_totalStatus (1 chart)
Status
{status}values of label stateSource metric selectors (1)
haproxy_listener_statusTraffic (1 chart)
Traffic
bytes/sin, outSource metric selectors (2)
haproxy_listener_bytes_in_totalhaproxy_listener_bytes_out_totalBackends (43 charts)
Compression (1 chart)
HTTP Compression Responses
responses/svalueSource metric selectors (1)
haproxy_backend_http_comp_responses_totalConnections (2 charts)
Connection Attempts
connections/svalueSource metric selectors (1)
haproxy_backend_connection_attempts_totalConnection Reuses
connections/svalueSource metric selectors (1)
haproxy_backend_connection_reuses_totalErrors (5 charts)
Aborts
aborts/sclient, serverSource metric selectors (2)
haproxy_backend_client_aborts_totalhaproxy_backend_server_aborts_totalErrors
errors/sresponse, connection, header_rewriting, internalSource metric selectors (4)
haproxy_backend_response_errors_totalhaproxy_backend_connection_errors_totalhaproxy_backend_failed_header_rewriting_totalhaproxy_backend_internal_errors_totalRequests Denied
requests/svalueSource metric selectors (1)
haproxy_backend_requests_denied_totalResponses Denied
responses/svalueSource metric selectors (1)
haproxy_backend_responses_denied_totalWarnings
warnings/sretry, redispatchSource metric selectors (2)
haproxy_backend_retry_warnings_totalhaproxy_backend_redispatch_warnings_totalHTTP (4 charts)
HTTP Cache Hits
hits/svalueSource metric selectors (1)
haproxy_backend_http_cache_hits_totalHTTP Cache Lookups
lookups/svalueSource metric selectors (1)
haproxy_backend_http_cache_lookups_totalHTTP Requests
requests/svalueSource metric selectors (1)
haproxy_backend_http_requests_totalHTTP Responses
responses/svalues of label codeSource metric selectors (1)
haproxy_backend_http_responses_totalHealth (7 charts)
Available Servers
serversactive, backupSource metric selectors (2)
haproxy_backend_active_servershaproxy_backend_backup_serversCheck Last Change Seconds
secondsvalueSource metric selectors (1)
haproxy_backend_check_last_change_secondsDowntime Seconds
seconds/svalueSource metric selectors (1)
haproxy_backend_downtime_seconds_totalFailed Check State Transitions
transitions/svalueSource metric selectors (1)
haproxy_backend_check_up_down_totalLoad-Balanced Requests
requests/svalueSource metric selectors (1)
haproxy_backend_loadbalanced_totalUser Weight
weightvalueSource metric selectors (1)
haproxy_backend_uweightWeight
weightvalueSource metric selectors (1)
haproxy_backend_weightQueue (4 charts)
Current Queue
requestsvalueSource metric selectors (1)
haproxy_backend_current_queueMax Queue
requestsvalueSource metric selectors (1)
haproxy_backend_max_queueMax Queue Time Seconds
secondsvalueSource metric selectors (1)
haproxy_backend_max_queue_time_secondsQueue Time Average Seconds
secondsvalueSource metric selectors (1)
haproxy_backend_queue_time_average_secondsSessions (7 charts)
Current Session Rate
sessions/svalueSource metric selectors (1)
haproxy_backend_current_session_rateCurrent Sessions
sessionsvalueSource metric selectors (1)
haproxy_backend_current_sessionsLast Session Seconds
secondsvalueSource metric selectors (1)
haproxy_backend_last_session_secondsLimit Sessions
sessionsvalueSource metric selectors (1)
haproxy_backend_limit_sessionsMax Session Rate
sessions/svalueSource metric selectors (1)
haproxy_backend_max_session_rateMax Sessions
sessionsvalueSource metric selectors (1)
haproxy_backend_max_sessionsSessions
sessions/svalueSource metric selectors (1)
haproxy_backend_sessions_totalStatus (3 charts)
Aggregated Check Status
serversvalues of label stateSource metric selectors (1)
haproxy_backend_agg_check_statusAggregated Server Status
serversvalues of label stateSource metric selectors (1)
haproxy_backend_agg_server_statusStatus
{status}values of label stateSource metric selectors (1)
haproxy_backend_statusTiming (6 charts)
Average Total Time
secondsvalueSource metric selectors (1)
haproxy_backend_total_time_average_secondsConnect Time Average Seconds
secondsvalueSource metric selectors (1)
haproxy_backend_connect_time_average_secondsMax Connect Time Seconds
secondsvalueSource metric selectors (1)
haproxy_backend_max_connect_time_secondsMax Response Time Seconds
secondsvalueSource metric selectors (1)
haproxy_backend_max_response_time_secondsMaximum Total Time
secondsvalueSource metric selectors (1)
haproxy_backend_max_total_time_secondsResponse Time Average Seconds
secondsvalueSource metric selectors (1)
haproxy_backend_response_time_average_secondsTraffic (4 charts)
HTTP Compression Bytes Bypassed
bytes/svalueSource metric selectors (1)
haproxy_backend_http_comp_bytes_bypassed_totalHTTP Compression Bytes In
bytes/svalueSource metric selectors (1)
haproxy_backend_http_comp_bytes_in_totalHTTP Compression Bytes Out
bytes/svalueSource metric selectors (1)
haproxy_backend_http_comp_bytes_out_totalTraffic
bytes/sin, outSource metric selectors (2)
haproxy_backend_bytes_in_totalhaproxy_backend_bytes_out_totalServers (48 charts)
Connections (7 charts)
Connection Attempts
connections/svalueSource metric selectors (1)
haproxy_server_connection_attempts_totalConnection Reuses
connections/svalueSource metric selectors (1)
haproxy_server_connection_reuses_totalCurrent Idle Connections
connectionsvalueSource metric selectors (1)
haproxy_server_idle_connections_currentCurrent Used Connections
connectionsvalueSource metric selectors (1)
haproxy_server_used_connections_currentIdle Connection Limit
connectionsvalueSource metric selectors (1)
haproxy_server_idle_connections_limitIdle Connection Safety
connectionssafe, unsafeSource metric selectors (2)
haproxy_server_safe_idle_connections_currenthaproxy_server_unsafe_idle_connections_currentNeeded Connections
connectionsvalueSource metric selectors (1)
haproxy_server_need_connections_currentErrors (5 charts)
Aborts
aborts/sclient, serverSource metric selectors (2)
haproxy_server_client_aborts_totalhaproxy_server_server_aborts_totalCheck Failures
failures/svalueSource metric selectors (1)
haproxy_server_check_failures_totalErrors
errors/sresponse, connection, header_rewriting, internalSource metric selectors (4)
haproxy_server_response_errors_totalhaproxy_server_connection_errors_totalhaproxy_server_failed_header_rewriting_totalhaproxy_server_internal_errors_totalResponses Denied
responses/svalueSource metric selectors (1)
haproxy_server_responses_denied_totalWarnings
warnings/sretry, redispatchSource metric selectors (2)
haproxy_server_retry_warnings_totalhaproxy_server_redispatch_warnings_totalHTTP (2 charts)
HTTP Requests
requests/svalueSource metric selectors (1)
haproxy_server_http_requests_totalHTTP Responses
responses/svalues of label codeSource metric selectors (1)
haproxy_server_http_responses_totalHealth (12 charts)
Agent Code
codevalueSource metric selectors (1)
haproxy_server_agent_codeAgent Duration Seconds
secondsvalueSource metric selectors (1)
haproxy_server_agent_duration_secondsCheck Code
codevalueSource metric selectors (1)
haproxy_server_check_codeCheck Duration Seconds
secondsvalueSource metric selectors (1)
haproxy_server_check_duration_secondsCheck Last Change Seconds
secondsvalueSource metric selectors (1)
haproxy_server_check_last_change_secondsCurrent Throttle
percentagevalueSource metric selectors (1)
haproxy_server_current_throttleDowntime Seconds
seconds/svalueSource metric selectors (1)
haproxy_server_downtime_seconds_totalFailed Check State Transitions
transitions/svalueSource metric selectors (1)
haproxy_server_check_up_down_totalLoad-Balanced Requests
requests/svalueSource metric selectors (1)
haproxy_server_loadbalanced_totalServer Role
serversactive, backupSource metric selectors (2)
haproxy_server_activehaproxy_server_backupUser Weight
weightvalueSource metric selectors (1)
haproxy_server_uweightWeight
weightvalueSource metric selectors (1)
haproxy_server_weightQueue (5 charts)
Current Queue
requestsvalueSource metric selectors (1)
haproxy_server_current_queueMax Queue
requestsvalueSource metric selectors (1)
haproxy_server_max_queueMax Queue Time Seconds
secondsvalueSource metric selectors (1)
haproxy_server_max_queue_time_secondsQueue Limit
requestsvalueSource metric selectors (1)
haproxy_server_queue_limitQueue Time Average Seconds
secondsvalueSource metric selectors (1)
haproxy_server_queue_time_average_secondsSessions (7 charts)
Current Session Rate
sessions/svalueSource metric selectors (1)
haproxy_server_current_session_rateCurrent Sessions
sessionsvalueSource metric selectors (1)
haproxy_server_current_sessionsLast Session Seconds
secondsvalueSource metric selectors (1)
haproxy_server_last_session_secondsLimit Sessions
sessionsvalueSource metric selectors (1)
haproxy_server_limit_sessionsMax Session Rate
sessions/svalueSource metric selectors (1)
haproxy_server_max_session_rateMax Sessions
sessionsvalueSource metric selectors (1)
haproxy_server_max_sessionsSessions
sessions/svalueSource metric selectors (1)
haproxy_server_sessions_totalStatus (3 charts)
Agent Status
{status}values of label stateSource metric selectors (1)
haproxy_server_agent_statusCheck Status
{status}values of label stateSource metric selectors (1)
haproxy_server_check_statusStatus
{status}values of label stateSource metric selectors (1)
haproxy_server_statusTiming (6 charts)
Average Total Time
secondsvalueSource metric selectors (1)
haproxy_server_total_time_average_secondsConnect Time Average Seconds
secondsvalueSource metric selectors (1)
haproxy_server_connect_time_average_secondsMax Connect Time Seconds
secondsvalueSource metric selectors (1)
haproxy_server_max_connect_time_secondsMax Response Time Seconds
secondsvalueSource metric selectors (1)
haproxy_server_max_response_time_secondsMaximum Total Time
secondsvalueSource metric selectors (1)
haproxy_server_max_total_time_secondsResponse Time Average Seconds
secondsvalueSource metric selectors (1)
haproxy_server_response_time_average_secondsTraffic (1 chart)
Traffic
bytes/sin, outSource metric selectors (2)
haproxy_server_bytes_in_totalhaproxy_server_bytes_out_totalResolvers (15 charts)
DNS (15 charts)
Any Errors
queries/svalueSource metric selectors (1)
haproxy_resolver_any_errCNAME
queries/svalueSource metric selectors (1)
haproxy_resolver_cnameCNAME Error
errors/svalueSource metric selectors (1)
haproxy_resolver_cname_errorInvalid
queries/svalueSource metric selectors (1)
haproxy_resolver_invalidNX
queries/svalueSource metric selectors (1)
haproxy_resolver_nxOther
queries/svalueSource metric selectors (1)
haproxy_resolver_otherOutdated
queries/svalueSource metric selectors (1)
haproxy_resolver_outdatedRefused
queries/svalueSource metric selectors (1)
haproxy_resolver_refusedSend Error
errors/svalueSource metric selectors (1)
haproxy_resolver_send_errorSent
queries/svalueSource metric selectors (1)
haproxy_resolver_sentTimeout
queries/svalueSource metric selectors (1)
haproxy_resolver_timeoutToo Big
queries/svalueSource metric selectors (1)
haproxy_resolver_too_bigTruncated
queries/svalueSource metric selectors (1)
haproxy_resolver_truncatedUpdate
queries/svalueSource metric selectors (1)
haproxy_resolver_updateValid
queries/svalueSource metric selectors (1)
haproxy_resolver_validStick Tables (2 charts)
Entries (2 charts)
Size
entriesvalueSource metric selectors (1)
haproxy_sticktable_sizeUsed
entriesvalueSource metric selectors (1)
haproxy_sticktable_used
Troubleshooting
Debug Mode
Important: Debug mode is not supported for data collection jobs created via the UI using the Dyncfg feature.
To troubleshoot issues with the prometheus collector, run the go.d.plugin with the debug option enabled. The output
should give you clues as to why the collector isn't working.
-
Navigate to the
plugins.ddirectory, usually at/usr/libexec/netdata/plugins.d/. If that's not the case on your system, opennetdata.confand look for thepluginssetting under[directories].cd /usr/libexec/netdata/plugins.d/ -
Switch to the
netdatauser.sudo -u netdata -s -
Run the
go.d.pluginto debug the collector:./go.d.plugin -d -m prometheusTo debug a specific job:
./go.d.plugin -d -m prometheus -j jobName
Getting Logs
If you're encountering problems with the prometheus collector, follow these steps to retrieve logs and identify potential issues:
- Run the command specific to your system (systemd, non-systemd, or Docker container).
- Examine the output for any warnings or error messages that might indicate issues. These messages should provide clues about the root cause of the problem.
System with systemd
Use the following command to view logs generated since the last Netdata service restart:
journalctl _SYSTEMD_INVOCATION_ID="$(systemctl show --value --property=InvocationID netdata)" --namespace=netdata --grep prometheus
System without systemd
Locate the collector log file, typically at /var/log/netdata/collector.log, and use grep to filter for collector's name:
grep prometheus /var/log/netdata/collector.log
Note: This method shows logs from all restarts. Focus on the latest entries for troubleshooting current issues.
Docker Container
If your Netdata runs in a Docker container named "netdata" (replace if different), use this command:
docker logs netdata 2>&1 | grep prometheus
Disappearing or sparse metrics not clearing alerts
The Prometheus collector detects metrics that disappear from a successful scrape response. Generated charts
and individual dimensions expire after their configured successful-cycle lifetime. An expired chart or
dimension makes its alerts REMOVED; this is not a normal CLEAR transition and does not send a recovery
notification. Export an explicit normal value (for example 0) whenever an alert needs a reliable recovery
transition. A failed scrape does not advance the expiry lifetime; use the generic collector collection-failure
alert to detect that separate condition.
Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.