openclaw-grafana-lens
Version:
OpenClaw plugin that gives AI agents full Grafana access — 18 composable tools for PromQL/LogQL/TraceQL queries, dashboard creation, alerting, SRE investigation, security monitoring, data collection pipeline management via Grafana Alloy (29 recipes), and
33 lines (32 loc) • 1.02 kB
TypeScript
/**
* grafana_security_check tool
*
* Runs a comprehensive security health check against Grafana metrics and logs.
* Executes 6 PromQL + 1 LogQL queries in parallel using Promise.allSettled,
* then returns a unified threat-level report.
*
* Detection-only: never blocks, terminates, or modifies anything.
* Honest about limitations: auth failures are invisible to this tool.
*/
import { GrafanaClientRegistry } from "../grafana-client-registry.js";
export declare function createSecurityCheckToolFactory(registry: GrafanaClientRegistry): (_ctx: unknown) => {
name: string;
label: string;
description: string;
parameters: {
type: "object";
properties: {
lookback: {
type: string;
description: string;
};
};
};
execute(_toolCallId: string, params: Record<string, unknown>): Promise<{
content: Array<{
type: "text";
text: string;
}>;
details: unknown;
}>;
};