Skip to content

Conversation

@schmikei
Copy link
Contributor

@schmikei schmikei commented Aug 28, 2025

This modernizes the aerospike mixin to use signals and commonlib to hopefully provide a more maintainable mixin for the future.

Throughout this we have also added support for some breaking changes around Aerospike 7.0+ versions which removed a couple of prometheus metrics that this mixin relied upon:

https://aerospike.com/docs/database/reference/metrics#namespace__device_available_pct
https://aerospike.com/docs/database/reference/metrics#namespace__memory_free_pct

To get around this we used signals to combine the queries.

Aerospike overview
image

Aerospike instance overview
image
image

Aerospike namespace overview
image

Aerospike logs
image

@schmikei schmikei marked this pull request as ready for review August 29, 2025 13:59
@schmikei schmikei requested a review from a team as a code owner August 29, 2025 13:59
Copy link
Member

@Dasomeone Dasomeone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple minor comments on this one, really appreciate you including the rendered dashboards in the dashboards_out here, made it a lot easier to diff the changes as a sanity check.

Validated locally as well, all looks good to me.

unit: 'none',
sources: {
prometheus: {
expr: 'sum by(job, aerospike_cluster, instance) (aerospike_namespace_ns_cluster_size{%(queriesSelector)s})',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as on other PRs on whether we want to have a selector for sum (and others?)
I'm generally in favour, but if you have strong concerns I'm good to leave it as-is

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I think I caught on within my recent commit in #1454, seems like a great idea for extensibility :) I'll go ahead and make similar changes here shortly for this PR 👍

… instanceLabels, improve legend re-usage where appropriate
Copy link
Member

@Dasomeone Dasomeone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks Keith!

@Dasomeone Dasomeone merged commit d912f7c into grafana:master Sep 5, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants