Uploaded image for project: 'OpenShift Monitoring'
  1. OpenShift Monitoring
  2. MON-4442

Add AGENTS.md to cluster-monitoring-operator

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • None
    • Product / Portfolio Work
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • NEW
    • NEW
    • MON Sprint 280

      Objective

      Create comprehensive AGENTS.md file for the cluster-monitoring-operator repository following the pattern from openshift/api.

      Scope

      The cluster-monitoring-operator is the main operator that manages and updates the Prometheus-based monitoring stack on OpenShift, including:

      • Prometheus Operator
      • Prometheus (platform and user-workload)
      • Alertmanager (platform and user-workload)
      • kube-state-metrics
      • node-exporter
      • metrics-server
      • openshift-state-metrics
      • Thanos Querier and Ruler
      • Telemeter Client
      • Monitoring Plugin

      Content Requirements

      The AGENTS.md file should document:

      1. Repository Overview

      • Purpose: Main operator managing the monitoring stack
      • Key responsibilities: component lifecycle, configuration management, reconciliation
      • Relationship to prometheus-operator and other components

      2. Architecture Components

      • Main packages and their purposes (pkg/manifests, pkg/tasks, pkg/operator)
      • Jsonnet-based manifest generation system
      • Component reconciliation patterns
      • Configuration validation (pkg/configvalidate)

      3. Development Workflow

      # Building
      make build
      make operator
      
      # Jsonnet manifest generation
      make generate
      make check-assets
      
      # Testing
      make test
      make test-e2e
      
      # Local development
      hack/local-cmo.sh
      

      4. Key Patterns

      • Task-based reconciliation architecture
      • Jsonnet manifest generation and templating
      • Multi-component orchestration
      • FeatureGate integration
      • Configuration inheritance (platform vs user-workload)

      5. Common Tasks

      • Adding new monitoring components
      • Updating component versions
      • Modifying alert rules
      • Configuration API changes
      • Testing strategies (unit, e2e, integration)

      Acceptance Criteria

      • [ ] AGENTS.md file created in repository root
      • [ ] Content covers all required sections
      • [ ] Follows structure from openshift/api template
      • [ ] Includes accurate build/test commands
      • [ ] Documents jsonnet workflow
      • [ ] Reviewed by component maintainers
      • [ ] PR merged to main branch

      Reference

       

              dmellado1@redhat.com Daniel Mellado Area
              dmellado1@redhat.com Daniel Mellado Area
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: