You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.next.asciidoc
+1
Original file line number
Diff line number
Diff line change
@@ -157,6 +157,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]
157
157
- Use namespace for GetListMetrics when exists in AWS {pull}41022[41022]
158
158
- Fixed panic caused by uninitialized meraki device wifi0 and wifi1 struct pointers in the device WiFi data fetching. {issue}42745[42745] {pull}42746[42746]
159
159
- Only fetch cluster-level index stats summary {issue}36019[36019] {pull}42901[42901]
160
+
- Fixed an issue in Metricbeat's Windows module where data collection would fail if the data was unavailable. {issue}42802[42802] {pull}42803[42803]
// Some counters, such as rate counters, require two counter values in order to compute a displayable value. In this case we must call PdhCollectQueryData twice before calling PdhGetFormattedCounterValue.
97
97
// For more information, see Collecting Performance Data (https://docs.microsoft.com/en-us/windows/desktop/PerfCtrs/collecting-performance-data).
98
98
iferr:=re.query.CollectData(); err!=nil {
99
-
// users can encounter the case no counters are found (services/processes stopped), this should not generate an event with the error message,
100
-
//could be the case the specific services are started after and picked up by the next RefreshCounterPaths func
101
-
iferr==pdh.PDH_NO_COUNTERS { //nolint:errorlint // Bad linter! This is always errno or nil.
// users can encounter the case no counters are found (services/processes stopped), this should not generate an event with the error message,
121
+
//could be the case the specific services are started after and picked up by the next RefreshCounterPaths func
122
+
iferr==pdh.PDH_NO_COUNTERS||err==pdh.PDH_NO_DATA { //nolint:errorlint // linter complains about comparing error using '==' operator but here error is always of type pdh.PdhErrno (or nil) so `errors.Is` is redundant here
123
+
re.log.Warnf("%s %v", collectFailedMsg, err)
124
+
125
+
// Ensure the returned error is nil to prevent the Elastic Agent from transitioning to an UNHEALTHY state.
0 commit comments