Skip to content

Commit cf0a4a9

Browse files
committed
Check for beats metrics instead of system metrics in test
1 parent 9d1eabf commit cf0a4a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

testing/integration/ess/metrics_monitoring_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ func (runner *MetricsRunner) TestBeatsMetrics() {
172172
query = genESQuery(agentStatus.Info.ID,
173173
[][]string{
174174
{"match", "component.id", cid},
175-
{"exists", "field", "system.process.cpu.total.value"},
176-
{"exists", "field", "system.process.memory.size"},
175+
{"exists", "field", "beat.stats.beat.host"},
177176
})
178177
now = time.Now()
179178
res, err := estools.PerformQueryForRawQuery(ctx, query, "metrics-elastic_agent*", runner.info.ESClient)

0 commit comments

Comments
 (0)