{"id":39617884,"url":"https://github.com/inference-gateway/grafana-agent","last_synced_at":"2026-01-18T08:21:22.967Z","repository":{"id":324178901,"uuid":"1096240485","full_name":"inference-gateway/grafana-agent","owner":"inference-gateway","description":"A2A agent server for grafana dashboards automation tasks","archived":false,"fork":false,"pushed_at":"2025-11-14T07:42:10.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-14T09:19:13.134Z","etag":null,"topics":["a2a","a2a-protocol","a2a-server"],"latest_commit_sha":null,"homepage":"https://registry.inference-gateway.com/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inference-gateway.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-11-14T06:13:02.000Z","updated_at":"2025-11-14T07:42:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/inference-gateway/grafana-agent","commit_stats":null,"previous_names":["inference-gateway/grafana-agent"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/inference-gateway/grafana-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inference-gateway%2Fgrafana-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inference-gateway%2Fgrafana-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inference-gateway%2Fgrafana-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inference-gateway%2Fgrafana-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inference-gateway","download_url":"https://codeload.github.com/inference-gateway/grafana-agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inference-gateway%2Fgrafana-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["a2a","a2a-protocol","a2a-server"],"created_at":"2026-01-18T08:21:22.524Z","updated_at":"2026-01-18T08:21:22.956Z","avatar_url":"https://github.com/inference-gateway.png","language":null,"funding_links":[],"categories":["🤖 Agents"],"sub_categories":["📊 DevOps \u0026 Observability"],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Grafana-Agent\n[![CI](https://github.com/inference-gateway/grafana-agent/workflows/CI/badge.svg)](https://github.com/inference-gateway/grafana-agent/actions/workflows/ci.yml)\n[![Go Version](https://img.shields.io/badge/Go-1.25+-00ADD8?style=flat\u0026logo=go)](https://golang.org)\n[![A2A Protocol](https://img.shields.io/badge/A2A-Protocol-blue?style=flat)](https://github.com/inference-gateway/adk)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n**A2A agent server for grafana dashboards automation tasks**\n\nA enterprise-ready [Agent-to-Agent (A2A)](https://github.com/inference-gateway/adk) server that provides AI-powered capabilities through a standardized protocol.\n\n\u003c/div\u003e\n\n## Quick Start\n\n```bash\n# Run the agent\ngo run .\n\n# Or with Docker\ndocker build -t grafana-agent .\ndocker run -p 8080:8080 grafana-agent\n```\n\n## Quick Install\n\nAdd this agent to your Inference Gateway CLI:\n\n```bash\ninfer agents add grafana-agent http://localhost:8080 \\\n  --oci ghcr.io/inference-gateway/grafana-agent:latest \\\n  --run\n```\n\n## Features\n\n- ✅ A2A protocol compliant\n- ✅ AI-powered capabilities\n- ✅ Streaming support\n- ✅ Enterprise-ready\n- ✅ Minimal dependencies\n\n## Endpoints\n\n- `GET /.well-known/agent-card.json` - Agent metadata and capabilities\n- `GET /health` - Health check endpoint\n- `POST /a2a` - A2A protocol endpoint\n\n## Available Skills\n\n| Skill | Description | Parameters |\n|-------|-------------|------------|\n| `discover_metrics` | Discovers available metrics from a Prometheus endpoint with optional filtering | metric_type, name_pattern, prometheus_url |\n| `generate_promql_queries` | Generates PromQL query suggestions for given metric names by querying Prometheus metadata | metric_names, prometheus_url |\n| `validate_promql_query` | Validates a PromQL query against a Prometheus server | prometheus_url, query |\n| `create_dashboard` | Creates a Grafana dashboard with specified panels, queries, and configurations | dashboard_title, deploy, description, grafana_url, panels, refresh_interval, tags, time_range, variables |\n| `deploy_dashboard` | Deploys a dashboard JSON to Grafana (Cloud or self-hosted) | dashboard_json, folder_uid, grafana_url, message, overwrite |\n\n## Configuration\n\nConfigure the agent via environment variables:\n\n### Custom Configuration\n\nThe following custom configuration variables are available:\n\n| Category | Variable | Description | Default |\n|----------|----------|-------------|---------|\n| **Grafana** | `GRAFANA_API_KEY` | ApiKey configuration | `` |\n| **Grafana** | `GRAFANA_DEPLOY_ENABLED` | DeployEnabled configuration | `false` |\n| **Grafana** | `GRAFANA_ORG_ID` | OrgID configuration | `` |\n| **Grafana** | `GRAFANA_URL` | Url configuration | `` |\n\n| Category | Variable | Description | Default |\n|----------|----------|-------------|---------|\n| **Server** | `A2A_PORT` | Server port | `8080` |\n| **Server** | `A2A_DEBUG` | Enable debug mode | `false` |\n| **Server** | `A2A_AGENT_URL` | Agent URL for internal references | `http://localhost:8080` |\n| **Server** | `A2A_STREAMING_STATUS_UPDATE_INTERVAL` | Streaming status update frequency | `1s` |\n| **Server** | `A2A_SERVER_READ_TIMEOUT` | HTTP server read timeout | `120s` |\n| **Server** | `A2A_SERVER_WRITE_TIMEOUT` | HTTP server write timeout | `120s` |\n| **Server** | `A2A_SERVER_IDLE_TIMEOUT` | HTTP server idle timeout | `120s` |\n| **Server** | `A2A_SERVER_DISABLE_HEALTHCHECK_LOG` | Disable logging for health check requests | `true` |\n| **Agent Metadata** | `A2A_AGENT_CARD_FILE_PATH` | Path to agent card JSON file | `.well-known/agent-card.json` |\n| **LLM Client** | `A2A_AGENT_CLIENT_PROVIDER` | LLM provider (`openai`, `anthropic`, `azure`, `ollama`, `deepseek`) |`` |\n| **LLM Client** | `A2A_AGENT_CLIENT_MODEL` | Model to use |`` |\n| **LLM Client** | `A2A_AGENT_CLIENT_API_KEY` | API key for LLM provider | - |\n| **LLM Client** | `A2A_AGENT_CLIENT_BASE_URL` | Custom LLM API endpoint | - |\n| **LLM Client** | `A2A_AGENT_CLIENT_TIMEOUT` | Timeout for LLM requests | `30s` |\n| **LLM Client** | `A2A_AGENT_CLIENT_MAX_RETRIES` | Maximum retries for LLM requests | `3` |\n| **LLM Client** | `A2A_AGENT_CLIENT_MAX_CHAT_COMPLETION_ITERATIONS` | Max chat completion rounds | `10` |\n| **LLM Client** | `A2A_AGENT_CLIENT_MAX_TOKENS` | Maximum tokens for LLM responses |`4096` |\n| **LLM Client** | `A2A_AGENT_CLIENT_TEMPERATURE` | Controls randomness of LLM output |`0.7` |\n| **Capabilities** | `A2A_CAPABILITIES_STREAMING` | Enable streaming responses | `true` |\n| **Capabilities** | `A2A_CAPABILITIES_PUSH_NOTIFICATIONS` | Enable push notifications | `false` |\n| **Capabilities** | `A2A_CAPABILITIES_STATE_TRANSITION_HISTORY` | Track state transitions | `false` |\n| **Task Management** | `A2A_TASK_RETENTION_MAX_COMPLETED_TASKS` | Max completed tasks to keep (0 = unlimited) | `100` |\n| **Task Management** | `A2A_TASK_RETENTION_MAX_FAILED_TASKS` | Max failed tasks to keep (0 = unlimited) | `50` |\n| **Task Management** | `A2A_TASK_RETENTION_CLEANUP_INTERVAL` | Cleanup frequency (0 = manual only) | `5m` |\n| **Storage** | `A2A_QUEUE_PROVIDER` | Storage backend (`memory` or `redis`) | `memory` |\n| **Storage** | `A2A_QUEUE_URL` | Redis connection URL (when using Redis) | - |\n| **Storage** | `A2A_QUEUE_MAX_SIZE` | Maximum queue size | `100` |\n| **Storage** | `A2A_QUEUE_CLEANUP_INTERVAL` | Task cleanup interval | `30s` |\n| **Artifacts** | `ARTIFACTS_ENABLE` | Enable artifacts support | `false` |\n| **Artifacts** | `ARTIFACTS_SERVER_HOST` | Artifacts server host | `localhost` |\n| **Artifacts** | `ARTIFACTS_SERVER_PORT` | Artifacts server port | `8081` |\n| **Artifacts** | `ARTIFACTS_STORAGE_PROVIDER` | Storage backend (`filesystem` or `minio`) | `filesystem` |\n| **Artifacts** | `ARTIFACTS_STORAGE_BASE_PATH` | Base path for filesystem storage | `./artifacts` |\n| **Artifacts** | `ARTIFACTS_STORAGE_BASE_URL` | Override base URL for direct downloads | (auto-generated) |\n| **Artifacts** | `ARTIFACTS_STORAGE_ENDPOINT` | MinIO/S3 endpoint URL | - |\n| **Artifacts** | `ARTIFACTS_STORAGE_ACCESS_KEY` | MinIO/S3 access key | - |\n| **Artifacts** | `ARTIFACTS_STORAGE_SECRET_KEY` | MinIO/S3 secret key | - |\n| **Artifacts** | `ARTIFACTS_STORAGE_BUCKET_NAME` | MinIO/S3 bucket name | `artifacts` |\n| **Artifacts** | `ARTIFACTS_STORAGE_USE_SSL` | Use SSL for MinIO/S3 connections | `true` |\n| **Artifacts** | `ARTIFACTS_RETENTION_MAX_ARTIFACTS` | Max artifacts per task (0 = unlimited) | `5` |\n| **Artifacts** | `ARTIFACTS_RETENTION_MAX_AGE` | Max artifact age (0 = no age limit) | `168h` |\n| **Artifacts** | `ARTIFACTS_RETENTION_CLEANUP_INTERVAL` | Cleanup frequency (0 = manual only) | `24h` |\n| **Authentication** | `A2A_AUTH_ENABLE` | Enable OIDC authentication | `false` |\n\n## Development\n\n```bash\n# Generate code from ADL\ntask generate\n\n# Run tests\ntask test\n\n# Build the application\ntask build\n\n# Run linter\ntask lint\n\n# Format code\ntask fmt\n```\n\n### Debugging\n\nUse the [A2A Debugger](https://github.com/inference-gateway/a2a-debugger) to test and debug your A2A agent during development. It provides a web interface for sending requests to your agent and inspecting responses, making it easier to troubleshoot issues and validate your implementation.\n\n```bash\ndocker run --rm -it --network host ghcr.io/inference-gateway/a2a-debugger:latest --server-url http://localhost:8080 tasks submit \"What are your skills?\"\n```\n\n```bash\ndocker run --rm -it --network host ghcr.io/inference-gateway/a2a-debugger:latest --server-url http://localhost:8080 tasks list\n```\n\n```bash\ndocker run --rm -it --network host ghcr.io/inference-gateway/a2a-debugger:latest --server-url http://localhost:8080 tasks get \u003ctask ID\u003e\n```\n\n## Deployment\n\n### Docker\n\nThe Docker image can be built with custom version information using build arguments:\n\n```bash\n# Build with default values from ADL\ndocker build -t grafana-agent .\n\n# Build with custom version information\ndocker build \\\n  --build-arg VERSION=1.2.3 \\\n  --build-arg AGENT_NAME=\"My Custom Agent\" \\\n  --build-arg AGENT_DESCRIPTION=\"Custom agent description\" \\\n  -t grafana-agent:1.2.3 .\n```\n\n**Available Build Arguments:**\n- `VERSION` - Agent version (default: `0.1.0`)\n- `AGENT_NAME` - Agent name (default: `grafana-agent`)\n- `AGENT_DESCRIPTION` - Agent description (default: `A2A agent server for grafana dashboards automation tasks`)\n\nThese values are embedded into the binary at build time using linker flags, making them accessible at runtime without requiring environment variables.\n\n## License\n\nMIT License - see LICENSE file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finference-gateway%2Fgrafana-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finference-gateway%2Fgrafana-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finference-gateway%2Fgrafana-agent/lists"}