forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Metricbeat system module updates for Windows
- Added system core metricset for Windows. Per core metrics were implemented in elastic/gosigar. - Added logging of process/system details on Windows to aid in debugging (user, arch, cores, sid, privs). - Fixes elastic#2860 (PPID is zero on Windows). - Fixes elastic#1704 (Server 2003 - PID’s not recognized). The command line arguments for the process will not be reported on XP and 2003. - Fixes elastic#1897 (OpenProcess access denied on Windows). Added code to enable the SeDebugPrivilege when it is available. - Fixes elastic#2885 (diskio metricset fails on XP and 2003). - Enabled fsstats by default in Metricbeat config.
- Loading branch information
1 parent
2797565
commit eb88c2c
Showing
21 changed files
with
163 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@echo off | ||
|
||
REM | ||
REM Batch script to build and test on Windows. You can use this in conjunction | ||
REM with the Vagrant machine. | ||
REM | ||
|
||
go install github.com/elastic/beats/vendor/github.com/pierrre/gotestcover | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
echo Building | ||
go build | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
echo Testing | ||
mkdir build\coverage | ||
gotestcover -race -coverprofile=build/coverage/integration.cov github.com/elastic/beats/metricbeat/... | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
echo System Testing | ||
go test -c -covermode=atomic -coverpkg ./... | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
nosetests -v -w tests\system --process-timeout=30 | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
echo Aggregating Coverage Reports | ||
python ..\dev-tools\aggregate_coverage.py -o build\coverage\system.cov .\build\system-tests\run | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
python ..\dev-tools\aggregate_coverage.py -o build\coverage\full.cov .\build\coverage | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
go tool cover -html=build\coverage\full.cov -o build\coverage\full.html | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
echo Success |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
- filesystem | ||
|
||
# File system summary stats | ||
#- fsstat | ||
- fsstat | ||
|
||
# Memory stats | ||
- memory | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
- filesystem | ||
|
||
# File system summary stats | ||
#- fsstat | ||
- fsstat | ||
|
||
# Memory stats | ||
- memory | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ This metricset is available on: | |
- FreeBSD | ||
- Linux | ||
- OpenBSD | ||
- Windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// +build darwin freebsd linux openbsd | ||
// +build darwin freebsd linux openbsd windows | ||
|
||
package core | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// +build !linux | ||
// +build !linux,!windows | ||
|
||
package system | ||
|
||
func configureHostFS() { | ||
func initModule() { | ||
// Stub method for non-linux. | ||
} |
Oops, something went wrong.