Skip to content

Commit

Permalink
Remove empty lines added by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
herrBez committed May 14, 2024
1 parent ef19ff0 commit 835d991
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions metricbeat/module/kubernetes/volume/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func eventMapping(content []byte, logger *logp.Logger) ([]mapstr.M, error) {
node := summary.Node
for _, pod := range summary.Pods {
for _, volume := range pod.Volume {

volumeEvent := mapstr.M{
mb.ModuleDataKey: mapstr.M{
"namespace": pod.PodRef.Namespace,
Expand Down Expand Up @@ -76,7 +75,6 @@ func eventMapping(content []byte, logger *logp.Logger) ([]mapstr.M, error) {
if volume.Inodes > 0 {
kubernetes2.ShouldPut(volumeEvent, "fs.inodes.pct", float64(volume.InodesUsed)/float64(volume.Inodes), logger)
}

if volume.PvcRef.Name != "" {
kubernetes2.ShouldPut(volumeEvent, mb.ModuleDataKey+".persistentvolumeclaim.name", volume.PvcRef.Name, logger)
}
Expand Down

0 comments on commit 835d991

Please sign in to comment.