monitoring

package
v0.0.0-...-c53624e Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PgxPoolSelectCheck

func PgxPoolSelectCheck(database *pgxpool.Pool, timeout time.Duration) healthcheck.Check

PgxPoolSelectCheck returns a Check that validates connectivity to a database/pgxpool.Pool using 'SELECT 1' query.

func RedisPingCheck

func RedisPingCheck(client *redis.Client, timeout time.Duration) healthcheck.Check

RedisPingCheck returns a Check that validates connectivity to a Redis server using Ping().

func RunServer

func RunServer(port string, dbPool *pgxpool.Pool, redisClient *redis.Client)

RunServer starts and exposes the monitoring (health and metrics) endpoints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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