spring-boot-actuator

spring-boot-actuator is a cursor rule for Cursor from lsampaioweb/ai-instructions. It costs 0 tokens per session (737 once invoked), scanned A, original, MIT.

A set of rules for configuring Spring Boot Actuator, the Spring feature used to expose application health, information, metrics, and monitoring endpoints.

In plain words
What is it for?
Use it to configure actuator endpoint access, health details, liveness and readiness probes, metrics, tracing, sampling, and sensitive-data boundaries.
Why use it?
It limits which operational data is exposed and defines safer health checks for applications running in containers.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/lsampaioweb/ai-instructions/spring-boot-actuator
Clone the repo
git clone --depth 1 https://github.com/lsampaioweb/ai-instructions

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 spring-boot-actuator

README.md
[![agentmods](https://agentmods.dev/badge/rules/lsampaioweb/ai-instructions/spring-boot-actuator.svg)](https://agentmods.dev/rules/lsampaioweb/ai-instructions/spring-boot-actuator)
Your own site
<a href="https://agentmods.dev/rules/lsampaioweb/ai-instructions/spring-boot-actuator"><img src="https://agentmods.dev/badge/rules/lsampaioweb/ai-instructions/spring-boot-actuator.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 737 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00737
Opus 5 $0.00000 $0.00368
Sonnet 5 $0.00000 $0.00147
Haiku 4.5 $0.00000 $0.00074

Measured 5d ago against content hash a64bfd051a27, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

spring-boot-actuator 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 5d 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/spring-boot-actuator.mdc · 48 lines

How it starts

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

Spring Boot Actuator Engine

Rules

  • Keep actuator endpoint exposure allowlist-based.
  • Expose only health and info by default.
  • Allow metrics, prometheus, or any additional actuator endpoint only with explicit module-level opt-in.
  • Record the reason for any non-default actuator exposure in configuration comments or documentation.
  • Configure the info endpoint to expose at most application name and version.
  • Keep base health details set to when-authorized unless a stricter policy is required.
  • Allow profile-specific health detail overrides when justified by environment needs.
  • Prefer always only for local or development profiles.
  • Prefer never for production profiles unless an authenticated operational requirement is documented.
  • Keep /actuator/health publicly accessible for liveness and readiness probes.
  • Set management.endpoint.health.probes.enabled: true in application.yml for container-aware deployments to activate /actuator/health/liveness and /actuator/health/readiness.
  • Configure explicit liveness (/actuator/health/liveness) and readiness (/actuator/health/readiness) probe groups for container deployments.
  • Keep non-health actuator endpoints authenticated when Spring Security is active.
  • Configure the management server on a dedicated port (8081 by default) to isolate actuator endpoints from application traffic.
  • Set management.endpoints.web.base-path to /actuator explicitly in application.yml.
  • Override management.endpoints.web.base-path in a profile file only when that profile uses a different base path.
  • Include metrics exposure only when runtime monitoring requires it.
  • Keep metrics visibility consistent across active profiles.
  • Use Micrometer Tracing as the tracing abstraction layer.
  • Set spring.application.name as the service name for all trace spans.
  • Use W3C TraceContext (traceparent) as the trace context propagation format.
  • Set sampling rate to 1.0 for local and development profiles.
  • Set sampling rate to 0.1 or lower for production profiles unless a higher rate is operationally justified and documented.
  • Configure the exporter endpoint explicitly in every profile that enables tracing.
  • Keep a shared exporter endpoint definition in application.yml when all environments use the same externalized property key.
  • Override the exporter endpoint in a profile file only when that profile requires a different effective value or a local-development fallback.
  • Disable tracing in test classes by setting management.tracing.sampling.probability=0.0 via environment variable override or inline @TestPropertySource in test configuration.
  • Use @Observed on service methods to create automatic spans via AOP when custom span boundaries are needed.
  • Use Micrometer Baggage API to propagate contextual key-value pairs (e.g., user.id, tenant.id) alongside trace context across service boundaries.
  • Externalize exporter endpoint URLs as configuration properties.

Read the full file on GitHub · 48 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. 5d ago First seen · 48 lines · 0 tokens per session scan A a64bfd051a27

Subscribe to this mod's changes

spring-boot-actuator is a cursor rule published in the GitHub repository lsampaioweb/ai-instructions (1 stars, last pushed 12d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 737 tokens. 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-31.