Logql Generator
Generates LogQL queries from natural language descriptions, streamlining log analysis and accelerating troubleshooting.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add logql-generator npx -- -y @trustedskills/logql-generator
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"logql-generator": {
"command": "npx",
"args": [
"-y",
"@trustedskills/logql-generator"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill generates LogQL queries. It allows users to translate natural language requests into functional PromQL (Prometheus Query Language) statements for querying and analyzing time-series data stored in Prometheus. The generated queries can be used to retrieve metrics, calculate aggregates, and create visualizations within a monitoring system.
When to use it
- Troubleshooting: Quickly generate LogQL queries to investigate specific issues or performance bottlenecks based on natural language descriptions of the problem.
- Metric Exploration: Explore Prometheus data by asking questions in plain English instead of needing to learn the intricacies of LogQL syntax.
- Dashboard Creation: Generate LogQL snippets for creating custom dashboards and visualizations within monitoring tools.
- Automated Reporting: Automate the creation of reports based on PromQL queries, reducing manual effort and ensuring consistency.
Key capabilities
- Generates LogQL queries from natural language input.
- Supports a range of Prometheus metrics and functions.
- Translates user requests into functional PromQL statements.
Example prompts
- "Show me the CPU usage for all servers over the last 5 minutes."
- "What is the average response time of our API endpoint in the last hour?"
- "Generate a query to find errors related to database connections."
Tips & gotchas
The quality of generated queries depends on the clarity and specificity of the input prompt. Providing context about the metrics you're interested in will improve accuracy.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.