app

package
v0.0.0-...-88f96ff Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApp

func NewApp(options *Options) *app

Types

type Options

type Options struct {
	Username        string        `long:"username" description:"Your Atlas Username" required:"true"`
	APIKey          string        `long:"api_key" description:"Your Atlas API Key" required:"true"`
	GroupID         string        `long:"group_id" description:"Your Atlas Group ID" required:"true"`
	Clusters        []string      `long:"cluster" description:"Cluster to gather logs from. Maybe specified multiple times." required:"true"`
	APIHost         string        `long:"api_host" description:"Hostname for the Honeycomb API server" default:"https://api.honeycomb.io/"`
	WriteKey        string        `long:"writekey" description:"Your Honeycomb write key." required:"true"`
	Dataset         string        `long:"dataset" description:"Target Honeycomb dataset" default:"mongodb-atlas-logs"`
	NumParsers      int           `long:"num_parsers" description:"Number of parsers to use in parallel to process log lines" default:"4"`
	PollingInterval time.Duration `long:"polling_interval" description:"Time between each request to the Atlas API for more logs." default:"5m"`
}

Jump to

Keyboard shortcuts

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