Skip to content

Commit

Permalink
Fix haproxy index template (#2565)
Browse files Browse the repository at this point in the history
- Add test case for haproxy schema.
- Remove haproxy stats_addr option because hosts is the standard option
used across modules.

Closes #2561 #2563
  • Loading branch information
andrewkroh authored and ruflin committed Sep 16, 2016
1 parent 7534ea1 commit 6490604
Show file tree
Hide file tree
Showing 15 changed files with 214 additions and 203 deletions.
36 changes: 18 additions & 18 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -881,71 +881,71 @@ type: integer
[float]
== max Fields


Maximum values reported by HAProxy.


[float]
=== haproxy.info.max.hard_conn

type: integer


HardMaxconn

[float]
=== haproxy.info.max.sock
=== haproxy.info.max.ssl.conns

type: integer


MaxSslConns

[float]
=== haproxy.info.max.conn
=== haproxy.info.max.ssl.rate

type: integer


MaxSslRate

[float]
=== haproxy.info.max.ssl_conns
=== haproxy.info.max.sock

type: integer


Maxsock

[float]
=== haproxy.info.max.pipes
=== haproxy.info.max.conn.value

type: integer


Maxconn

[float]
=== haproxy.info.max.conn_rate
=== haproxy.info.max.conn.rate

type: integer


MaxConnRate

[float]
=== haproxy.info.max.sess_rate

type: integer


MaxSessRate

[float]
=== haproxy.info.max.ssl_rate
=== haproxy.info.max.pipes

type: integer


Maxpipes

[float]
=== haproxy.info.max.zlib_mem_usage

type: integer


MaxZlibMemUsage

[float]
== pipes Fields
Expand Down Expand Up @@ -1067,14 +1067,14 @@ type: integer


[float]
=== haproxy.info.ssl.ssl_cached_lookups
=== haproxy.info.ssl.cached_lookups

type: integer



[float]
=== haproxy.info.ssl.ssl_cache_misses
=== haproxy.info.ssl.cache_misses

type: integer

Expand Down
6 changes: 2 additions & 4 deletions metricbeat/docs/modules/haproxy.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ in <<configuration-metricbeat>>. Here is an example configuration:
----
metricbeat.modules:
- module: haproxy
metricsets:
- "stat"
- "info"
metricsets: [stat, info]
enabled: true
period: 10s
stats_addr: "tcp://127.0.0.1:14567"
hosts: ['tcp://127.0.0.1:14567']
----

[float]
Expand Down
7 changes: 2 additions & 5 deletions metricbeat/etc/beat.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,10 @@ metricbeat.modules:

#------------------------------- haproxy Module ------------------------------
#- module: haproxy
#metricsets:
#- "stat"
#- "info"

#metricsets: [stat, info]
#enabled: true
#period: 10s
#stats_addr: "tcp://127.0.0.1:14567
#hosts: ['tcp://127.0.0.1:14567']

#------------------------------- MongoDB Module ------------------------------
#- module: mongodb
Expand Down
65 changes: 32 additions & 33 deletions metricbeat/etc/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -461,33 +461,33 @@
- name: value
type: integer
description: >
- name: limit
type: integer
description: >
- name: curr
type: group
description: >
fields:
- name: conns
type: integer
description: >
- name: ssl_conns
type: integer
description: >
- name: cum
type: group
description: >
fields:
- name: conns
type: integer
description: >
- name: req
type: integer
description: >
Expand All @@ -499,63 +499,62 @@
- name: max
type: group
description: >
description: Maximum values reported by HAProxy.

fields:
- name: hard_conn
type: integer
description: >
description: HardMaxconn

- name: sock
- name: ssl.conns
type: integer
description: >
- name: conn
description: MaxSslConns

- name: ssl.rate
type: integer
description: >
description: MaxSslRate

- name: ssl_conns
- name: sock
type: integer
description: >
description: Maxsock

- name: pipes
- name: conn.value
type: integer
description: >
description: Maxconn

- name: conn_rate
- name: conn.rate
type: integer
description: >
description: MaxConnRate

- name: sess_rate
type: integer
description: >
description: MaxSessRate

- name: ssl_rate
- name: pipes
type: integer
description: >
description: Maxpipes

- name: zlib_mem_usage
type: integer
description: >
description: MaxZlibMemUsage

- name: pipes
type: group
description: >
fields:
- name: used
type: integer
description: >
- name: free
type: integer
description: >
- name: sess
type: group
description: >
fields:
- name: rate
type: group
Expand All @@ -573,12 +572,12 @@
- name: ssl
type: group
description: >
fields:
- name: rate
type: group
description: >
fields:
- name: value
type: integer
Expand All @@ -591,7 +590,7 @@
- name: frontend
type: group
description: >
fields:
- name: key_rate
type: integer
Expand All @@ -608,7 +607,7 @@
- name: backend
type: group
description: >
fields:
- name: key_rate
type: integer
Expand All @@ -618,11 +617,11 @@
type: integer
description: >
- name: ssl_cached_lookups
- name: cached_lookups
type: integer
description: >
- name: ssl_cache_misses
- name: cache_misses
type: integer
description: >
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/etc/kibana/index-pattern/metricbeat.json

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions metricbeat/metricbeat.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,10 @@ metricbeat.modules:

#------------------------------- haproxy Module ------------------------------
#- module: haproxy
#metricsets:
#- "stat"
#- "info"

#metricsets: [stat, info]
#enabled: true
#period: 10s
#stats_addr: "tcp://127.0.0.1:14567
#hosts: ['tcp://127.0.0.1:14567']

#------------------------------- MongoDB Module ------------------------------
#- module: mongodb
Expand Down
38 changes: 23 additions & 15 deletions metricbeat/metricbeat.template-es2x.json
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,14 @@
"max": {
"properties": {
"conn": {
"type": "long"
},
"conn_rate": {
"type": "long"
"properties": {
"rate": {
"type": "long"
},
"value": {
"type": "long"
}
}
},
"hard_conn": {
"type": "long"
Expand All @@ -382,11 +386,15 @@
"sock": {
"type": "long"
},
"ssl_conns": {
"type": "long"
},
"ssl_rate": {
"type": "long"
"ssl": {
"properties": {
"conns": {
"type": "long"
},
"rate": {
"type": "long"
}
}
},
"zlib_mem_usage": {
"type": "long"
Expand Down Expand Up @@ -444,6 +452,12 @@
}
}
},
"cache_misses": {
"type": "long"
},
"cached_lookups": {
"type": "long"
},
"frontend": {
"properties": {
"key_rate": {
Expand All @@ -466,12 +480,6 @@
"type": "long"
}
}
},
"ssl_cache_misses": {
"type": "long"
},
"ssl_cached_lookups": {
"type": "long"
}
}
},
Expand Down
Loading

0 comments on commit 6490604

Please sign in to comment.