Documentation ¶
Index ¶
- Variables
- func CreateOrUpdateAlertRules(ctx context.Context, client client.Client, namespace string, ...) error
- func NewConfigBuilder() *configBuilder
- func RemoveLVSDeletionTimestampMetric(lvSetName string)
- func SetDiscoveredDevicesMetrics(nodeName string, deviceCount int)
- func SetLVOrphanedSymlinksMetric(nodeName, storageClassName string, count int)
- func SetLVProvisionedPVMetric(nodeName, storageClassName string, count int)
- func SetLVSDeletionTimestampMetric(lvSetName string, ts int64)
- func SetLVSOrphanedSymlinksMetric(nodeName, storageClassName string, count int)
- func SetLVSProvisionedPVMetric(nodeName, storageClassName string, count int)
- func SetLVSUnmatchedDiskMetric(nodeName, storageClassName string, count int)
- type Exporter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LVDMetricsList = []prometheus.Collector{ metricDiscoveredDevicesByLocalVolumeDiscovery, } LVMetricsList = []prometheus.Collector{ metricLocalVolumeSetProvisionedPVs, metricLocalVolumeSetUnmatchedDisks, metricLocalVolumeSetOrphanedSymlinks, metricLocalVolumeSetDeletionTimestamp, metricLocalVolumeProvisionedPVs, metricLocalVolumeOrphanedSymlinks, } )
Functions ¶
func CreateOrUpdateAlertRules ¶
func CreateOrUpdateAlertRules(ctx context.Context, client client.Client, namespace string, diskmakerName string, ownerRefs []metav1.OwnerReference) error
CreateOrUpdateAlertRules installs all LSO alerting rules
func NewConfigBuilder ¶
func NewConfigBuilder() *configBuilder
NewConfigBuilder initializes the config for the local server
func RemoveLVSDeletionTimestampMetric ¶
func RemoveLVSDeletionTimestampMetric(lvSetName string)
Types ¶
type Exporter ¶
type Exporter struct { Ctx context.Context Client client.Client Name string Namespace string OwnerRefs []metav1.OwnerReference AppLabel string ServiceCertName string }
func NewExporter ¶
func (*Exporter) EnableMetricsExporter ¶
EnableMetricsExporter creates service and servicemonitor
Click to show internal directories.
Click to hide internal directories.