alertmanager

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package alertmanager 는 스택 Alertmanager 의 활성 경보를 읽는 어댑터다(nullus-plan#87).

플랫폼은 스택 클러스터의 kubeconfig 만으로 Kubernetes API 서버 프록시를 거쳐 Alertmanager 에 닿는다 — OpenBao 접근과 같은 길이다(internal/shared/secrets/apiserver_proxy.go). 스택 쪽에 인바운드 경로나 웹훅 인증을 새로 열지 않으므로 에어갭 · 다중 클러스터에서도 그대로 된다.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeconfigProvider

type KubeconfigProvider interface {
	GetKubeconfig(ctx context.Context, clusterID string) ([]byte, error)
}

KubeconfigProvider 는 클러스터의 kubeconfig 다(스택 모듈의 것을 main 이 넘긴다).

type Source

type Source struct {
	// contains filtered or unexported fields
}

Source 는 port.ActiveAlertSource 다.

func NewSource

func NewSource(kubeconfigs KubeconfigProvider) *Source

func (*Source) ActiveAlerts

func (s *Source) ActiveAlerts(ctx context.Context, stack domain.MonitoredStack) ([]domain.SourceAlert, error)

ActiveAlerts 는 Alertmanager API v2 의 활성 경보다. 침묵(silenced) · 억제(inhibited)된 것도 가져와 Suppressed 로 표시한다 — 수집기는 그것을 알리지 않지만 "보인 것" 으로 쳐서 해제하지 않는다. 빼고 가져오면 침묵을 건 순간 해제 알림이, 침묵이 끝날 때 발생 알림이 다시 나간다.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL