Documentation
¶
Index ¶
- func ExecuteInstantQueryHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)
- func ExecuteRangeQueryHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)
- func GetAlertsHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)
- func GetLabelNamesHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)
- func GetLabelValuesHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)
- func GetSeriesHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)
- func GetSilencesHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)
- func InitExecuteInstantQuery() []api.ServerTool
- func InitExecuteRangeQuery() []api.ServerTool
- func InitGetAlerts() []api.ServerTool
- func InitGetLabelNames() []api.ServerTool
- func InitGetLabelValues() []api.ServerTool
- func InitGetSeries() []api.ServerTool
- func InitGetSilences() []api.ServerTool
- func InitListMetrics() []api.ServerTool
- func ListMetricsHandler(params api.ToolHandlerParams) (*api.ToolCallResult, error)
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.