github.com/prysmaticlabs/prysm@v1.4.4/cmd/client-stats/flags/flags.go (about)

     1  // Package flags contains all configuration runtime flags for
     2  // the client-stats daemon.
     3  package flags
     4  
     5  import (
     6  	"time"
     7  
     8  	"github.com/urfave/cli/v2"
     9  )
    10  
    11  var (
    12  	// ValidatorMetricsURLFlag defines a flag for the URL to the validator /metrics prometheus endpoint to scrape.
    13  	ValidatorMetricsURLFlag = &cli.StringFlag{
    14  		Name:  "validator-metrics-url",
    15  		Usage: "Full URL to the validator /metrics prometheus endpoint to scrape. eg http://localhost:8081/metrics",
    16  	}
    17  	// BeaconnodeMetricsURLFlag defines a flag for the URL to the beacon-node /metrics prometheus endpoint to scraps.
    18  	BeaconnodeMetricsURLFlag = &cli.StringFlag{
    19  		Name:  "beacon-node-metrics-url",
    20  		Usage: "Full URL to the beacon-node /metrics prometheus endpoint to scrape. eg http://localhost:8080/metrics",
    21  	}
    22  	// ClientStatsAPIURLFlag defines a flag for the URL to the client stats endpoint where collected metrics should be sent.
    23  	ClientStatsAPIURLFlag = &cli.StringFlag{
    24  		Name:  "clientstats-api-url",
    25  		Usage: "Full URL to the client stats endpoint where collected metrics should be sent.",
    26  	}
    27  	// ScrapeIntervalFlag defines a flag for the frequency of scraping.
    28  	ScrapeIntervalFlag = &cli.DurationFlag{
    29  		Name:  "scrape-interval",
    30  		Usage: "Frequency of scraping expressed as a duration, eg 2m or 1m5s.",
    31  		Value: 60 * time.Second,
    32  	}
    33  )