Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
68686cd6
Commit
68686cd6
authored
7 years ago
by
Chelsea Holland Komlo
Browse files
Options
Download
Email Patches
Plain Diff
final code review fixups
parent
ef4aef02
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
client/client.go
+2
-0
client/client.go
command/agent/config.go
+11
-13
command/agent/config.go
command/agent/config_test.go
+2
-0
command/agent/config_test.go
with
15 additions
and
13 deletions
+15
-13
client/client.go
+
2
-
0
View file @
68686cd6
...
...
@@ -2033,6 +2033,8 @@ func (c *Client) emitHostStats() {
c
.
setGaugeForUptime
(
hStats
)
c
.
setGaugeForCPUStats
(
nodeID
,
hStats
)
c
.
setGaugeForDiskStats
(
nodeID
,
hStats
)
// TODO: This should be moved to emitClientMetrics
c
.
setGaugeForAllocationStats
(
nodeID
)
}
...
...
This diff is collapsed.
Click to expand it.
command/agent/config.go
+
11
-
13
View file @
68686cd6
...
...
@@ -584,19 +584,17 @@ func DefaultConfig() *Config {
Consul
:
config
.
DefaultConsulConfig
(),
Vault
:
config
.
DefaultVaultConfig
(),
Client
:
&
ClientConfig
{
Enabled
:
false
,
MaxKillTimeout
:
"30s"
,
ClientMinPort
:
14000
,
ClientMaxPort
:
14512
,
Reserved
:
&
Resources
{},
GCInterval
:
1
*
time
.
Minute
,
GCParallelDestroys
:
2
,
GCDiskUsageThreshold
:
80
,
GCInodeUsageThreshold
:
70
,
GCMaxAllocs
:
50
,
NoHostUUID
:
helper
.
BoolToPtr
(
true
),
DisableTaggedMetrics
:
false
,
BackwardsCompatibleMetrics
:
false
,
Enabled
:
false
,
MaxKillTimeout
:
"30s"
,
ClientMinPort
:
14000
,
ClientMaxPort
:
14512
,
Reserved
:
&
Resources
{},
GCInterval
:
1
*
time
.
Minute
,
GCParallelDestroys
:
2
,
GCDiskUsageThreshold
:
80
,
GCInodeUsageThreshold
:
70
,
GCMaxAllocs
:
50
,
NoHostUUID
:
helper
.
BoolToPtr
(
true
),
},
Server
:
&
ServerConfig
{
Enabled
:
false
,
...
...
This diff is collapsed.
Click to expand it.
command/agent/config_test.go
+
2
-
0
View file @
68686cd6
...
...
@@ -89,6 +89,8 @@ func TestConfig_Merge(t *testing.T) {
ReservedPorts
:
"1,10-30,55"
,
ParsedReservedPorts
:
[]
int
{
1
,
2
,
4
},
},
DisableTaggedMetrics
:
true
,
BackwardsCompatibleMetrics
:
true
,
},
Server
:
&
ServerConfig
{
Enabled
:
false
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help