FormatFlagName is the canonical flag name to configure the log format within Prometheus projects.
const FormatFlagName = "log.format"
LevelFlagName is the canonical flag name to configure the allowed log level within Prometheus projects.
const LevelFlagName = "log.level"
FormatFlagHelp is the help description for the log.format flag.
var FormatFlagHelp = "Output format of log messages. One of: [" + strings.Join(promlog.FormatFlagOptions, ", ") + "]"
LevelFlagHelp is the help description for the log.level flag.
var LevelFlagHelp = "Only log messages with the given severity or above. One of: [" + strings.Join(promlog.LevelFlagOptions, ", ") + "]"
func AddFlags(a *kingpin.Application, config *promlog.Config)
AddFlags adds the flags used by this package to the Kingpin application. To use the default Kingpin application, call AddFlags(kingpin.CommandLine)