Skip to content

More prometheus Volume & Replica metrics #1865

@absolutejam

Description

@absolutejam

Is your feature request related to a problem? Please describe.
Prometheus exporter should expose more volume & replica information, such as the info available in kubectl mayastor get volume-replica-topologies.

Describe the solution you'd like
Ideally, I'd like to see metrics along the lines of:

  • Volume replicas (with a status label, eg. Failed, Degraded, Online)
  • Replica rebuild progress (this could potentially be a gauge of the current rebuild state of a replica)
  • A volume label on the replica metrics
  • And this is purely an opinion, but it feels like the metrics should be prefixed with mayastor_ for identification

Generally, the more information (without unecessary cardinality) the better. This makes correlating service issues with volume issues much easier and unlocks better visualisations & alerts.

For example, this query in Grafana:

label_replace(
    irate(replica_num_write_ops{name=~"$replica"}[$__rate_interval]),
    "volumename", "$1", "pv_name", "(.*)"
)
* on (volumename) group_left (persistentvolumeclaim)
kube_persistentvolumeclaim_info

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions