Skip to content

Add bar chart support to monitoring dashboard

Dhiraj Bodicherla requested to merge add-bar-charts-to-monitoring-dashboard into master

What does this MR do?

This MR adds Bar charts to the monitoring dashboard. Bar charts was recently introduced in GitLab UI gitlab-ui!1136 (merged).

The original bar charts had an issue where long axis labels would overlap with y axis name. An update was made to the Bar charts (gitlab-ui!1199 (merged)) based on the conversation !27155 (comment 307126569)

Here !27173 (merged) is the MR to update docs.

Sample dashboard to test bar charts

dashboard: "Metrics Dev"
panel_groups:
  - group: "Operations group"
    panels:
      - type: bar
        title: "http response size incr by handler"
        x_label: 'Response Size'
        y_axis:
          name: "Handlers"
        metrics:
          - id: prometheus_http_response_size_bytes_bucket
            query_range: "sum(increase(prometheus_http_response_size_bytes_bucket[1d])) by (handler)"
            unit: 'Percent'

Screenshots

Bar chart with truncated labels image
Bar charts among other charts image

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Mentions #202000 (closed)

Edited by 🤖 GitLab Bot 🤖

Merge request reports