mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-22 03:44:55 +00:00
PT-1741 Migrated Go pt-mongo-tools to new driver
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
package templates
|
||||
|
||||
const BalancerStats = `
|
||||
{{ if . -}}
|
||||
# Balancer (per day)
|
||||
Success: {{.Success}}
|
||||
Failed: {{.Failed}}
|
||||
Splits: {{.Splits}}
|
||||
Drops: {{.Drops}}
|
||||
{{- end -}}
|
||||
`
|
||||
|
@@ -1,6 +1,7 @@
|
||||
package templates
|
||||
|
||||
const Clusterwide = `
|
||||
{{ if . -}}
|
||||
# Cluster wide ###########################################################################################
|
||||
Databases: {{.TotalDBsCount}}
|
||||
Collections: {{.TotalCollectionsCount}}
|
||||
@@ -16,4 +17,5 @@ Unsharded Collections: {{.UnshardedColsCount}}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
`
|
||||
|
@@ -19,7 +19,7 @@ const HostInfo = `# This host
|
||||
{{- end }}
|
||||
Processes | {{.ProcProcessCount}}
|
||||
Process Type | {{.NodeType}}
|
||||
{{ if .ReplicaSetName -}}
|
||||
{{ if .ReplicasetName -}}
|
||||
ReplSet | {{.ReplicasetName}}
|
||||
Repl Status |
|
||||
{{- end -}}
|
||||
|
@@ -2,7 +2,6 @@ package templates
|
||||
|
||||
const RunningOps = `
|
||||
# Running Ops ############################################################################################
|
||||
|
||||
Type Min Max Avg
|
||||
Insert {{printf "% 8d" .Insert.Min}} {{printf "% 8d" .Insert.Max}} {{printf "% 8d" .Insert.Avg}}/{{.SampleRate}}
|
||||
Query {{printf "% 8d" .Query.Min}} {{printf "% 8d" .Query.Max}} {{printf "% 8d" .Query.Avg}}/{{.SampleRate}}
|
||||
|
Reference in New Issue
Block a user