Skip to content

Commit

Permalink
process: fix metric labels for multiple process instances
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
jkroepke committed Dec 4, 2024
1 parent 9d9564e commit bb7f561
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/pdh/registry/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"reflect"
"testing"

"github.com/prometheus-community/windows_exporter/internal/pdh/perftypes"
"github.com/prometheus-community/windows_exporter/internal/pdh"
)

type simple struct {
Expand Down Expand Up @@ -40,7 +40,7 @@ func TestUnmarshalPerflib(t *testing.T) {
{
Def: &PerfCounterDef{
Name: "Something",
CounterType: perftypes.PERF_COUNTER_COUNTER,
CounterType: pdh.PERF_COUNTER_COUNTER,
},
Value: 123,
},
Expand All @@ -60,14 +60,14 @@ func TestUnmarshalPerflib(t *testing.T) {
{
Def: &PerfCounterDef{
Name: "Something",
CounterType: perftypes.PERF_COUNTER_COUNTER,
CounterType: pdh.PERF_COUNTER_COUNTER,
},
Value: 123,
},
{
Def: &PerfCounterDef{
Name: "Something Else",
CounterType: perftypes.PERF_COUNTER_COUNTER,
CounterType: pdh.PERF_COUNTER_COUNTER,
HasSecondValue: true,
},
Value: 256,
Expand All @@ -89,7 +89,7 @@ func TestUnmarshalPerflib(t *testing.T) {
{
Def: &PerfCounterDef{
Name: "Something",
CounterType: perftypes.PERF_COUNTER_COUNTER,
CounterType: pdh.PERF_COUNTER_COUNTER,
},
Value: 321,
},
Expand All @@ -100,7 +100,7 @@ func TestUnmarshalPerflib(t *testing.T) {
{
Def: &PerfCounterDef{
Name: "Something",
CounterType: perftypes.PERF_COUNTER_COUNTER,
CounterType: pdh.PERF_COUNTER_COUNTER,
},
Value: 231,
},
Expand Down

0 comments on commit bb7f561

Please sign in to comment.