Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-3641

Document how to run component tests locally for SWATCH metrics using the prometheus component

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      At the moment, we have several IQE tests that use a prometheus instance to push mock metrics and validate that these metrics are correctly ingested by the swatch-metrics.

      One of these tests is test_verify_metering_operation_for_events_received_from_prometheus_for_openshift_products.

      The idea of this task is to document how to run this test locally against a local swatch metrics service and a local prometheus service.
      Additionally, adds a script to push metrics into this local prometheus service.

      Acceptance Criteria

      • Add a new prometheus folder under "config/prometheus" including a docker-compose file to start up the prometheus service that we'll use for local testing.
      • The image to use should be the one from SWATCH-3640.
      • Document how to run the test "test_verify_metering_operation_for_events_received_from_prometheus_for_openshift_products" locally
      • Document how to run a simple scenario by pushing data into the local prometheus service and checking the events are being processed.

              Unassigned Unassigned
              jcarvaja@redhat.com Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: