Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Ruler/Alertmanager easy for new users #6000

Open
friedrichg opened this issue Jun 6, 2024 · 2 comments
Open

Make Ruler/Alertmanager easy for new users #6000

friedrichg opened this issue Jun 6, 2024 · 2 comments
Labels
component/alertmanager component/rules Bits & bobs todo with rules and alerts: the ruler, config service etc. difficulty/easy help wanted

Comments

@friedrichg
Copy link
Member

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)

@friedrichg friedrichg added difficulty/easy help wanted component/rules Bits & bobs todo with rules and alerts: the ruler, config service etc. component/alertmanager labels Jun 6, 2024
@dv-sharma
Copy link

@friedrichg
Copy link
Member Author

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{}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/alertmanager component/rules Bits & bobs todo with rules and alerts: the ruler, config service etc. difficulty/easy help wanted
Projects
None yet
Development

No branches or pull requests

2 participants