Skip to content

Commit

Permalink
Add supported versions file in Metricbeat module for Consul (elastic#…
Browse files Browse the repository at this point in the history
…24123)

With the supported versions file, images will be cached, reducing
flakiness in CI.

Added tests with Consul 1.9.3.

(cherry picked from commit 7eab148)
  • Loading branch information
jsoriano committed Mar 4, 2021
1 parent 4190249 commit 034d88c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Use ingress/egress instead of inbound/outbound for system/socket metricset. {pull}22992[22992]
- Change types of numeric metrics from Kubelet summary api to double so as to cover big numbers. {pull}23335[23335]
- Add container.image.name and containe.name ECS fields for state_container. {pull}23802[23802]
- Add support for the MemoryPressure, DiskPressure, OutOfDisk and PIDPressure status conditions in state_node. {pull}[23905]
- Add support for Consul 1.9. {pull}24123[24123]
- Add support for the MemoryPressure, DiskPressure, OutOfDisk and PIDPressure status conditions in state_node. {pull}23905[23905]
- Store `cloudfoundry.container.cpu.pct` in decimal form and as `scaled_float`. {pull}24219[24219]

*Packetbeat*
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/docs/modules/consul.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This is the https://www.consul.io[Hashicorp's Consul] Metricbeat module. It is s
[float]
=== Compatibility

The module is being tested with https://github.com/hashicorp/docker-consul/blob/9bd2aa7ecf2414b8712e055f2374699148e8941c/0.X/Dockerfile[1.4.2] version
The module is being tested with 1.4.2 and 1.9.3 versions of Consul.

[float]
=== Dashboard
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/consul/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ This is the https://www.consul.io[Hashicorp's Consul] Metricbeat module. It is s
[float]
=== Compatibility

The module is being tested with https://github.com/hashicorp/docker-consul/blob/9bd2aa7ecf2414b8712e055f2374699148e8941c/0.X/Dockerfile[1.4.2] version
The module is being tested with 1.4.2 and 1.9.3 versions of Consul.

[float]
=== Dashboard
Expand Down
3 changes: 3 additions & 0 deletions metricbeat/module/consul/_meta/supported-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
variants:
- CONSUL_VERSION: 1.4.2
- CONSUL_VERSION: 1.9.3
4 changes: 2 additions & 2 deletions metricbeat/module/consul/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ version: '2.3'

services:
consul:
image: docker.elastic.co/integrations-ci/beats-consul:${CONSUL_VERSION:-1.4.2}-1
image: docker.elastic.co/integrations-ci/beats-consul:${CONSUL_VERSION:-1.9.3}-1
build:
context: ./_meta
args:
CONSUL_VERSION: ${CONSUL_VERSION:-1.4.2}
CONSUL_VERSION: ${CONSUL_VERSION:-1.9.3}
ports:
- 8500
1 change: 1 addition & 0 deletions metricbeat/module/consul/test_consul.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
]


@metricbeat.parameterized_with_supported_versions
class ConsulAgentTest(metricbeat.BaseTest):

COMPOSE_SERVICES = ['consul']
Expand Down

0 comments on commit 034d88c

Please sign in to comment.