MCPcopy Index your code
hub / github.com/cortexproject/cortex / NewAlertmanager

Function NewAlertmanager

integration/e2ecortex/services.go:385–403  ·  view source on GitHub ↗
(name string, flags map[string]string, image string)

Source from the content-addressed store, hash-verified

383}
384
385func 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
405func NewAlertmanagerWithTLS(name string, flags map[string]string, image string) *CortexService {
406 if image == "" {

Calls 6

BuildArgsFunction · 0.92
MergeFlagsFunction · 0.92
NewHTTPReadinessProbeFunction · 0.92
GetDefaultImageFunction · 0.85
NewCortexServiceFunction · 0.85