mackerunn

package module
v0.0.0-...-36e9d17 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 7 Imported by: 0

README

Mackerunn

"Mackerunn" executes scenario monitoring using runn and sends the results to Mackerel.

Usage

mackerunn
$ export MACKERUNN_MACKEREL_APIKEY="your_api_key"
$ go run ./cmd/mackerunn -runbook testdata/test.yml -service test -hostID 12345ABCD
2023/11/23 16:13:23 succeeded
mackerunnd

Execute mackerunn for every minute.

$ export MACKERUNN_MACKEREL_APIKEY="your_api_key"
$ go run ./cmd/mackerunnd -runbook testdata/test.yml -service test -hostID 12345ABCD
2023/11/23 16:13:23 succeeded
2023/11/23 16:14:23 succeeded
2023/11/23 16:15:23 succeeded
2023/11/23 16:16:23 succeeded
2023/11/23 16:17:23 succeeded

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(opt *RunnerOption) *Runner

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

type RunnerOption

type RunnerOption struct {
	MackerelApiKey      string
	MackerelHostID      string
	MackerelServiceName string
	RunnRunbookPath     string
}

Directories

Path Synopsis
cmd
mackerunn command
mackerunnd command
internal

Jump to

Keyboard shortcuts

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