Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-15629

Add support for tokenAsFile in scrapeClass

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • ACM 2.13.0
    • Observability
    • None
    • 3
    • False
    • None
    • False
    • ACM-12063 - Multi-signal Observability Storage, Collection and Query Support in ACM
    • Observability Sprint 34
    • None

      In order to be authorised to scrape the in-cluster prometheus (from COO or CMO), the prometheusAgent serviceAccount must assume the cluster-monitoring-view role and provide the serviceAccount accessToken as bearer in the request.
      This token is automatically mounted in the container as a volume.
      However, the scrapeClass currently does not support injecting tokens from the file system. See impacts
      This feature has been requested by spasquie@redhat.com in this issue.

      The purpose of this task is to:

      • implement the field if needed and then test it in our setup so that we can deprecate the envoy sidecar.
      • check wether the scrapeClass attribute from the prometheusAgent CR is well supported. Which was not obvious in my tests. I remember not finding the scrape class defined in the CR, in the resulting container.

              Unassigned Unassigned
              rh-ee-tmange Thibault Mange
              Xiang Yin Xiang Yin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: