prometheus

package
v0.0.0-...-5632959 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestnetName = cli.StringFlag{
		Name:  "testnet",
		Usage: "ID of the testnet to target",
	}
	Query = cli.StringFlag{
		Name:  "query",
		Usage: "Prometheus query",
	}
	Pretty = cli.BoolFlag{
		Name:  "pretty",
		Usage: "Pretty print",
	}
	TestOutputFile = cli.StringFlag{
		Name:  "testoutput",
		Usage: "JUnit XML output file",
	}
)
View Source
var (
	PrometheusCommand = cli.Command{
		Name:        "prometheus",
		Usage:       "Commands to query Prometheus",
		Description: `Commands to query and interpret Prometheus data`,
		Subcommands: []cli.Command{
			cli.Command{
				Name:        "query",
				Usage:       "Queries Prometheus",
				Description: `Queries Prometheus data`,
				Action:      queryPrometheus,
				Flags: []cli.Flag{
					TestnetName,
					Query,
					Pretty,
				},
			},
			cli.Command{
				Name:        "up",
				Usage:       "check nodes in the testnet",
				Description: "Queries Prometheus to check nodes in the testnet are reporting",
				Action:      checkPrometheusUp,
				Flags: []cli.Flag{
					TestnetName,
					TestOutputFile,
				},
			},
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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