| 383 | } |
| 384 | |
| 385 | func NewAlertmanager(name string, flags map[string]string, image string) *CortexService { |
| 386 | if image == "" { |
| 387 | image = GetDefaultImage() |
| 388 | } |
| 389 | |
| 390 | return NewCortexService( |
| 391 | name, |
| 392 | image, |
| 393 | e2e.NewCommandWithoutEntrypoint("cortex", e2e.BuildArgs(e2e.MergeFlags(map[string]string{ |
| 394 | "-target": "alertmanager", |
| 395 | "-log.level": "warn", |
| 396 | "-alertmanager.enable-api": "true", |
| 397 | }, flags))...), |
| 398 | e2e.NewHTTPReadinessProbe(httpPort, "/ready", 200, 299), |
| 399 | httpPort, |
| 400 | grpcPort, |
| 401 | GossipPort, |
| 402 | ) |
| 403 | } |
| 404 | |
| 405 | func NewAlertmanagerWithTLS(name string, flags map[string]string, image string) *CortexService { |
| 406 | if image == "" { |