[8.x](backport #41233) [Metricbeat][Aerospike] Add support for basic auth #41609
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed commit message
[Metricbeat][Aerospike] Add support for Basic Auth and update aerospike-client-go dependency
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Disruptive User Impact
No user impact the old configuration still works
Author's Checklist
Context
As of October 14, 2024, only Aerospike DB version 6.1 and above is supported by the vendor. More details can be found here: Aerospike Platform Support.
The supported versions of the Aerospike client libraries are listed here: Aerospike Client Library Matrix.
Currently, Beats integrates version 1.27.1 of the aerospike-client-go library, which was released in 2017 and is no longer supported by the vendor.
In this pull request (PR), we upgrade the dependency to version 7 and add support for Basic Authentication for Enterprise Edition (EE) of Aerospike,
Please note that Aerospike version 7 introduced several changes to the metrics (some metrics that the metricset is using have been renamed, and others removed). Details can be found here: Aerospike 7.0 Metrics Changes. To keep the scope of this PR focused, I have opted to implement this change first and will submit a separate PR to address the metrics changes (I have already implemented the code for the change).
Final note, we distinguish between CE (community edition) and EE (enterprise edition) also in the docker images.
How to test this PR locally
username: admin
andpassword: admin
:aerospike-basic-auth.conf
:Aerospike 7 config-file
Aerospike 6 config-file
Export the following variable
export AEROSPIKE_VERSION=ee-6.4.0.7_2
to test with version 6 of AerospikeUse the following docker-compose.yaml
./metricbeat test modules aerospike
Please note that since some metrics have been renamed with Aerospike 7, the answer with this version will contain some empty metrics.
Related issues
Use cases
Monitor an Aerospike Cluster protected by Basic Auth
Screenshots
N/A
Logs
Not relevant
This is an automatic backport of pull request #41233 done by Mergify.