Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metricbeat - does not collect metrics on network drives in Windows #10664

Closed
Yelliny opened this issue Feb 11, 2019 · 6 comments
Closed

Metricbeat - does not collect metrics on network drives in Windows #10664

Yelliny opened this issue Feb 11, 2019 · 6 comments

Comments

@Yelliny
Copy link

Yelliny commented Feb 11, 2019

Hi,
After working with Metricbeat for a while I have noticed that it does not collect metrics on network drives (NFS) in Windows (in Linux it does).
It would be great if they were.

Thanks!

@ruflin ruflin added enhancement module Metricbeat Metricbeat Team:Integrations Label for the Integrations team :Windows labels Feb 11, 2019
@narph
Copy link
Contributor

narph commented Apr 24, 2019

hi @Yelliny, what are the exact operating systems you are transferring files between using the NFS protocol?
Also, what is the metricbeat configuration you are testing with at the moment (modules/metricsets etc), it will help us narrow down any issues here.

@botelastic
Copy link

botelastic bot commented Jul 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added the Stalled label Jul 8, 2020
@botelastic botelastic bot closed this as completed Aug 7, 2020
@qwinkler
Copy link

Hi there! Looks like it wasn't fixed. I also faced this problem.

metricbeat.modules:
- module: system
  enabled: true
  period: 60s
  processes: ['.*']
  filesystem.ignore_types: []
  metricsets:
    - process
    - filesystem # is required
  processors:
    - drop_event.when.regexp.mount_point: '^/(sys|cgroup|proc|dev|etc|host)($|/)'

Metricbeat will only collect the data from local drives, not the remote ones.

@kvch kvch reopened this Oct 21, 2020
@botelastic botelastic bot removed the Stalled label Oct 21, 2020
@mkotha-clgx
Copy link

mkotha-clgx commented Oct 21, 2020

This is my understanding. The GoLang program behind the FileSystem is not capturing the NFS/Network Shared drives. I added a Network share and ran the go program, it only lists the c: drive.

`
package main

import (
"fmt"
"os"

gosigar "github.com/elastic/gosigar"

)

const output_format = "%-15s %4s %4s %5s %4s %-15s\n"

func main() {
fslist := gosigar.FileSystemList{}
err := fslist.Get()
if err != nil {
fmt.Printf("Failed to get list of filesystems: %v", err)
os.Exit(-1)
}

fmt.Fprintf(os.Stdout, output_format,
	"Filesystem", "Size", "Used", "Avail", "Use%", "Mounted on")

for _, fs := range fslist.List {
	dir_name := fs.DirName

	usage := gosigar.FileSystemUsage{}

	usage.Get(dir_name)

	fmt.Fprintf(os.Stdout, output_format,
		fs.DevName,
		gosigar.FormatSize(usage.Total),
		gosigar.FormatSize(usage.Used),
		gosigar.FormatSize(usage.Avail),
		gosigar.FormatPercent(usage.UsePercent()),
		dir_name)
}

}
`

@SpartanB
Copy link

SpartanB commented Jun 9, 2021

Hi,

Is there any update on fixing this issue? Not able to see network drives on Windows with Metricbeat 7.13.1

@botelastic
Copy link

botelastic bot commented Jun 9, 2022

Hi!
We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Jun 9, 2022
@botelastic botelastic bot closed this as completed Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants