package flag

import "github.com/prometheus/common/promslog/flag"

Index

Constants

const FormatFlagName = "log.format"

FormatFlagName is the canonical flag name to configure the log format within Prometheus projects.

const LevelFlagName = "log.level"

LevelFlagName is the canonical flag name to configure the allowed log level within Prometheus projects.

Variables

var FormatFlagHelp = "Output format of log messages. One of: [" + strings.Join(promslog.FormatFlagOptions, ", ") + "]"

FormatFlagHelp is the help description for the log.format flag.

var LevelFlagHelp = "Only log messages with the given severity or above. One of: [" + strings.Join(promslog.LevelFlagOptions, ", ") + "]"

LevelFlagHelp is the help description for the log.level flag.

Functions

func AddFlags

func AddFlags(a *kingpin.Application, config *promslog.Config)

AddFlags adds the flags used by this package to the Kingpin application. To use the default Kingpin application, call AddFlags(kingpin.CommandLine)

Source Files

flag.go

Version
v0.63.0 (latest)
Published
Mar 13, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
2 hours ago

Tools for package owners.