Skip to content
Snippets Groups Projects

Export prometheus metric for read-only mode

Merged Sami Hiltunen requested to merge smh-read-only-gauge into master

Exports a Prometheus metrics showing whether a virtual storage is in read-only mode or not.

Relates to #2789 (closed)

Edited by GitLab Release Tools Bot

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • assigned to @samihiltunen and unassigned @pks-t

  • Patrick Steinhardt approved this merge request

    approved this merge request

  • assigned to @pks-t and @johncai

  • unassigned @pks-t

  • Patrick Steinhardt resolved all threads

    resolved all threads

  • 151 151 s.primaryNode = newPrimary
    152 152 s.isReadOnly = s.readOnlyAfterFailover
    153 153
    154 metrics.ReadOnlyGauge.WithLabelValues(s.shardName).Set(metrics.Bool(s.isReadOnly))
  • John Cai
  • John Cai approved this merge request

    approved this merge request

  • @samihiltunen some nits only, not blocking so I'll pre-approve

  • unassigned @johncai

  • Sami Hiltunen added 1 commit

    added 1 commit

    • 0d5e6b09 - export prometheus metric for read-only mode

    Compare with previous version

  • Sami Hiltunen enabled an automatic merge when the pipeline for 0d5e6b09 succeeds

    enabled an automatic merge when the pipeline for 0d5e6b09 succeeds

  • merged

  • Sami Hiltunen mentioned in commit 5c49063c

    mentioned in commit 5c49063c

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading