Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PanicRecoveryCounter = promauto.NewCounter(prometheus.CounterOpts{
Name: "panic_recoveries_total",
Help: "Total number of panic recoveries",
})
)
Counters.
Functions ¶
This section is empty.
Types ¶
type MetricExporter ¶
type MetricExporter struct {
*otlpmetricgrpc.Exporter
}
func NewMetricExporter ¶
func NewMetricExporter(ctx context.Context, args observability.NewExporterArgs) *MetricExporter
func (*MetricExporter) GracefulShutdown ¶
func (m *MetricExporter) GracefulShutdown()
Flushes all unexported metrics, garcefully shutting down the metric exporter.
type MetricsServer ¶
func NewMetricsServer ¶
func NewMetricsServer(port int) *MetricsServer
Creates and returns an HTTP metrics server. The global Prometheus registry gets initialized here.
func (*MetricsServer) GracefulShutdown ¶
func (m *MetricsServer) GracefulShutdown(ctx context.Context)
Tries to shut down the HTTP metrics server.
Click to show internal directories.
Click to hide internal directories.