PT-1741 Migrated Go pt-mongo-tools to new driver

This commit is contained in:
Carlos Salguero
2019-08-02 11:53:39 -03:00
parent e3409c720f
commit c388bbc01c
34 changed files with 1791 additions and 1304 deletions

View File

@@ -1,9 +1,11 @@
package templates
const BalancerStats = `
{{ if . -}}
# Balancer (per day)
Success: {{.Success}}
Failed: {{.Failed}}
Splits: {{.Splits}}
Drops: {{.Drops}}
{{- end -}}
`

View File

@@ -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 -}}
`

View File

@@ -19,7 +19,7 @@ const HostInfo = `# This host
{{- end }}
Processes | {{.ProcProcessCount}}
Process Type | {{.NodeType}}
{{ if .ReplicaSetName -}}
{{ if .ReplicasetName -}}
ReplSet | {{.ReplicasetName}}
Repl Status |
{{- end -}}

View File

@@ -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}}