monitoring

monitoring is a cursor rule for Cursor from kubev2v/forklift-console-plugin. It costs 13 tokens per session (2,405 once invoked), scanned A, original, Apache-2.0.

A set of rules for monitoring Forklift, a tool that moves virtual machines between systems. It exposes Prometheus metrics—measurements that monitoring systems can collect—over a secured HTTPS endpoint.

In plain words
What is it for?
Use it to track migration outcomes, plan states, alerts, controller loops, and inventory activity in Prometheus.
Why use it?
It makes migration activity and controller health visible without adding metrics by hand. This helps operators spot failures, alerts, and changing workloads.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to track migration outcomes, plan states, alerts, controller loops, and inventory activity in Prometheus.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kubev2v/forklift-console-plugin/monitoring
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/kubev2v/forklift-console-plugin

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for monitoring

README.md
[![agentmods](https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/monitoring/github.svg)](https://agentmods.dev/rules/kubev2v/forklift-console-plugin/monitoring)
Your own site
<a href="https://agentmods.dev/rules/kubev2v/forklift-console-plugin/monitoring"><img src="https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/monitoring/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for monitoring

Your own site · 80×15
<a href="https://agentmods.dev/rules/kubev2v/forklift-console-plugin/monitoring"><img src="https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/monitoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,405 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.02405
Opus 5.5 $0.00005 $0.00962
Sonnet 5.5 $0.00003 $0.00481
Haiku 4.5 $0.00001 $0.00241

Measured 29d ago against content hash 18499c7fbd08, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

monitoring scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 29d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/backend/infrastructure/monitoring.mdc · 225 lines

How it starts

The opening of the file, as written. The whole thing — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Monitoring & Metrics

Analyzed from commit: baf9c7bcc307ed9358ad59886a5536366a050012 on 2026-09-17 Source paths: pkg/monitoring/, pkg/metrics/

Package Purpose

Forklift exposes mtv_* Prometheus metrics for migration/plan lifecycle observability and vSphere XCOPY copy-offload performance. Metric definitions and recording loops live in pkg/monitoring/metrics/forklift-controller/. The HTTP serving layer is split between the controller binary (cmd/forklift-controller/main.go) and a reusable TLS helper (pkg/metrics/promethousutil.go) used by volume populators.


Prometheus Endpoint

forklift-controller (production path)

cmd/forklift-controller/main.go
  ├── promhttp.Handler() on :2112/metrics  (plain HTTP, default registry)
  └── controller-runtime --metrics-bind-address=127.0.0.1:8080/metrics

operator/config/default/manager_auth_proxy_patch.yaml
  └── kube-rbac-proxy :8443 → upstream :8080  (TLS + RBAC for Prometheus)

operator/config/prometheus/monitor.yaml
  └── ServiceMonitor scrapes :8443/metrics (scheme: https)

promauto.New* registers mtv_* metrics with prometheus.DefaultRegisterer, served by promhttp.Handler() on :2112. Controller-runtime v0.20.4 serves its separate metrics.Registry on :8080; the ServiceMonitor path (:8443 via kube-rbac-proxy) scrapes controller-runtime metrics only — mtv_* metrics are not exposed there unless explicitly registered with the controller-runtime registry.

Volume populators (sidecar jobs)

pkg/metrics/promethousutil.go → StartPrometheusEndpoint(certsDirectory):

  • Generates self-signed TLS cert/key at startup
  • Serves /metrics over HTTPS on port 8443
  • Used by cmd/ovirt-populator/ and cmd/openstack-populator/

Note: upstream filename is promethousutil.go (typo preserved).


Key Types and Structs

All metrics are package-level var blocks in pkg/monitoring/metrics/forklift-controller/metrics.go, registered via promauto (no manual prometheus.Register for controller metrics).

Read the full file on GitHub · 225 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 29d ago Changed · +136 lines 18499c7fbd08
  2. 1mo ago First seen · 89 lines · 13 tokens per session scan A c822113d65a1

Subscribe to this mod's changes

monitoring is a cursor rule published in the GitHub repository kubev2v/forklift-console-plugin (11 stars, last pushed today), licensed Apache-2.0. It adds 13 tokens to every session and 2,405 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.