monitoring

package
v0.0.99 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: UPL-1.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const FilebeatConfigData = `` /* 586-byte string literal not displayed */

FilebeatConfigData contains configuration used by Filebeats.

View Source
const FilebeatInputData = `- type: docker
  containers.ids:
  - "*"
  processors:
    - add_kubernetes_metadata:
        in_cluster: true
`

FilebeatInputData contains configuration used as inputs for Filebeats.

View Source
const JournalbeatConfigData = `` /* 401-byte string literal not displayed */

JournalbeatConfigData contains configuration used by Journalbeats.

Variables

This section is empty.

Functions

func CreateDeployment

func CreateDeployment(namespace string, bindingName string, labels map[string]string, sec Secrets) *appsv1.Deployment

CreateDeployment creates prometheus pusher deployment on all clusters, based on a VerrazzanoApplicationBinding.

func CreateVmiSecrets

func CreateVmiSecrets(binding *v1beta1v8o.VerrazzanoBinding, secrets Secrets) error

CreateVmiSecrets creates/updates a VMI secret.

func DeletePomPusher added in v0.0.99

func DeletePomPusher(binding string, helper util.DeploymentHelper) error

DeletePomPusher deletes the Prometheus Pusher deployment.

func GetFilebeatLabels

func GetFilebeatLabels(managedClusterName string) map[string]string

GetFilebeatLabels returns labels for Filebeats.

func GetJournalbeatLabels

func GetJournalbeatLabels(managedClusterName string) map[string]string

GetJournalbeatLabels returns labels for Journalbeats.

func GetMonitoringComponentLabels

func GetMonitoringComponentLabels(managedClusterName string, componentName string) map[string]string

GetMonitoringComponentLabels returns labels for a given monitoring component.

func GetMonitoringComponents

func GetMonitoringComponents() []string

GetMonitoringComponents returns list of monitoring components.

func GetMonitoringNamespace

func GetMonitoringNamespace(componentName string) string

GetMonitoringNamespace return namespace for a given monitoring component.

func GetNodeExporterLabels

func GetNodeExporterLabels(managedClusterName string) map[string]string

GetNodeExporterLabels returns labels for Node Exporter.

func GetSystemClusterRoleBindings

func GetSystemClusterRoleBindings(managedClusterName string) []*rbacv1.ClusterRoleBinding

GetSystemClusterRoleBindings gets all the cluster role bindings needed by Filebeats, Journalbeats, and NodeExporters in all the managed clusters.

func GetSystemClusterRoles

func GetSystemClusterRoles(managedClusterName string) []*rbacv1.ClusterRole

GetSystemClusterRoles gets all the cluster roles needed by Filebeats, Journalbeats, and NodeExporters in all the clusters.

func GetSystemDeployments

func GetSystemDeployments(managedClusterName, verrazzanoURI string, sec Secrets) []*appsv1.Deployment

GetSystemDeployments constructs the necessary Deployments for the specified ManagedCluster for the System VMI.

func GetSystemSecrets

func GetSystemSecrets(sec Secrets) []*corev1.Secret

GetSystemSecrets the secrets to be created for Filebeats and Journalbeats.

func GetVmiPassword

func GetVmiPassword(secrets Secrets) (string, error)

GetVmiPassword returns the password for the VMI secret.

func LoggingConfigMaps

func LoggingConfigMaps(managedClusterName string) []*corev1.ConfigMap

LoggingConfigMaps gets all the config maps needed by Filebeats and Journalbeats in all the managed cluster.

func NewVmiSecret

func NewVmiSecret(binding *v1beta1v8o.VerrazzanoBinding) *corev1.Secret

NewVmiSecret creates the necessary Secrets for the given VerrazzanoBinding.

func SystemDaemonSets

func SystemDaemonSets(managedClusterName string, verrazzanoURI string) []*appsv1.DaemonSet

SystemDaemonSets create all the Daemon sets needed by Filebeats, Journalbeats, and NodeExporters in all the managed clusters.

Types

type Secrets

type Secrets interface {
	Get(name string) (*corev1.Secret, error)
	Create(*corev1.Secret) (*corev1.Secret, error)
	Update(*corev1.Secret) (*corev1.Secret, error)
	List(ns string, selector labels.Selector) (ret []*corev1.Secret, err error)
	Delete(ns, name string) error
	GetVmiPassword() (string, error)
}

Secrets defines the interface for handling secrets.

Jump to

Keyboard shortcuts

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