Documentation ¶
Overview ¶
Package genpromcrd implements all the functionality for the genpromcrd command line application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFlagsParse = errors.New("Failed to parse flags.")
ErrFlagsParse is returned from Main if we failed to parse flags.
Functions ¶
This section is empty.
Types ¶
type AlertTarget ¶
type AlertTarget struct { // AppGroup is the value of the template.label.appgroup for the pods to be monitored. AppGroup string // Directory where the YAML file was found for this appgroup. The scraping // and alerting file will be writtin back into this directory. Directory string }
AlertTarget represents a single appgroup that might need monitoring.
func (AlertTarget) TargetFilename ¶
func (a AlertTarget) TargetFilename() string
TargetFilename is the absolute filename where the pod scraping and alert rules should be written as YAML.
type AlertTargets ¶
type AlertTargets map[AlertTarget]bool
AlertTargets keeps track of multiple found AlertTarget's, de-duplicating AlertTargets that are the same.
Click to show internal directories.
Click to hide internal directories.