aperture: add basic gRPC prometheus scraping for hashmail server

This commit is contained in:
Olaoluwa Osuntokun
2021-11-29 20:22:11 -08:00
parent 28e6b624cc
commit dd485d9a8e
3 changed files with 33 additions and 1 deletions

View File

@@ -64,6 +64,10 @@ type HashMailConfig struct {
Enabled bool `long:"enabled"`
MessageRate time.Duration `long:"messagerate" description:"The average minimum time that should pass between each message."`
MessageBurstAllowance int `long:"messageburstallowance" description:"The burst rate we allow for messages."`
// PromListenAddr is the listening address that we should use to allow
// the main Prometheus server to scrape our metrics.
PromListenAddr string `long:"promlistenaddr" description:"the interface we should listen on for prometheus"`
}
type TorConfig struct {