keyhole

package module
v1.0.3-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 23 Imported by: 1

README

Keyhole - Survey Your Mongo Land

Keyhole is a performance analytics tool, written in GO (Golang), to collect stats from MongoDB instances and to analyze performance of a MongoDB cluster. Golang was chosen to eliminate the needs to install an interpreter or software modules.

Blogs

Peek at your MongoDB Clusters like a Pro with Keyhole

Use Cases

With Keyhole, experienced users should be able to spot performance issues and to determine whether upgrades are needed quickly from a few minutes of testing and analyzing the results. Keyhole supports TLS/SSL connections.

Several features are available, and they are

Refer to wiki for user's guide.

Build

You need go installed.

mkdir -p $GOPATH/src/github.com/simagix
cd $GOPATH/src/github.com/simagix
git clone --depth 1 https://github.com/simagix/keyhole.git
cd keyhole
./build.sh

Usage

keyhole --help

Unit Tests

./test.sh load

License

Apache-2.0 License

Disclaimer

This software is not supported by MongoDB, Inc. under any of their commercial support subscriptions or otherwise. Any usage of keyhole is at your own risk. Bug reports, feature requests and questions can be posted in the Issues section on GitHub.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(fullVersion string)

Run executes main()

Types

type Comparison

type Comparison struct {
	Logger      *mdb.Logger       `bson:"keyhole"`
	SourceStats *mdb.ClusterStats `bson:"source"`
	TargetStats *mdb.ClusterStats `bson:"target"`
	// contains filtered or unexported fields
}

Comparison contains parameters of comparison parameters

func NewComparison

func NewComparison(keyholeVersion string) *Comparison

NewComparison returns *Comparison

func (*Comparison) OutputBSON

func (p *Comparison) OutputBSON() error

OutputBSON writes bson data to a file

func (*Comparison) Run

func (p *Comparison) Run() error

Run executes migration commands

func (*Comparison) SetNoColor

func (p *Comparison) SetNoColor(nocolor bool)

SetNoColor set nocolor flag

func (*Comparison) SetTLSCAFile

func (p *Comparison) SetTLSCAFile(tlsCAFile string)

SetTLSCAFile sets cloneDataOnly

func (*Comparison) SetTLSCertificateKeyFile

func (p *Comparison) SetTLSCertificateKeyFile(tlsCertificateKeyFile string)

SetTLSCertificateKeyFile sets cloneDataOnly

func (*Comparison) SetVerbose

func (p *Comparison) SetVerbose(verbose bool)

SetVerbose sets verbose

Directories

Path Synopsis
sim

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL