Skip to main content
Glama
driosalido
by driosalido

get_alerts_by_state

Filter Kubernetes alerts by state (active, suppressed, or all) to monitor and analyze alert status using the Karma Alert dashboard.

Instructions

Get alerts filtered by state (active, suppressed, or all)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateYes

Implementation Reference

  • Implementation of the 'get_alerts_by_state' tool, which filters alerts based on the 'state' parameter ('active', 'suppressed', or 'all') by calling the respective list function.
        for matcher_str in matchers.split(","):
            if "=" in matcher_str:
                key, value = matcher_str.split("=", 1)
                silence_matchers.append(
                    {
                        "name": key.strip(),
                        "value": value.strip(),
                        "isRegex": False,
                        "isEqual": True,
                    }
                )
    
    # Create silence request
    {

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/driosalido/mcp-karma'

If you have feedback or need assistance with the MCP directory API, please join our Discord server