Skip to content

Commit

Permalink
[HA Proxy] Add metric_type mapping to info datastream (#7164)
Browse files Browse the repository at this point in the history
* Add metric_type mapping to info datastream
  • Loading branch information
agithomas authored Jul 28, 2023
1 parent 163fd96 commit 072489b
Show file tree
Hide file tree
Showing 4 changed files with 162 additions and 100 deletions.
5 changes: 5 additions & 0 deletions packages/haproxy/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.8.0"
changes:
- description: Add `metric_type` mapping for `info` datastream.
type: enhancement
link: https://github.com/elastic/integrations/pull/7164
- version: "1.7.2"
changes:
- description: Add missing event.duration field mapping.
Expand Down
57 changes: 57 additions & 0 deletions packages/haproxy/data_stream/info/fields/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,69 @@
fields:
- name: processes
type: long
metric_type: gauge
description: |
Number of processes.
- name: process_num
type: long
metric_type: gauge
description: |
Process number.
- name: threads
type: long
metric_type: gauge
description: |
Number of threads.
- name: run_queue
type: long
metric_type: gauge
- name: stopping
type: long
metric_type: gauge
description: |
Number of stopping jobs.
- name: jobs
type: long
metric_type: gauge
description: |
Number of all jobs.
- name: unstoppable_jobs
type: long
metric_type: gauge
description: |
Number of unstoppable jobs.
- name: listeners
type: long
metric_type: gauge
description: |
Number of listeners.
- name: dropped_logs
type: long
metric_type: gauge
description: |
Number of dropped logs.
- name: busy_polling
type: long
metric_type: gauge
description: |
Number of busy polling.
- name: failed_resolutions
type: long
metric_type: gauge
description: |
Number of failed resolutions.
- name: tasks
type: long
metric_type: gauge
- name: uptime.sec
type: long
metric_type: gauge
description: |
Current uptime in seconds.
- name: memory.max.bytes
type: long
format: bytes
metric_type: gauge
description: |
Maximum amount of memory usage in bytes (the 'Memmax_MB' value converted to bytes).
- name: bytes
Expand All @@ -62,40 +76,48 @@
fields:
- name: total
type: long
metric_type: gauge
description: |
Number of bytes sent out.
- name: rate
type: long
metric_type: gauge
description: |
Average bytes output rate.
- name: peers
type: group
fields:
- name: active
type: long
metric_type: gauge
description: |
Number of active peers.
- name: connected
type: long
metric_type: gauge
description: |
Number of connected peers.
- name: pool
type: group
fields:
- name: allocated
type: long
metric_type: gauge
description: |
Size of the allocated pool.
- name: used
type: long
metric_type: gauge
description: |
Number of members used from the allocated pool.
- name: failed
type: long
metric_type: counter
description: |
Number of failed connections to pool members.
- name: ulimit_n
type: long
metric_type: gauge
description: |
Maximum number of open files for the process.
- name: compress
Expand All @@ -106,14 +128,17 @@
fields:
- name: in
type: long
metric_type: gauge
description: |
Incoming compressed data in bits per second.
- name: out
type: long
metric_type: gauge
description: |
Outgoing compressed data in bits per second.
- name: rate_limit
type: long
metric_type: gauge
description: |
Rate limit of compressed data in bits per second.
- name: connection
Expand All @@ -124,147 +149,179 @@
fields:
- name: value
type: long
metric_type: gauge
description: |
Number of connections in the last second.
- name: limit
type: long
metric_type: gauge
description: |
Rate limit of connections.
- name: max
type: long
metric_type: gauge
description: |
Maximum rate of connections.
- name: current
type: long
metric_type: gauge
description: |
Current connections.
- name: total
type: long
metric_type: counter
description: |
Total connections.
- name: ssl.current
type: long
metric_type: gauge
description: |
Current SSL connections.
- name: ssl.total
type: long
metric_type: counter
description: |
Total SSL connections.
- name: ssl.max
type: long
metric_type: gauge
description: |
Maximum SSL connections.
- name: max
type: long
metric_type: gauge
description: |
Maximum connections.
- name: hard_max
type: long
metric_type: gauge
- name: requests.total
type: long
metric_type: counter
description: |
Total number of requests.
- name: sockets.max
type: long
metric_type: gauge
description: |
Maximum number of sockets.
- name: requests.max
type: long
metric_type: gauge
description: |
Maximum number of requests.
- name: pipes
type: group
fields:
- name: used
type: integer
metric_type: gauge
description: |
Number of used pipes during kernel-based tcp splicing.
- name: free
type: integer
metric_type: gauge
description: |
Number of free pipes.
- name: max
type: integer
metric_type: gauge
description: |
Maximum number of used pipes.
- name: session
type: group
fields:
- name: rate.value
type: integer
metric_type: gauge
description: |
Rate of session per seconds.
- name: rate.limit
type: integer
metric_type: gauge
description: |
Rate limit of sessions.
- name: rate.max
type: integer
metric_type: gauge
description: |
Maximum rate of sessions.
- name: ssl
type: group
fields:
- name: rate.value
type: integer
metric_type: gauge
description: |
Rate of SSL requests.
- name: rate.limit
type: integer
metric_type: gauge
description: |
Rate limit of SSL requests.
- name: rate.max
type: integer
metric_type: gauge
description: |
Maximum rate of SSL requests.
- name: frontend
type: group
fields:
- name: key_rate.value
type: integer
metric_type: gauge
description: |
Key rate of SSL frontend.
- name: key_rate.max
type: integer
metric_type: gauge
description: |
Maximum key rate of SSL frontend.
- name: session_reuse.pct
type: scaled_float
format: percent
metric_type: gauge
description: |
Rate of reuse of SSL frontend sessions.
- name: backend
type: group
fields:
- name: key_rate.value
type: integer
metric_type: gauge
description: |
Key rate of SSL backend sessions.
- name: key_rate.max
type: integer
metric_type: gauge
description: |
Maximum key rate of SSL backend sessions.
- name: cached_lookups
type: long
metric_type: counter
description: |
Number of SSL cache lookups.
- name: cache_misses
type: long
metric_type: counter
description: |
Number of SSL cache misses.
- name: zlib_mem_usage
type: group
fields:
- name: value
type: integer
metric_type: gauge
description: |
Memory usage of zlib.
- name: max
type: integer
metric_type: gauge
description: |
Maximum memory usage of zlib.
- name: idle.pct
type: scaled_float
format: percent
metric_type: gauge
description: |
Percentage of idle time.
Loading

0 comments on commit 072489b

Please sign in to comment.