observability

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package observability provides shared setup and helpers for standalone observability integration tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetObservabilityMeasureTags added in v0.11.1

func GetObservabilityMeasureTags(metricName string) ([]string, error)

GetObservabilityMeasureTags returns the tag names declared on a _monitoring measure schema.

func Setup

func Setup()

Setup initializes the shared standalone BanyanDB instance with native observability enabled.

Types

type Point

type Point struct {
	Tags  map[string]string
	Value float64
}

Point represents a simplified view of a datapoint in the _monitoring group.

func QueryObservabilityMeasure

func QueryObservabilityMeasure(metricName string, tagNames ...string) ([]Point, error)

QueryObservabilityMeasure queries a measure from the _monitoring group and returns flattened datapoints. tagNames are additional tag names to project beyond the default entity tags (node_type, node_id, grpc_address, http_address). For example, cpu_state and memory_state need "kind"; disk needs "path" and "kind".

Jump to

Keyboard shortcuts

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