Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Add table component #8

Merged
merged 2 commits into from
Apr 18, 2020
Merged

Add table component #8

merged 2 commits into from
Apr 18, 2020

Conversation

ricoberger
Copy link
Owner

Add a table component as new option to show data. To use the table component the type must be set to table in the graph configuration. In the graph options a columns array must be added. Multiple queries are joined by the selected label.

Example:

name: Table
defaultDatasource: prometheus
rows:
  - height: 15
    graphs:
      - width: 50
        datasource: prometheus
        type: table
        title: Status
        queries:
          - query: histogram_quantile(0.50, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!="",controller_pod=~".*",controller_class=~".*",controller_namespace=~".*",ingress=~".*"}[2m])) by (le, ingress))
            label: "{{.ingress}}"
          - query: histogram_quantile(0.90, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!="",controller_pod=~".*",controller_class=~".*",controller_namespace=~".*",ingress=~".*"}[2m])) by (le, ingress))
            label: "{{.ingress}}"
          - query: histogram_quantile(0.99, sum(rate(nginx_ingress_controller_request_duration_seconds_bucket{ingress!="",controller_pod=~".*",controller_class=~".*",controller_namespace=~".*",ingress=~".*"}[2m])) by (le, ingress))
            label: "{{.ingress}}"
          - query: sum(irate(nginx_ingress_controller_request_size_sum{ingress!="",controller_pod=~".*",controller_class=~".*",controller_namespace=~".*",ingress=~".*"}[2m])) by (ingress)
            label: "{{.ingress}}"
          - query: sum(irate(nginx_ingress_controller_response_size_sum{ingress!="",controller_pod=~".*",controller_class=~".*",controller_namespace=~".*",ingress=~".*"}[2m])) by (ingress)
            label: "{{.ingress}}"
        options:
          columns:
            - name: ingress
              header: Ingress
            - name: value0
              header: P50 Latency
            - name: value1
              header: P90 Latency
            - name: value2
              header: P99 Latency
            - name: value3
              header: IN
            - name: value4
              header: OUT

Bildschirmfoto 2020-04-15 um 22 33 37

@ricoberger ricoberger merged commit 603505e into master Apr 18, 2020
@ricoberger ricoberger deleted the table-component branch April 18, 2020 17:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant