tools

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteInstantQueryHandler

func ExecuteInstantQueryHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)

ExecuteInstantQueryHandler handles the execution of Prometheus instant queries.

func ExecuteRangeQueryHandler

func ExecuteRangeQueryHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)

ExecuteRangeQueryHandler handles the execution of Prometheus range queries.

func GetAlertsHandler

func GetAlertsHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)

GetAlertsHandler handles the retrieval of alerts from Alertmanager.

func GetLabelNamesHandler

func GetLabelNamesHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)

GetLabelNamesHandler handles the retrieval of label names.

func GetLabelValuesHandler

func GetLabelValuesHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)

GetLabelValuesHandler handles the retrieval of label values.

func GetSeriesHandler

func GetSeriesHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)

GetSeriesHandler handles the retrieval of time series.

func GetSilencesHandler

func GetSilencesHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)

GetSilencesHandler handles the retrieval of silences from Alertmanager.

func InitExecuteInstantQuery

func InitExecuteInstantQuery() []api.ServerTool

InitExecuteInstantQuery creates the execute_instant_query tool.

func InitExecuteRangeQuery

func InitExecuteRangeQuery() []api.ServerTool

InitExecuteRangeQuery creates the execute_range_query tool.

func InitGetAlerts

func InitGetAlerts() []api.ServerTool

InitGetAlerts creates the get_alerts tool.

func InitGetLabelNames

func InitGetLabelNames() []api.ServerTool

InitGetLabelNames creates the get_label_names tool.

func InitGetLabelValues

func InitGetLabelValues() []api.ServerTool

InitGetLabelValues creates the get_label_values tool.

func InitGetSeries

func InitGetSeries() []api.ServerTool

InitGetSeries creates the get_series tool.

func InitGetSilences

func InitGetSilences() []api.ServerTool

InitGetSilences creates the get_silences tool.

func InitListMetrics

func InitListMetrics() []api.ServerTool

InitListMetrics creates the list_metrics tool.

func ListMetricsHandler

func ListMetricsHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)

ListMetricsHandler handles the listing of available Prometheus metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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