Uploaded image for project: 'AMQ Streams'
  1. AMQ Streams
  2. ENTMQST-6234

[BRIDGE] path label in metrics can contain very different values and that makes it hard to work with the metrics

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • 2.9.0.GA
    • None
    • None
    • None
    • False
    • None
    • False

      The path label in the Bridge metrics seems to contain very different values. That breaks dashbords and makes it hard to work with the metrics. For example, for the poll metrics, you can get the metrics like this:

      $ curl -s localhost:8080/metrics | grep strimzi_bridge_http_server_requests_total | grep GET | grep consumers
      strimzi_bridge_http_server_requests_total{code="200",method="GET",path="/consumers/my-group5/instances/my-consumer5/records?timeout=100",} 432.0
      strimzi_bridge_http_server_requests_total{code="200",method="GET",path="http://my-bridge-bridge-service:8080/consumers/my-group4/instances/my-consumer4/records?timeout=100",} 1035.0
      

      As you can notice:

      • The first metric contains the path parameters (?timeout=100)
      • The second metric containers the full address (http://my-bridge-bridge-service:8080) as well as the path parameters (?timeout=100)

      Both of these breaks the Strimzi Bridge Grafana Dashabord that expects the path to be always only /consumers/<NAME>/instances/<NAME>/records. So the dashboard does not show this metric. I noticed it at the Poll chart but this likely impacts also other metrics / charts.

      Created by Bridge#921

              ppatiern Paolo Patierno
              scholzj JAkub Scholz
              Lukas Kral Lukas Kral
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: