Skip to content

Commit

Permalink
Add changelog
Browse files Browse the repository at this point in the history
Signed-off-by: chrismark <chrismarkou92@gmail.com>
  • Loading branch information
ChrsMark committed Dec 16, 2021
1 parent cf1c78c commit b96f541
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Groups same timestamp metric values to one event in the app_insights metricset. {pull}20403[20403]
- Use xpack.enabled on SM modules to write into .monitoring indices when using Metricbeat standalone {pull}28365[28365]
- Fix in rename processor to ingest metrics for `write.iops` to proper field instead of `write_iops` in rds metricset. {pull}28960[28960]
- Enhance filter check in kubernetes event metricset. {pull}29470[29470]

*Packetbeat*

Expand Down
4 changes: 2 additions & 2 deletions metricbeat/module/kubernetes/event/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ func (m *MetricSet) Run(reporter mb.PushReporter) {
eve := obj.(*kubernetes.Event)
// if fields are null they are decoded to `0001-01-01 00:00:00 +0000 UTC`
// so we need to check if they are valid first
lastTimestampValid := kubernetes.Time(&eve.LastTimestamp).Year() > 1
eventTimeValid := kubernetes.MicroTime(&eve.EventTime).Year() > 1
lastTimestampValid := !kubernetes.Time(&eve.LastTimestamp).IsZero()
eventTimeValid := !kubernetes.MicroTime(&eve.EventTime).IsZero()
// if skipOlder, skip events happened before watch
if m.skipOlder && kubernetes.Time(&eve.LastTimestamp).Before(now) && lastTimestampValid {
return false
Expand Down

0 comments on commit b96f541

Please sign in to comment.