udp: Added UDP collector (#1725)

This commit is contained in:
Jan-Otto Kröpke
2024-11-11 17:17:19 +01:00
committed by GitHub
parent 55181f5bac
commit eeb7955f5e
17 changed files with 376 additions and 58 deletions

View File

@@ -45,6 +45,7 @@ import (
"github.com/prometheus-community/windows_exporter/internal/collector/textfile"
"github.com/prometheus-community/windows_exporter/internal/collector/thermalzone"
"github.com/prometheus-community/windows_exporter/internal/collector/time"
"github.com/prometheus-community/windows_exporter/internal/collector/udp"
"github.com/prometheus-community/windows_exporter/internal/collector/update"
"github.com/prometheus-community/windows_exporter/internal/collector/vmware"
)
@@ -94,6 +95,7 @@ type Config struct {
Textfile textfile.Config `yaml:"textfile"`
ThermalZone thermalzone.Config `yaml:"thermal_zone"`
Time time.Config `yaml:"time"`
UDP udp.Config `yaml:"udp"`
Update update.Config `yaml:"update"`
Vmware vmware.Config `yaml:"vmware"`
}
@@ -146,6 +148,7 @@ var ConfigDefaults = Config{
Textfile: textfile.ConfigDefaults,
ThermalZone: thermalzone.ConfigDefaults,
Time: time.ConfigDefaults,
UDP: udp.ConfigDefaults,
Update: update.ConfigDefaults,
Vmware: vmware.ConfigDefaults,
}