Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Zone string
SiteName string
NrBuckets int
ReportFrequency time.Duration
InfluxHost string
InfluxToken string
InfluxDatabase string
}
Configuration variables for the Reporter component.
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter is the component which is in charge of gathering and aggregating all collected statistics and sending the report to InfluxDB. One Reporter is in charge of reporting stats for one configured DNS zone.
func New ¶
func New(config Config, resolverInfoMap *stats.ResolverInfoMap, zoneStats *stats.ZoneStats, nrReportsMade prometheus.Counter, nrReportsSent prometheus.Counter) *Reporter
Creates a new Reporter component which reads statistics from zoneStats, enriched with resolverInfoMap
func (*Reporter) ComponentName ¶
Click to show internal directories.
Click to hide internal directories.