mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-19 02:59:04 +02:00
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:
co-authored by
Claude Fable 5
parent
ab74f5d39d
commit
c6ad8f4792
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user