From d9dc3fa636cf1ff0257fad55286d64b48ff6bdac Mon Sep 17 00:00:00 2001 From: Jaime Soriano Pastor Date: Thu, 13 Feb 2020 19:58:52 +0100 Subject: [PATCH 1/3] Add supported versions to nats tests --- .../_meta/{Dockerfile.2.0.X => Dockerfile} | 7 +++---- metricbeat/module/nats/_meta/Dockerfile.1.3 | 14 -------------- metricbeat/module/nats/_meta/run.sh | 18 ++++++++++++++++++ .../module/nats/_meta/supported-versions.yml | 3 +++ metricbeat/module/nats/docker-compose.yml | 13 +------------ metricbeat/module/nats/test_nats.py | 6 +----- 6 files changed, 26 insertions(+), 35 deletions(-) rename metricbeat/module/nats/_meta/{Dockerfile.2.0.X => Dockerfile} (71%) delete mode 100644 metricbeat/module/nats/_meta/Dockerfile.1.3 create mode 100755 metricbeat/module/nats/_meta/run.sh create mode 100644 metricbeat/module/nats/_meta/supported-versions.yml diff --git a/metricbeat/module/nats/_meta/Dockerfile.2.0.X b/metricbeat/module/nats/_meta/Dockerfile similarity index 71% rename from metricbeat/module/nats/_meta/Dockerfile.2.0.X rename to metricbeat/module/nats/_meta/Dockerfile index 84c57189319..f846c968973 100644 --- a/metricbeat/module/nats/_meta/Dockerfile.2.0.X +++ b/metricbeat/module/nats/_meta/Dockerfile @@ -4,11 +4,10 @@ FROM nats:$NATS_VERSION # create an enhanced container with nc command available since nats is based # on scratch image making healthcheck impossible FROM alpine:latest -COPY --from=0 /nats-server /nats-server -COPY --from=0 nats-server.conf nats-server.conf +COPY --from=0 / /opt/nats +COPY run.sh /run.sh # Expose client, management, and cluster ports EXPOSE 4222 8222 6222 HEALTHCHECK --interval=1s --retries=10 CMD nc -w 1 0.0.0.0 8222 Date: Thu, 13 Feb 2020 20:09:10 +0100 Subject: [PATCH 2/3] Add support for nats 2.1.4 --- metricbeat/docs/modules/nats.asciidoc | 2 +- metricbeat/module/nats/_meta/docs.asciidoc | 2 +- metricbeat/module/nats/_meta/supported-versions.yml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/metricbeat/docs/modules/nats.asciidoc b/metricbeat/docs/modules/nats.asciidoc index 75b3b8a3306..df5c6508fc7 100644 --- a/metricbeat/docs/modules/nats.asciidoc +++ b/metricbeat/docs/modules/nats.asciidoc @@ -12,7 +12,7 @@ The default metricsets are `stats`, `connections`, `routes` and `subscriptions`. [float] === Compatibility -The Nats module is tested with Nats 1.3.0 and 2.0.4 +The Nats module is tested with Nats 1.3.0, 2.0.4 and 2.1.4 [float] diff --git a/metricbeat/module/nats/_meta/docs.asciidoc b/metricbeat/module/nats/_meta/docs.asciidoc index 77b4d637143..900539ff40d 100644 --- a/metricbeat/module/nats/_meta/docs.asciidoc +++ b/metricbeat/module/nats/_meta/docs.asciidoc @@ -5,7 +5,7 @@ The default metricsets are `stats`, `connections`, `routes` and `subscriptions`. [float] === Compatibility -The Nats module is tested with Nats 1.3.0 and 2.0.4 +The Nats module is tested with Nats 1.3.0, 2.0.4 and 2.1.4 [float] diff --git a/metricbeat/module/nats/_meta/supported-versions.yml b/metricbeat/module/nats/_meta/supported-versions.yml index 878fe9ef02b..c7d09a241af 100644 --- a/metricbeat/module/nats/_meta/supported-versions.yml +++ b/metricbeat/module/nats/_meta/supported-versions.yml @@ -1,3 +1,4 @@ variants: + - NATS_VERSION: 2.1.4 - NATS_VERSION: 2.0.4 - NATS_VERSION: 1.3.0 From 55073e8aee2e1dcf9e427015b246370c50fa3e2a Mon Sep 17 00:00:00 2001 From: Jaime Soriano Pastor Date: Fri, 14 Feb 2020 11:56:19 +0100 Subject: [PATCH 3/3] Add changelog entry --- CHANGELOG.next.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 782f8090243..097d9906e57 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -154,6 +154,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Reuse connections in SQL module. {pull}16001[16001] - Improve the `logstash` module (when `xpack.enabled` is set to `true`) to use the override `cluster_uuid` returned by Logstash APIs. {issue}15772[15772] {pull}15795[15795] - Add kubernetes storage class support via kube-state-metrics. {pull}16145[16145] +- Add support for NATS 2.1. {pull}16317[16317] *Packetbeat*