Skip to content

Conversation

@fujiwara
Copy link
Contributor

Hi!

This PR enables to fetch metrics of a Redis/Valkey cluster node.
Fetches cluster metrics with "CLUSTER INFO" when cluster_enabled.

https://redis.io/docs/latest/commands/cluster-info/

Four graphs will be added if a redis/valkey node enables cluster mode.

  • Cluster
  • Cluster State
  • Cluster Slots
  • Cluster Stats

Fetches cluster metris with "CLUSTER INFO" when cluster_enabled.
Valid unit values are "float", "integer", "percentage", "seconds", "milliseconds", "bytes", "bytes/sec", "bits/sec", "iops".
https://mackerel.io/ja/docs/entry/advanced/custom-metrics#graph-schema

A "count" raises a error while posting graph defs.
> ERROR <agent> Failed to create graphdefs: API request failed: Invalid Parameter: obj[2].unit validate.error.unexpected.value.
graphdef["offset_delay"] = mp.Graphs{
Label: (labelPrefix + " Slave Offset Delay"),
Unit: "count",
Unit: "integer",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This breaks posting graph defs.

ERROR Failed to create graphdefs: API request failed: Invalid Parameter: obj[2].unit validate.error.unexpected.value.

May be by this commit 0738bad (8 years ago...)

Copy link
Contributor

@yseto yseto left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution.

@yseto yseto merged commit 8cc070f into mackerelio:master Dec 16, 2025
12 checks passed
@fujiwara fujiwara deleted the feature/redis-cluster branch December 16, 2025 10:48
@yseto
Copy link
Contributor

yseto commented Dec 17, 2025

@fujiwara
We have just released https://github.com/mackerelio/mackerel-agent-plugins/releases/tag/v0.90.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants