Dashboard line-chart don't redraw correctly after enabling/disabling metrics

Summary

I've created a custom dashboard, containing a line-chart panel with four metrics. When the chart initially loads, it draws correctly. But, if I toggle the four metrics on or off, it does not redraw the remaining metrics correctly.

Steps to reproduce

  1. Create a custom dashboard with four metrics. My dashboard definition is below.
  2. Go to the project's Operations > Metrics page.
  3. Choose the custom dashboard.
topics.yml
dashboard: 'Kafka Topics'
panel_groups:
  - group: 'Offsets'
    panels:
      - title: Invoice Topics
        type: line-chart
        y_label: Y-Axis
        metrics:
          - id: oi_db_invoice_offset
            query_range: kafka_topic_partition_current_offset{topic="Invoice"}
            label: "Invoice"
            unit: "offset"
            metric_id: 2000
          - id: oi_db_invoice_detail_offset
            query_range: kafka_topic_partition_current_offset{topic="Detail"}
            label: "Detail"
            unit: "offset"
            metric_id: 2001
          - id: oi_db_invoice_coa_coding_offset
            query_range: kafka_topic_partition_current_offset{topic="Coding"}
            label: "Coding"
            unit: "offset"
            metric_id: 2002
          - id: oi_db_oi_action_offset
            query_range: kafka_topic_partition_current_offset{topic="Action"}
            label: "Action"
            unit: "offset"
            metric_id: 2003

Example Project

N/A

What is the current bug behavior?

Line-chart panel does not redraw correctly after the metrics are toggled. Some metrics are missing.

What is the expected correct behavior?

Line-chart panel should draw all active metrics.

Relevant logs and/or screenshots

line-chart-missing-metrics

Output of checks

(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)

Results of GitLab environment info

Expand for output related to GitLab environment info

System information System: Proxy: no Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.22.0 Sidekiq Version:5.2.7 Go Version: unknown

GitLab information Version: 12.3.1-ee Revision: 699a4525856 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.9 URL: https://gitlab.transzap.com HTTP Clone URL: https://gitlab.transzap.com/some-group/some-project.git SSH Clone URL: ssh://git@gitlab.transzap.com:2222/some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: yes Using Omniauth: yes Omniauth Providers:

GitLab Shell Version: 10.0.0 Repository storage paths:

  • default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git

Results of GitLab application Check

Expand for output related to the GitLab application check

Checking GitLab subtasks ...

Checking GitLab Shell ...

GitLab Shell: ... GitLab Shell version >= 10.0.0 ? ... OK (10.0.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK

gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Gitaly ...

Gitaly: ... default ... OK

Checking Gitaly ... Finished

Checking Sidekiq ...

Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking Incoming Email ...

Incoming Email: ... Reply by email is disabled in config/gitlab.yml

Checking Incoming Email ... Finished

Checking LDAP ...

LDAP: ... Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) User output sanitized. Found 100 users of 100 limit.

Checking LDAP ... Finished

