Spring Boot · Capability

Spring Boot Actuator API — Metrics

Spring Boot Actuator API — Metrics. 3 operations. Lead operation: Spring Boot List available metric names. Self-contained Naftiko capability covering one Spring Boot business surface.

Run with Naftiko Spring BootMetrics

What You Can Do

GET
Listmetrics — Spring Boot List available metric names
/v1/metrics
GET
Getmetric — Spring Boot Get metric measurements
/v1/metrics/{metricname}
GET
Getprometheus — Spring Boot Prometheus metrics scrape endpoint
/v1/prometheus

MCP Tools

spring-boot-list-available-metric

Spring Boot List available metric names

read-only idempotent
spring-boot-get-metric-measurements

Spring Boot Get metric measurements

read-only idempotent
spring-boot-prometheus-metrics-scrape

Spring Boot Prometheus metrics scrape endpoint

read-only idempotent

Capability Spec

actuator-metrics.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Spring Boot Actuator API — Metrics
  description: 'Spring Boot Actuator API — Metrics. 3 operations. Lead operation: Spring Boot List available metric names.
    Self-contained Naftiko capability covering one Spring Boot business surface.'
  tags:
  - Spring Boot
  - Metrics
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SPRING_BOOT_API_KEY: SPRING_BOOT_API_KEY
capability:
  consumes:
  - type: http
    namespace: actuator-metrics
    baseUri: http://localhost:8080/actuator
    description: Spring Boot Actuator API — Metrics business capability. Self-contained, no shared references.
    resources:
    - name: metrics
      path: /metrics
      operations:
      - name: listmetrics
        method: GET
        description: Spring Boot List available metric names
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: metrics-metricName
      path: /metrics/{metricName}
      operations:
      - name: getmetric
        method: GET
        description: Spring Boot Get metric measurements
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: metricName
          in: path
          type: string
          description: Metric name (e.g., jvm.memory.used, http.server.requests)
          required: true
        - name: tag
          in: query
          type: array
          description: Tag filter in KEY:VALUE format
    - name: prometheus
      path: /prometheus
      operations:
      - name: getprometheus
        method: GET
        description: Spring Boot Prometheus metrics scrape endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: actuator-metrics-rest
    port: 8080
    description: REST adapter for Spring Boot Actuator API — Metrics. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/metrics
      name: metrics
      description: REST surface for metrics.
      operations:
      - method: GET
        name: listmetrics
        description: Spring Boot List available metric names
        call: actuator-metrics.listmetrics
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/metrics/{metricname}
      name: metrics-metricname
      description: REST surface for metrics-metricName.
      operations:
      - method: GET
        name: getmetric
        description: Spring Boot Get metric measurements
        call: actuator-metrics.getmetric
        with:
          metricName: rest.metricName
          tag: rest.tag
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/prometheus
      name: prometheus
      description: REST surface for prometheus.
      operations:
      - method: GET
        name: getprometheus
        description: Spring Boot Prometheus metrics scrape endpoint
        call: actuator-metrics.getprometheus
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: actuator-metrics-mcp
    port: 9090
    transport: http
    description: MCP adapter for Spring Boot Actuator API — Metrics. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: spring-boot-list-available-metric
      description: Spring Boot List available metric names
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: actuator-metrics.listmetrics
      outputParameters:
      - type: object
        mapping: $.
    - name: spring-boot-get-metric-measurements
      description: Spring Boot Get metric measurements
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: actuator-metrics.getmetric
      with:
        metricName: tools.metricName
        tag: tools.tag
      outputParameters:
      - type: object
        mapping: $.
    - name: spring-boot-prometheus-metrics-scrape
      description: Spring Boot Prometheus metrics scrape endpoint
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: actuator-metrics.getprometheus
      outputParameters:
      - type: object
        mapping: $.