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 Exporter ¶
type Exporter interface { // Run initializes metrics exporter Run(context.Context) error // Options returns Exporter options Options() *Options }
Exporter is the interface for metrics exporters.
func NewExporter ¶
NewExporter creates new MetricsExporter instance.
type Options ¶
type Options struct { // MetricsEnabled indicates whether a metrics server should be started. MetricsEnabled bool // Port to start metrics server on. Port string }
Options defines the sets of options for exporting metrics.
func DefaultMetricOptions ¶ added in v1.12.0
func DefaultMetricOptions() *Options
func (*Options) AttachCmdFlag ¶ added in v0.11.0
func (o *Options) AttachCmdFlag( stringVar func(p *string, name string, value string, usage string), )
AttachCmdFlag attaches single metrics option to command flags.
Click to show internal directories.
Click to hide internal directories.