-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add docker environment for integration and system testing * Add system test file to check for correct docs. * Brings docs in line with generated output * Update data.json * Remove hostname fields as already part of metricset * Apply schema instead of manual conversion * Rename pool.pool to pool.name * Remove separate http client as not needed anymore This is a follow up PR for #3415
- Loading branch information
Showing
14 changed files
with
143 additions
and
170 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3826,7 +3826,7 @@ experimental[] | |
[float] | ||
=== php_fpm.pool.pool | ||
=== php_fpm.pool.name | ||
type: keyword | ||
|
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 |
---|---|---|
|
@@ -2182,7 +2182,7 @@ | |
} | ||
} | ||
}, | ||
"pool": { | ||
"name": { | ||
"ignore_above": 1024, | ||
"index": "not_analyzed", | ||
"type": "string" | ||
|
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 |
---|---|---|
|
@@ -2161,7 +2161,7 @@ | |
} | ||
} | ||
}, | ||
"pool": { | ||
"name": { | ||
"ignore_above": 1024, | ||
"type": "keyword" | ||
}, | ||
|
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
{ | ||
"@timestamp": "2017-01-18T23:57:23.960Z", | ||
"beat": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"metricset": { | ||
"host": "localhost:8081", | ||
"module": "php_fpm", | ||
"name": "pool", | ||
"rtt": 1237 | ||
}, | ||
"php_fpm": { | ||
"pool": { | ||
"connections.accepted": 803, | ||
"connections.queued": 0, | ||
"hostname": "localhost:8081", | ||
"pool": "www", | ||
"processes.active": 1, | ||
"processes.idle": 2, | ||
"requests.slow": 0 | ||
} | ||
}, | ||
"type": "metricsets" | ||
} | ||
"@timestamp": "2016-05-23T08:05:34.853Z", | ||
"beat": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"metricset": { | ||
"host": "127.0.0.1:81", | ||
"module": "php_fpm", | ||
"name": "pool", | ||
"rtt": 115 | ||
}, | ||
"php_fpm": { | ||
"pool": { | ||
"connections": { | ||
"accepted": 13, | ||
"queued": 0 | ||
}, | ||
"pool": "www", | ||
"processes": { | ||
"active": 1, | ||
"idle": 2 | ||
}, | ||
"slow_requests": 0 | ||
} | ||
}, | ||
"type": "metricsets" | ||
} |
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,18 +1,21 @@ | ||
package pool | ||
|
||
type poolStats struct { | ||
Pool string `json:"pool"` | ||
ProcessManager string `json:"process manager"` | ||
StartTime int `json:"start time"` | ||
StartSince int `json:"start since"` | ||
AcceptedConn int `json:"accepted conn"` | ||
ListenQueue int `json:"listen queue"` | ||
MaxListenQueue int `json:"max listen queue"` | ||
ListenQueueLen int `json:"listen queue len"` | ||
IdleProcesses int `json:"idle processes"` | ||
ActiveProcesses int `json:"active processes"` | ||
TotalProcesses int `json:"total processes"` | ||
MaxActiveProcesses int `json:"max active processes"` | ||
MaxChildrenReached int `json:"max children reached"` | ||
SlowRequests int `json:"slow requests"` | ||
} | ||
import ( | ||
s "github.com/elastic/beats/metricbeat/schema" | ||
c "github.com/elastic/beats/metricbeat/schema/mapstriface" | ||
) | ||
|
||
var ( | ||
schema = s.Schema{ | ||
"name": c.Str("pool"), | ||
"connections": s.Object{ | ||
"accepted": c.Int("accepted conn"), | ||
"queued": c.Int("listen queue"), | ||
}, | ||
"processes": s.Object{ | ||
"idle": c.Int("idle processes"), | ||
"active": c.Int("active processes"), | ||
}, | ||
"slow_requests": c.Int("slow requests"), | ||
} | ||
) |
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
Oops, something went wrong.