No description
  • TypeScript 100%
Find a file
keeb 0a2064f2a7 chore: rebrand to @keeb/ namespace, add LICENSE, README example
Renames monitoring_agent type and the three workflows to the @keeb/
namespace. Adds JSDoc + typed export to monitoring_agent matching
monitoring_hub. README gets a usage example. LICENSE.txt was referenced
in manifest but missing from the repo. Plus formatter reflows from
`swamp extension fmt`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 15:15:09 -07:00
.claude/skills/prometheus feat: add embedded prometheus skill for AI agents 2026-04-06 18:36:57 -07:00
.swamp/workflows chore: rebrand to @keeb/ namespace, add LICENSE, README example 2026-04-26 15:15:09 -07:00
extensions/models chore: rebrand to @keeb/ namespace, add LICENSE, README example 2026-04-26 15:15:09 -07:00
workflows Initial commit: @keeb/$NAME swamp extension 2026-02-27 12:30:59 -08:00
.gitignore Initial commit: @keeb/$NAME swamp extension 2026-02-27 12:30:59 -08:00
.swamp.yaml Initial commit: @keeb/$NAME swamp extension 2026-02-27 12:30:59 -08:00
CLAUDE.md Add repository and tags to manifest 2026-03-02 22:01:53 -08:00
LICENSE.txt chore: rebrand to @keeb/ namespace, add LICENSE, README example 2026-04-26 15:15:09 -07:00
manifest.yaml feat: add inspect, reload, and removeScrapeJob methods to monitoring/hub 2026-04-26 15:08:04 -07:00
README.md chore: rebrand to @keeb/ namespace, add LICENSE, README example 2026-04-26 15:15:09 -07:00

@keeb/prometheus

Swamp extension for monitoring agent installation and Prometheus target registration.

Models

monitoring/agent

Install and configure monitoring agents (node_exporter, promtail) on a remote host over SSH.

Method Description
install Install node_exporter and promtail packages
configure Configure promtail to ship logs to Loki, set up node_exporter
enableTextfileCollector Enable the node_exporter textfile collector directory for custom metrics

monitoring/hub

Register monitoring targets with a Prometheus server.

Method Description
discover List currently registered Prometheus targets
register Register a new scrape target with Prometheus

Workflows

Workflow Description
setup-monitoring Full monitoring setup: install agents + configure wiring + register with Prometheus
configure-monitoring Configure monitoring wiring (promtail, Prometheus target registration)
setup-game-metrics Enable node_exporter textfile collector on a game server VM

Dependencies

Used by

Install

swamp extension pull @keeb/prometheus

Example

Install node_exporter + promtail on an Alpine VM, then register it as a scrape target:

models:
  - name: agent
    type: "@keeb/monitoring/agent"
    globalArguments:
      sshHost: "10.0.0.42"
      sshUser: "root"
  - name: hub
    type: "@keeb/monitoring/hub"
    globalArguments:
      sshHost: "hancock.local"
      sshUser: "keeb"
      targetsDir: "/etc/prometheus/targets"

jobs:
  - name: onboard-vm
    steps:
      - model: agent
        method: install
        inputs: { vmName: "web01" }
      - model: agent
        method: configure
        inputs:
          vmName: "web01"
          lokiUrl: "http://hancock.local:3100/loki/api/v1/push"
      - model: hub
        method: register
        inputs:
          vmName: "web01"
          targetIp: "10.0.0.42"

License

MIT