Various code cleanups (#8889)

This commit is contained in:
terence tsao
2021-05-12 23:29:14 -07:00
committed by GitHub
parent 4ef5c9ad15
commit bc27a73600
14 changed files with 22 additions and 36 deletions

View File

@@ -7,22 +7,22 @@ import (
)
var (
// BeaconCertFlag defines a flag for the beacon api certificate.
// ValidatorMetricsURLFlag defines a flag for the URL to the validator /metrics prometheus endpoint to scrape.
ValidatorMetricsURLFlag = &cli.StringFlag{
Name: "validator-metrics-url",
Usage: "Full URL to the validator /metrics prometheus endpoint to scrape. eg http://localhost:8081/metrics",
}
// BeaconRPCProviderFlag defines a flag for the beacon host ip or address.
// BeaconnodeMetricsURLFlag defines a flag for the URL to the beacon-node /metrics prometheus endpoint to scraps.
BeaconnodeMetricsURLFlag = &cli.StringFlag{
Name: "beacon-node-metrics-url",
Usage: "Full URL to the beacon-node /metrics prometheus endpoint to scrape. eg http://localhost:8080/metrics",
}
// CertFlag defines a flag for the node's TLS certificate.
// ClientStatsAPIURLFlag defines a flag for the URL to the client stats endpoint where collected metrics should be sent.
ClientStatsAPIURLFlag = &cli.StringFlag{
Name: "clientstats-api-url",
Usage: "Full URL to the client stats endpoint where collected metrics should be sent.",
}
// CertFlag defines a flag for the node's TLS certificate.
// ScrapeIntervalFlag defines a flag for the frequency of scraping.
ScrapeIntervalFlag = &cli.DurationFlag{
Name: "scrape-interval",
Usage: "Frequency of scraping expressed as a duration, eg 2m or 1m5s. Default is 60s.",