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
4957717d
Commit
4957717d
authored
8 years ago
by
Tevin Jeffrey
Committed by
Cameron Sparr
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add field for last GC pause time (#2121)
parent
21fac3eb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
plugins/inputs/influxdb/influxdb.go
+28
-26
28 additions, 26 deletions
plugins/inputs/influxdb/influxdb.go
plugins/inputs/influxdb/influxdb_test.go
+1
-0
1 addition, 0 deletions
plugins/inputs/influxdb/influxdb_test.go
with
30 additions
and
26 deletions
CHANGELOG.md
+
1
−
0
View file @
4957717d
...
...
@@ -27,6 +27,7 @@ in their config file.
-
[
#2079
](
https://github.com/influxdata/telegraf/pull/2079
)
: Enable setting ClientID in MQTT output.
-
[
#2001
](
https://github.com/influxdata/telegraf/pull/2001
)
: MongoDB input plugin: Improve state data.
-
[
#2078
](
https://github.com/influxdata/telegraf/pull/2078
)
: Ping input: add standard deviation field.
-
[
#2121
](
https://github.com/influxdata/telegraf/pull/2121
)
: Add GC pause metric to InfluxDB input plugin.
### Bugfixes
...
...
This diff is collapsed.
Click to expand it.
plugins/inputs/influxdb/influxdb.go
+
28
−
26
View file @
4957717d
...
...
@@ -94,32 +94,33 @@ type point struct {
}
type
memstats
struct
{
Alloc
int64
`json:"Alloc"`
TotalAlloc
int64
`json:"TotalAlloc"`
Sys
int64
`json:"Sys"`
Lookups
int64
`json:"Lookups"`
Mallocs
int64
`json:"Mallocs"`
Frees
int64
`json:"Frees"`
HeapAlloc
int64
`json:"HeapAlloc"`
HeapSys
int64
`json:"HeapSys"`
HeapIdle
int64
`json:"HeapIdle"`
HeapInuse
int64
`json:"HeapInuse"`
HeapReleased
int64
`json:"HeapReleased"`
HeapObjects
int64
`json:"HeapObjects"`
StackInuse
int64
`json:"StackInuse"`
StackSys
int64
`json:"StackSys"`
MSpanInuse
int64
`json:"MSpanInuse"`
MSpanSys
int64
`json:"MSpanSys"`
MCacheInuse
int64
`json:"MCacheInuse"`
MCacheSys
int64
`json:"MCacheSys"`
BuckHashSys
int64
`json:"BuckHashSys"`
GCSys
int64
`json:"GCSys"`
OtherSys
int64
`json:"OtherSys"`
NextGC
int64
`json:"NextGC"`
LastGC
int64
`json:"LastGC"`
PauseTotalNs
int64
`json:"PauseTotalNs"`
NumGC
int64
`json:"NumGC"`
GCCPUFraction
float64
`json:"GCCPUFraction"`
Alloc
int64
`json:"Alloc"`
TotalAlloc
int64
`json:"TotalAlloc"`
Sys
int64
`json:"Sys"`
Lookups
int64
`json:"Lookups"`
Mallocs
int64
`json:"Mallocs"`
Frees
int64
`json:"Frees"`
HeapAlloc
int64
`json:"HeapAlloc"`
HeapSys
int64
`json:"HeapSys"`
HeapIdle
int64
`json:"HeapIdle"`
HeapInuse
int64
`json:"HeapInuse"`
HeapReleased
int64
`json:"HeapReleased"`
HeapObjects
int64
`json:"HeapObjects"`
StackInuse
int64
`json:"StackInuse"`
StackSys
int64
`json:"StackSys"`
MSpanInuse
int64
`json:"MSpanInuse"`
MSpanSys
int64
`json:"MSpanSys"`
MCacheInuse
int64
`json:"MCacheInuse"`
MCacheSys
int64
`json:"MCacheSys"`
BuckHashSys
int64
`json:"BuckHashSys"`
GCSys
int64
`json:"GCSys"`
OtherSys
int64
`json:"OtherSys"`
NextGC
int64
`json:"NextGC"`
LastGC
int64
`json:"LastGC"`
PauseTotalNs
int64
`json:"PauseTotalNs"`
PauseNs
[
256
]
int64
`json:"PauseNs"`
NumGC
int64
`json:"NumGC"`
GCCPUFraction
float64
`json:"GCCPUFraction"`
}
// Gathers data from a particular URL
...
...
@@ -202,6 +203,7 @@ func (i *InfluxDB) gatherURL(
"next_gc"
:
m
.
NextGC
,
"last_gc"
:
m
.
LastGC
,
"pause_total_ns"
:
m
.
PauseTotalNs
,
"pause_ns"
:
m
.
PauseNs
[(
m
.
NumGC
+
255
)
%
256
],
"num_gc"
:
m
.
NumGC
,
"gcc_pu_fraction"
:
m
.
GCCPUFraction
,
},
...
...
This diff is collapsed.
Click to expand it.
plugins/inputs/influxdb/influxdb_test.go
+
1
−
0
View file @
4957717d
...
...
@@ -86,6 +86,7 @@ func TestInfluxDB(t *testing.T) {
"frees"
:
int64
(
381008
),
"heap_idle"
:
int64
(
15802368
),
"pause_total_ns"
:
int64
(
5132914
),
"pause_ns"
:
int64
(
127053
),
"lookups"
:
int64
(
77
),
"heap_sys"
:
int64
(
33849344
),
"mcache_sys"
:
int64
(
16384
),
...
...
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