Index of every page on this site: llms.txt
All skills
github avatar

/spring-observability

@f10fdb8 official
by githubgithub/awesome-copilot42k stars
5,426
Run it yourself

Add and review observability in Spring Boot 3/4 apps: Actuator exposure and health probes, Micrometer metrics, Observation API, OpenTelemetry tracing and OTLP/Prometheus export, structured logging with correlation ids, and safe use of heapdump/threaddump. Use when instrumenting, monitoring or troubleshooting a Spring Boot service.

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/spring-observability

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesactuator.md

≈477 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Actuator

Dependency: spring-boot-starter-actuator.

Exposure

  • Web exposure defaults to health only (Boot 3/4). Allow-list explicitly: management.endpoints.web.exposure.include=health,info,metrics,prometheus.
  • Disable the rest: management.endpoints.access.default=none then enable chosen ones (management.endpoint.<id>.access=read-only) on Boot 3.4+; older management.endpoint.<id>.enabled still works on 3.3 and earlier.
  • Move to an internal port: management.server.port=9090 (and management.server.address).
  • Secure with Spring Security: see spring-security skill, references/actuator-protection.md in that skill.
  • Info: management.info.env.enabled=true, management.info.git.mode=simple, management.info.build via the build plugin's build-info goal.

Health

management:
  endpoint:
    health:
      show-details: when-authorized
      roles: ACTUATOR_ADMIN
      probes:
        enabled: true
      group:
        readiness:
          include: readinessState,db
        liveness:
          include: livenessState
  • Probes (/actuator/health/liveness, /readiness) are enabled automatically on Kubernetes; enabling them elsewhere requires probes.enabled=true (Boot 4 enables them by default).
  • Liveness must not depend on external systems (a failing DB must not restart the pod). Put DB, broker, etc. only in readiness if at all.
  • Custom indicators: implement HealthIndicator (or ReactiveHealthIndicator); keep checks fast with timeouts.
  • Graceful shutdown: server.shutdown=graceful and spring.lifecycle.timeout-per-shutdown-phase=30s.

Other useful endpoints

metrics, prometheus, loggers (change levels at runtime; protect), httpexchanges (needs an HttpExchangeRepository bean), scheduledtasks, caches, startup (needs BufferingApplicationStartup). Treat env, configprops, beans, mappings as sensitive.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert5d3 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    The skill provides comprehensive guidelines for implementing and managing observability in Spring Boot applications. It follows secure defaults, includes explicit safety warnings regarding sensitive data (secrets, heap dumps), and recommends official or well-known community tools for development. No malicious patterns or security risks were detected.

  • Socket20d

    No alerts

  • Snyk5d

    Risk: CRITICAL · 2 issues

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated last month

README badge

README badge for github/awesome-copilot/spring-observability