Skip to content

Add Prometheus Metrics support to Compose schema 1.2 #1474

@ChristianLempa

Description

@ChristianLempa

Overview

Add Prometheus metrics support as a new section in Docker Compose schema 1.2, enabling service observability through metrics collection.

Implementation Plan

  • Create new section in compose schema 1.2 specification
  • Add toggle variable (default: )
  • Configure dedicated Docker network for Prometheus communication
  • Follow existing patterns from Traefik and Authentik integrations
  • Support conditional network attachment based on toggle state

Technical Details

  • Schema version: 1.2
  • Section:
  • Toggle variable: (boolean, default: false)
  • Network: (external or created)
  • Template conditionals:

Acceptance Criteria

  • Schema 1.2 spec file created with metrics section
  • Metrics section with appropriate variables (network name, port, path)
  • Templates correctly render metrics network configuration
  • Semantic validation passes for generated compose files
  • Documentation updated with metrics usage examples

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions