Versions in this module Expand all Collapse all v0 v0.0.3 Apr 15, 2022 v0.0.1 Apr 15, 2022 Changes in this version + const BackendDestinationKey + const DefaultLogURLTemplate + const DefaultRequestLogTemplate + const DomainEnv + const EnableProbeReqLogKey + const EnableReqLogKey + const ReqLogTemplateKey + var TestOverrideBundleCount = 0 + func Buckets125(low, high float64) []float64 + func BucketsNBy10(low float64, n int) []float64 + func ClearMetersForTest() + func ConfigMapName() string + func ConfigMapWatcher(ctx context.Context, component string, secrets SecretFetcher, ...) func(*corev1.ConfigMap) + func Domain() string + func FlushExporter() bool + func InitForTesting() + func MaybeInsertBoolTag(key tag.Key, value, cond bool) tag.Mutator + func MaybeInsertIntTag(key tag.Key, value int, cond bool) tag.Mutator + func MaybeInsertStringTag(key tag.Key, value string, cond bool) tag.Mutator + func MemStatsOrDie(ctx context.Context) + func OptionsToJSON(opts *ExporterOptions) (string, error) + func Record(ctx context.Context, ms stats.Measurement, ros ...stats.Options) + func RecordBatch(ctx context.Context, mss ...stats.Measurement) + func RegisterResourceView(views ...*view.View) error + func ResponseCodeClass(responseCode int) string + func UnregisterResourceView(views ...*view.View) + func UpdateExporter(ctx context.Context, ops ExporterOptions, logger *zap.SugaredLogger) error + func UpdateExporterFromConfigMap(ctx context.Context, component string, logger *zap.SugaredLogger) func(configMap *corev1.ConfigMap) + func UpdateExporterFromConfigMapWithOpts(ctx context.Context, opts ExporterOptions, logger *zap.SugaredLogger) (func(configMap *corev1.ConfigMap), error) + type ClientProvider struct + Latency *stats.Float64Measure + Result *stats.Int64Measure + func (cp *ClientProvider) DefaultViews() []*view.View + func (cp *ClientProvider) LatencyView() *view.View + func (cp *ClientProvider) NewLatencyMetric() metrics.LatencyMetric + func (cp *ClientProvider) NewResultMetric() metrics.ResultMetric + func (cp *ClientProvider) ResultView() *view.View + type ExporterOptions struct + Component string + ConfigMap map[string]string + Domain string + PrometheusHost string + PrometheusPort int + Secrets SecretFetcher + func JSONToOptions(jsonOpts string) (*ExporterOptions, error) + type MemStatsProvider struct + Alloc *stats.Int64Measure + BuckHashSys *stats.Int64Measure + Frees *stats.Int64Measure + GCCPUFraction *stats.Float64Measure + GCSys *stats.Int64Measure + HeapAlloc *stats.Int64Measure + HeapIdle *stats.Int64Measure + HeapInuse *stats.Int64Measure + HeapObjects *stats.Int64Measure + HeapReleased *stats.Int64Measure + HeapSys *stats.Int64Measure + LastGC *stats.Int64Measure + Lookups *stats.Int64Measure + MCacheInuse *stats.Int64Measure + MCacheSys *stats.Int64Measure + MSpanInuse *stats.Int64Measure + MSpanSys *stats.Int64Measure + Mallocs *stats.Int64Measure + NextGC *stats.Int64Measure + NumForcedGC *stats.Int64Measure + NumGC *stats.Int64Measure + OtherSys *stats.Int64Measure + PauseTotalNs *stats.Int64Measure + StackInuse *stats.Int64Measure + StackSys *stats.Int64Measure + Sys *stats.Int64Measure + TotalAlloc *stats.Int64Measure + func NewMemStatsAll() *MemStatsProvider + func (msp *MemStatsProvider) DefaultViews() (views []*view.View) + func (msp *MemStatsProvider) Start(ctx context.Context, period time.Duration) + type ObservabilityConfig struct + EnableProbeRequestLog bool + EnableProfiling bool + EnableRequestLog bool + EnableVarLogCollection bool + LoggingURLTemplate string + MetricsCollectorAddress string + RequestLogTemplate string + RequestMetricsBackend string + func NewObservabilityConfigFromConfigMap(configMap *corev1.ConfigMap) (*ObservabilityConfig, error) + func (in *ObservabilityConfig) DeepCopy() *ObservabilityConfig + func (in *ObservabilityConfig) DeepCopyInto(out *ObservabilityConfig) + type ResourceExporterFactory func(*resource.Resource) (view.Exporter, error) + type SecretFetcher func(string) (*corev1.Secret, error) + type WorkqueueProvider struct + Adds *stats.Int64Measure + Depth *stats.Int64Measure + Latency *stats.Float64Measure + LongestRunningProcessorSeconds *stats.Float64Measure + Retries *stats.Int64Measure + UnfinishedWorkSeconds *stats.Float64Measure + WorkDuration *stats.Float64Measure + func (wp *WorkqueueProvider) AddsView() *view.View + func (wp *WorkqueueProvider) DefaultViews() []*view.View + func (wp *WorkqueueProvider) DepthView() *view.View + func (wp *WorkqueueProvider) LatencyView() *view.View + func (wp *WorkqueueProvider) LongestRunningProcessorSecondsView() *view.View + func (wp *WorkqueueProvider) NewAddsMetric(name string) workqueue.CounterMetric + func (wp *WorkqueueProvider) NewDeprecatedAddsMetric(name string) workqueue.CounterMetric + func (wp *WorkqueueProvider) NewDeprecatedDepthMetric(name string) workqueue.GaugeMetric + func (wp *WorkqueueProvider) NewDeprecatedLatencyMetric(name string) workqueue.SummaryMetric + func (wp *WorkqueueProvider) NewDeprecatedLongestRunningProcessorMicrosecondsMetric(name string) workqueue.SettableGaugeMetric + func (wp *WorkqueueProvider) NewDeprecatedRetriesMetric(name string) workqueue.CounterMetric + func (wp *WorkqueueProvider) NewDeprecatedUnfinishedWorkSecondsMetric(name string) workqueue.SettableGaugeMetric + func (wp *WorkqueueProvider) NewDeprecatedWorkDurationMetric(name string) workqueue.SummaryMetric + func (wp *WorkqueueProvider) NewDepthMetric(name string) workqueue.GaugeMetric + func (wp *WorkqueueProvider) NewLatencyMetric(name string) workqueue.HistogramMetric + func (wp *WorkqueueProvider) NewLongestRunningProcessorSecondsMetric(name string) workqueue.SettableGaugeMetric + func (wp *WorkqueueProvider) NewRetriesMetric(name string) workqueue.CounterMetric + func (wp *WorkqueueProvider) NewUnfinishedWorkSecondsMetric(name string) workqueue.SettableGaugeMetric + func (wp *WorkqueueProvider) NewWorkDurationMetric(name string) workqueue.HistogramMetric + func (wp *WorkqueueProvider) RetriesView() *view.View + func (wp *WorkqueueProvider) UnfinishedWorkSecondsView() *view.View + func (wp *WorkqueueProvider) WorkDurationView() *view.View