collector: publish documented counter types for udp and hyperv metrics (#2661)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2026-10-10 19:43:31 +02:00
committed by GitHub
co-authored by Claude Fable 5
parent ab74f5d39d
commit c6ad8f4792
8 changed files with 45 additions and 7 deletions
+1 -1
View File
@@ -260,7 +260,7 @@ func logCollectorResult(ctx context.Context, logger *slog.Logger, name string, e
if err != nil {
if !expectedCollectionError(err) {
if errors.Is(err, pdh.ErrPerformanceCounterNotInitialized) {
err = fmt.Errorf("%w. Check application logs from initialization pharse for more information", err)
err = fmt.Errorf("%w. Check application logs from initialization phase for more information", err)
}
logger.LogAttrs(ctx, slog.LevelWarn,
+1 -1
View File
@@ -30,7 +30,7 @@ import (
var _ prometheus.Collector = (*Handler)(nil)
// scrapeSlot admits one scrape at a time, across all collections.
// We are expose metrics directly from the memory region of the Win32 API.
// We expose metrics directly from the memory region of the Win32 API.
// We should not allow more than one request at a time.
//
//nolint:gochecknoglobals