infra-report

Query Loki logs across hosts and generate markdown infrastructure health reports.

1|1|Updated Dec 27, 2023
One-click install
npx skills add https://github.com/bcotton/nix-config --skill infra-report
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: infra-report
Source: https://github.com/bcotton/nix-config/tree/main/.claude/skills/infra-report
Command: npx skills add https://github.com/bcotton/nix-config --skill infra-report

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of gathering and analyzing logs from various infrastructure components to provide a comprehensive health status report, identifying potential issues before they impact users.

Core Features & Use Cases

  • Log Aggregation & Analysis: Queries Loki logs across multiple hosts to assess system health.
  • Automated Reporting: Generates structured reports on auto-upgrades, backups, service status, and errors.
  • Issue Identification: Pinpoints specific failures, error patterns, and potential hardware problems.
  • Use Case: When asked to "check the status of all servers" or "review recent system errors," this skill will query logs and present a clear, actionable report.

Quick Start

Generate a report of infrastructure health for the last 24 hours.

Frequently Asked Questions about infra-report

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an infrastructure health report from Loki logs?

You can generate an infrastructure health report by querying Loki logs across all hosts using structured LogQL queries, assessing fleet status, auto-upgrades, backups, UPS status, errors, and service health, then formatting findings into a markdown report.

What is the best way to check server status and recent system errors across multiple hosts?

Checking server status and recent system errors is best done by aggregating fleet logs to pinpoint specific failures, error patterns, and potential hardware problems, presenting a clear, actionable infrastructure health report.

Can I file actionable items as Forgejo issues based on infrastructure log analysis?

Yes, you can file actionable items as Forgejo issues directly from the infrastructure health report, automatically creating tickets for identified failures, error patterns, and potential hardware problems found during log analysis.

Do I need Loki to automate reporting for backups and auto-upgrades?

Yes, you need Loki configured across your hosts to automate reporting for backups and auto-upgrades, as the skill queries Loki logs using structured LogQL to assess system health and generate findings.

How do I parse a custom time window for infrastructure health monitoring?

To parse a custom time window for infrastructure health monitoring, specify the desired period when requesting the report, and the skill will query Loki logs for that specific time window to assess system health.