mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-22 20:19:00 +00:00
moving mongodb code into toolkit repo
This commit is contained in:
26
src/go/pt-mongodb-summary/templates/hostinfo.go
Normal file
26
src/go/pt-mongodb-summary/templates/hostinfo.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package templates
|
||||
|
||||
const HostInfo = `# This host
|
||||
# Mongo Executable #############################################################################
|
||||
Path to executable | {{.ProcPath}}
|
||||
Has symbols | No
|
||||
# Report On {{.ThisHostID}} ########################################
|
||||
User | {{.ProcUserName}}
|
||||
PID Owner | {{.ProcessName}}
|
||||
Time | {{.ProcCreateTime}}
|
||||
Hostname | {{.Hostname}}
|
||||
Version | {{.Version}}
|
||||
Built On | {{.HostOsType}} {{.HostSystemCPUArch}}
|
||||
Started | {{.ProcCreateTime}}
|
||||
Databases | {{.HostDatabases}}
|
||||
Collections | {{.HostCollections}}
|
||||
{{- if .DBPath }}
|
||||
Datadir | {{.DBPath}}
|
||||
{{- end }}
|
||||
Processes | {{.ProcProcessCount}}
|
||||
Process Type | {{.NodeType}}
|
||||
{{ if .ReplicaSetName -}}
|
||||
ReplSet | {{.ReplicasetName}}
|
||||
Repl Status |
|
||||
{{- end -}}
|
||||
`
|
Reference in New Issue
Block a user