Skip to content

Make Ruler/Alertmanager easy for new users #6000

Open

Description

@friedrichg

Is your feature request related to a problem? Please describe.
Users have trouble using ruler and alertmanager, because it provides too many modes of operation.

Describe the solution you'd like
We should make clear in the docs how a new user should use ruler and alertmanager and what options not to use (deprecated)

Activity

  1. dv-sharma commented on Jun 16, 2024

    @dv-sharma
  2. friedrichg commented on Jun 16, 2024

    @friedrichg
    MemberAuthor

    this is what I mean

    // We currently have 3 operational modes:
    // 1) Alertmanager clustering with upstream Gossip
    // 2) Alertmanager sharding and ring-based replication
    // 3) Alertmanager no replication
    // These are covered in order.
    if cfg.Peer != nil {
    level.Debug(am.logger).Log("msg", "starting tenant alertmanager with gossip-based replication")
    am.state = cfg.Peer
    } else if cfg.ShardingEnabled {
    level.Debug(am.logger).Log("msg", "starting tenant alertmanager with ring-based replication")
    state := newReplicatedStates(cfg.UserID, cfg.ReplicationFactor, cfg.Replicator, cfg.Store, am.logger, am.registry)
    am.state = state
    am.persister = newStatePersister(cfg.PersisterConfig, cfg.UserID, state, cfg.Store, am.logger, am.registry)
    } else {
    level.Debug(am.logger).Log("msg", "starting tenant alertmanager without replication")
    am.state = &NilPeer{}
    }

  3. siddhiguptas commented on Mar 3, 2025

    @siddhiguptas

    Hi @friedrichg !!I'd like to contribute! Should the doc changes go into the existing guide or a new section?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions