Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultMetricNamespace is the prefix of metric name.
DefaultMetricNamespace = "dapr"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlagOptions ¶ added in v1.14.0
type FlagOptions struct {
// contains filtered or unexported fields
}
func DefaultFlagOptions ¶ added in v1.14.0
func DefaultFlagOptions() *FlagOptions
func (*FlagOptions) AttachCmdFlags ¶ added in v1.14.0
func (f *FlagOptions) AttachCmdFlags( stringVar func(p *string, name string, value string, usage string), boolVar func(p *bool, name string, value bool, usage string), )
AttachCmdFlag attaches single metrics option to command flags.
func (*FlagOptions) Enabled ¶ added in v1.14.0
func (f *FlagOptions) Enabled() bool
func (*FlagOptions) Port ¶ added in v1.14.0
func (f *FlagOptions) Port() string
type Options ¶
type Options struct { // Log is the metrics logger. Log logger.Logger // Enabled indicates whether a metrics server should be started. Enabled bool // Namespace is the prometheus exporter namespace. Namespace string // Port to start metrics server on. Port string // ListenAddress is the address that the metrics server listens on. ListenAddress string // Healthz is used to signal the health of the metrics server. Healthz healthz.Healthz }
Options defines the sets of options for exporting metrics.
func (*Options) MetricsListenAddress ¶ added in v1.14.0
MetricsListenAddress gets metrics listen address.
Click to show internal directories.
Click to hide internal directories.