Checking GitLab App ...

Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 2/2 ... yes 5/5 ... yes 16/6 ... yes 16/9 ... yes 16/10 ... yes 5/16 ... yes 5/17 ... yes 20/20 ... yes 20/21 ... yes 21/22 ... yes 21/23 ... yes 3/24 ... yes 24/25 ... yes 24/26 ... yes 24/28 ... yes 20/29 ... yes 16/30 ... yes 27/31 ... yes 27/32 ... yes 28/33 ... yes 28/35 ... yes 21/36 ... yes 3/38 ... yes 28/39 ... yes 58/40 ... yes 16/42 ... yes 46/45 ... yes 38/48 ... yes 38/50 ... yes 20/51 ... yes 85/52 ... yes 85/53 ... yes 85/54 ... yes 85/55 ... yes 85/56 ... yes 39/57 ... yes 38/58 ... yes 16/59 ... yes 16/61 ... yes 85/65 ... yes 68/66 ... yes 58/72 ... yes 58/102 ... yes 68/103 ... yes 57/104 ... yes 68/111 ... yes 14/114 ... yes 38/115 ... yes 38/120 ... yes 85/122 ... yes 85/123 ... yes 28/124 ... yes 28/125 ... yes 85/131 ... yes 65/132 ... yes 85/136 ... yes 85/137 ... yes 38/139 ... yes 24/141 ... yes 85/142 ... yes 16/144 ... yes 54/147 ... yes 85/148 ... yes 24/155 ... yes 35/157 ... yes 5/160 ... yes 5/161 ... yes 16/162 ... yes 65/164 ... yes 23/166 ... yes 24/170 ... yes 60/172 ... yes 35/176 ... yes 24/177 ... yes 24/179 ... yes 24/180 ... yes 65/185 ... yes 57/187 ... yes 23/189 ... yes 38/190 ... yes 71/196 ... yes 85/198 ... yes 58/202 ... yes 58/204 ... yes 83/205 ... yes 23/206 ... yes 23/208 ... yes 23/209 ... yes 58/212 ... yes 65/213 ... yes 35/216 ... yes 65/217 ... yes 139/218 ... yes 69/219 ... yes 65/220 ... yes 65/223 ... yes 24/224 ... yes 58/225 ... yes 85/226 ... yes 23/227 ... yes 65/228 ... yes 85/230 ... yes 23/232 ... yes 85/240 ... yes 65/247 ... yes 61/256 ... yes 75/267 ... yes 75/268 ... yes 76/270 ... yes 76/272 ... yes 76/273 ... yes 16/276 ... yes 16/277 ... yes 24/278 ... yes 5/281 ... yes 5/282 ... yes 5/283 ... yes 77/291 ... yes 24/292 ... yes 81/294 ... yes 61/295 ... yes 61/296 ... yes 61/297 ... yes 61/298 ... yes 61/299 ... yes 61/300 ... yes 61/301 ... yes 24/305 ... yes 61/308 ... yes 61/309 ... yes 61/310 ... yes 61/313 ... yes 61/314 ... yes 68/316 ... yes 58/317 ... yes 58/318 ... yes 23/319 ... yes 16/320 ... yes 58/322 ... yes 61/325 ... yes 83/329 ... yes 61/334 ... yes 61/335 ... yes 23/336 ... yes 83/337 ... yes 58/339 ... yes 61/340 ... yes 23/341 ... yes 61/345 ... yes 61/346 ... yes 61/351 ... yes 6/352 ... yes 23/356 ... yes 23/357 ... yes 38/359 ... yes 53/360 ... yes 53/362 ... yes 53/363 ... yes 53/364 ... yes 53/367 ... yes 53/368 ... yes 53/369 ... yes 53/370 ... yes 53/371 ... yes 61/374 ... yes 61/376 ... yes 61/378 ... yes 78/379 ... yes 38/382 ... yes 94/383 ... yes 89/384 ... yes 142/385 ... yes 102/386 ... yes 6/387 ... yes 104/389 ... yes 104/390 ... yes 104/391 ... yes 104/392 ... yes 104/393 ... yes 125/396 ... yes 126/397 ... yes 127/398 ... yes 105/399 ... yes 23/409 ... yes 94/410 ... yes 58/411 ... yes 104/413 ... yes 131/414 ... yes 106/415 ... yes 107/416 ... yes 107/417 ... yes 6/418 ... yes 107/419 ... yes 107/420 ... yes 105/423 ... yes 24/424 ... yes 94/426 ... yes 125/428 ... yes 127/429 ... yes 105/430 ... yes 94/432 ... yes 94/433 ... yes 35/434 ... yes 65/435 ... yes 35/436 ... yes 35/437 ... yes 53/438 ... yes 23/441 ... yes 117/443 ... yes 117/444 ... yes 117/446 ... yes 131/450 ... yes 61/451 ... yes 116/453 ... yes 23/455 ... yes 116/456 ... yes 116/457 ... yes 77/459 ... yes 117/460 ... yes 53/461 ... yes 53/462 ... yes 94/463 ... yes 77/464 ... yes 120/466 ... yes 120/467 ... yes 116/469 ... yes 38/470 ... yes 118/471 ... yes 111/472 ... yes 111/473 ... yes 94/474 ... yes 77/475 ... yes 116/478 ... yes 116/480 ... yes 116/481 ... yes 107/482 ... yes 127/483 ... yes 121/484 ... yes 52/485 ... yes 120/486 ... yes 111/487 ... yes 61/489 ... yes 120/490 ... yes 107/491 ... yes 61/492 ... yes 120/493 ... yes 123/494 ... yes 6/495 ... yes 123/496 ... yes 120/497 ... yes 126/499 ... yes 126/500 ... yes 131/501 ... yes 118/502 ... yes 118/503 ... yes 118/504 ... yes 132/505 ... yes 132/506 ... yes 132/507 ... yes 118/508 ... yes 131/509 ... yes 139/511 ... yes 139/512 ... yes 6/517 ... yes 138/518 ... yes 141/519 ... yes 141/520 ... yes 138/521 ... yes 3/522 ... yes 134/523 ... yes 124/525 ... yes 124/526 ... yes 124/527 ... yes 140/528 ... yes 140/529 ... yes 3/530 ... yes 141/532 ... yes 141/533 ... yes 140/534 ... yes 140/535 ... yes 141/536 ... yes 125/537 ... yes 61/538 ... yes 38/541 ... yes 145/544 ... yes 81/545 ... yes 81/546 ... yes 142/547 ... yes 38/548 ... yes 3/551 ... yes 61/552 ... yes 105/553 ... yes 124/554 ... yes 125/555 ... yes 126/556 ... yes 127/557 ... yes 61/558 ... yes 61/559 ... yes 61/560 ... yes 140/561 ... yes 85/569 ... yes 85/570 ... yes 140/571 ... yes 131/572 ... yes 85/573 ... yes 140/574 ... yes 131/579 ... yes 151/581 ... yes 131/582 ... yes 131/583 ... yes 131/584 ... yes 131/585 ... yes 131/586 ... yes 131/587 ... yes 131/588 ... yes 3/589 ... yes 154/590 ... yes 154/592 ... yes 154/593 ... yes 154/594 ... yes 128/598 ... yes 128/599 ... yes 128/600 ... yes 128/601 ... yes 6/603 ... yes 140/604 ... yes 135/608 ... yes 131/609 ... yes 157/611 ... yes 131/612 ... yes 61/613 ... yes 141/614 ... yes 140/615 ... yes 139/617 ... yes 139/618 ... yes 139/619 ... yes 139/621 ... yes 131/623 ... yes 154/625 ... yes 154/626 ... yes 154/628 ... yes 131/629 ... yes 131/630 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.22.0 ? ... yes (2.22.0) Git user has default SSH configuration? ... yes Active users: ... 70 Is authorized keys file accessible? ... yes Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)

Checking GitLab App ... Finished

Checking GitLab subtasks ... Finished

Possible fixes

Unknown.

Edited Oct 11, 2019 by King Chung Huang
Assignee Loading
Time tracking Loading