Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
telegraf-nftables
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Due to inactivity, this project is scheduled to be deleted on 2035-04-24.
Why is this scheduled?
Show more breadcrumbs
vqgroup
telegraf-nftables
Commits
0aff7a0b
Commit
0aff7a0b
authored
8 years ago
by
Cameron Sparr
Browse files
Options
Downloads
Patches
Plain Diff
Disk plugin: return immediately if usage fails
closes #1297
parent
c4cfdb8a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
plugins/inputs/system/ps.go
+1
-1
1 addition, 1 deletion
plugins/inputs/system/ps.go
with
2 additions
and
1 deletion
CHANGELOG.md
+
1
−
0
View file @
0aff7a0b
...
...
@@ -44,6 +44,7 @@ time before a new metric is included by the plugin.
-
[
#1258
](
https://github.com/influxdata/telegraf/pull/1258
)
: Fix potential kernel plugin integer parse error.
-
[
#1268
](
https://github.com/influxdata/telegraf/pull/1268
)
: Fix potential influxdb input type assertion panic.
-
[
#1283
](
https://github.com/influxdata/telegraf/pull/1283
)
: Still send processes metrics if a process exited during metric collection.
-
[
#1297
](
https://github.com/influxdata/telegraf/issues/1297
)
: disk plugin panic when usage grab fails.
## v0.13.1 [2016-05-24]
...
...
This diff is collapsed.
Click to expand it.
plugins/inputs/system/ps.go
+
1
−
1
View file @
0aff7a0b
...
...
@@ -84,10 +84,10 @@ func (s *systemPS) DiskUsage(
mountpoint
:=
os
.
Getenv
(
"HOST_MOUNT_PREFIX"
)
+
p
.
Mountpoint
if
_
,
err
:=
os
.
Stat
(
mountpoint
);
err
==
nil
{
du
,
err
:=
disk
.
Usage
(
mountpoint
)
du
.
Path
=
p
.
Mountpoint
if
err
!=
nil
{
return
nil
,
err
}
du
.
Path
=
p
.
Mountpoint
// If the mount point is a member of the exclude set,
// don't gather info on it.
_
,
ok
:=
fstypeExcludeSet
[
p
.
Fstype
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment