Documentation ¶
Index ¶
- Constants
- func GenerateService(port int32, portName string) (*v1.Service, error)
- func GenerateServiceMonitor(s *v1.Service) *monitoringv1.ServiceMonitor
- func RegisterMetrics() error
- func StartMetrics() error
- func UpdateConfigMapMetrics(list *corev1.ConfigMapList)
- func UpdateSecretsMetrics(list *corev1.SecretList, amconfig *alertmanager.Config)
Constants ¶
View Source
const (
// MetricsEndpoint is the port to export metrics on
MetricsEndpoint = ":8080"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateService ¶
GenerateService returns the static service which exposes specified port.
func GenerateServiceMonitor ¶
func GenerateServiceMonitor(s *v1.Service) *monitoringv1.ServiceMonitor
GenerateServiceMonitor generates a prometheus-operator ServiceMonitor object based on the passed Service object.
func UpdateConfigMapMetrics ¶
func UpdateConfigMapMetrics(list *corev1.ConfigMapList)
UpdateConfigMapMetrics updates all metrics related to the existence and contents of ConfigMaps used by configure-alertmanager-operator.
func UpdateSecretsMetrics ¶
func UpdateSecretsMetrics(list *corev1.SecretList, amconfig *alertmanager.Config)
UpdateSecretsMetrics updates all metrics related to the existence and contents of Secrets used by configure-alertmanager-operator.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.