Uploaded image for project: 'DC/OS'
  1. DC/OS
  2. DCOS_OSS-4572

Parse Prometheus exporter responses in integration tests

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: DC/OS 1.12, DC/OS 1.13
    • Fix Version/s: DC/OS 1.12.3, DC/OS 1.13.0
    • Component/s: testing
    • Labels:
      None
    • Sprint:
      Observability Team Sprint 39, Observability Team Sprint 40
    • Story Points:
      3

      Description

      There are some metrics integration tests that examine responses from the Prometheus exporter running on DC/OS cluster nodes. These tests verify the response body by searching for substrings within it. We could clarify these tests while making them more exact by parsing those responses into a data structure, and then examining the data structure, instead of searching for substrings in the response body.

      There's a prometheus_client Python library that provides exporter response parsing: https://github.com/prometheus/client_python/#parser

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gracedo Grace Do
                Reporter:
                branden Branden Rolston
                Team:
                Observability Team
                Watchers:
                Branden Rolston, Grace Do, Lisa Gunn (Inactive), Mergebot
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: