observability

package
v0.0.1-rc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Server

func Server(c *cli.Context)

Server starts the metrics server on the given address, will be closed when the given context is canceled.

func Use

func Use(router *gin.Engine, metricsPrefix string, reg prometheus.Registerer)

Use register the gin metric

Types

type ProbesController

type ProbesController struct{}

ProbesController probe check controller

func NewProbesController

func NewProbesController() *ProbesController

NewProbesController returns an ProbesController instance

func (*ProbesController) HealthCheck

func (a *ProbesController) HealthCheck(c *gin.Context)

HealthCheck the api controller for health check

func (*ProbesController) Ready

func (a *ProbesController) Ready(c *gin.Context)

Ready the api controller for ready check

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL