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.
Click to show internal directories.
Click to hide internal directories.