Commit Graph

100 Commits

Author SHA1 Message Date
Sarah Yasonik 6f7b6ba072 Use the selected time window for metrics dashboard 2019-06-06 07:30:04 +00:00
Filipa Lacerda 85d1444977 Merge branch 'jivanvl-add-single-stat-chart-component' into 'master'
Add single_stat chart component to the monitoring bundle

See merge request gitlab-org/gitlab-ce!28948
2019-06-05 08:56:35 +00:00
Adriel Santiago 57f6be00bc Handle external dashboard form submission
Connect frontend UI with backend api for external dashboard link
2019-06-04 17:55:52 +00:00
Jose Vargas e02cd451b2 Add single_stat chart component to the monitoring bundle
This merge requests just adds the component without integrating it
to the dashboard, it adds tests as well
2019-06-04 11:41:13 -05:00
Simon Knox 495f11e7d5 Fix warning in spec from committing unused mutation 2019-05-29 20:22:49 +10:00
Jose Ivan Vargas 218dd51239 Migrate the monitoring dashboard store to vuex
This changes the monitoring javascript store from
an object based to a vuex one
2019-05-27 22:30:36 +00:00
Adriel Santiago 78d3f94cee Add custom metrics form to dashboard
Use existing form to allow users to add custom metrics via the dashboard
2019-05-07 17:46:33 +00:00
Adriel Santiago 3565ee2ed6 Add external dashboard link
Add settings for linking to external dashboard from
metrics dashboard
2019-05-07 14:47:09 +00:00
Jose Vargas 3e3bead22b Make time window parameters available in the query string
This commit adds the frontend functionality to add the parameters
via the `pushState` api, preventing the need for a page reload.
2019-05-01 11:37:32 -05:00
Simon Knox e4d1f5d356 Fix Metrics environments dropdown
Also bring back EE dashboard component
2019-04-24 10:11:40 +10:00
Adriel Santiago d753db3f14 Resolve cluster metrics regression
Fixes a regression causing cluster metrics not to display
2019-04-18 23:09:15 +00:00
Sarah Yasonik 193e660291 Resolve Environments#additional_metrics TypeError, ensure unix format 2019-04-09 09:54:17 +00:00
Clement Ho 23df40f99f Merge branch '31368-support-different-time-windows-for-performance-dashboard' into 'master'
Resolve "Support different time windows for performance dashboard"

Closes #31368

See merge request gitlab-org/gitlab-ce!26047
2019-04-05 22:18:11 +00:00
Adriel Santiago 8cf0af88e6 Wrap long chart tooltip series label names
Resolves an issue where long series label names overflow
the popover chart tooltip container
2019-04-05 21:59:57 +00:00
Sarah Yasonik f44737e453 Support multiple queries per chart on metrics dash
Adding support for metrics alerts disabled multiple query support.
To avoid a data model refactor, this enables the visual of multiple
queries per chart on the front end, combining queries based on
metric group, title, and y-axis label.

This also adds support for adding and editing alerts based on the
query selected rather than the single metric associated with the chart.
2019-04-05 20:41:31 +00:00
Jose Vargas 976f1feb28 Document getTimeDifferenceMinutes usage
Also added a finally clause to the getGraphsDataWithTime promise
2019-04-04 14:53:03 -06:00
Jose Vargas a6f9f79b73 Changed the feature flag usage
In order for the dashboard component not to fail, the feature flag
is now required by default
2019-04-04 14:53:03 -06:00
Jose Vargas 217e9e4db1 Created `getTimeDiff` utility function
Updated i18n strings and changed the
monitoring service graph data params
2019-04-04 14:53:03 -06:00
Jose Vargas b75e03a6c9 Update translation files 2019-04-04 14:53:03 -06:00
Jose Vargas 481d25bf48 Add feature flag
Also added relevant tests that make use of a stubbed feature flag,
prettified files
2019-04-04 14:53:03 -06:00
Jose Vargas f77ff0c7bd Add support for time windows for the performance dashbooards
The performance dashboards will now display the data
from a set amount of time windows that are defined
on a constants file
2019-04-04 14:53:03 -06:00
Tristan Read f4b8ec7ea1 Add requested resources to cluster health - ce port 2019-03-29 08:33:10 +00:00
Simon Knox c02b60261c Remove EE differences for monitoring dashboard 2019-03-27 00:55:04 +11:00
Jose Vargas 70c13de9b1 Change environments dropdown to use gitlab-ui 2019-03-21 13:45:12 -06:00
Adriel Santiago b7c4ddfc4c Fix cluster health charts
Render both usage and capacity in chart
2019-03-07 09:39:45 +00:00
Adriel Santiago 64abbb78cd Add zoom to metrics dashboard
Adds the ability to change data zoom for metrics graphs
2019-03-06 12:28:42 +00:00
Adriel Santiago 95cbe90e71 Remove auto-appended units
Remove duplicate units from metrics dashboard graphs
2019-02-22 10:07:58 +00:00
Fatih Acet 6e51960788 Merge branch 'ee-8346-hide-unlicensed-alerts' into 'master'
Backport to resolve conflicts for gitlab-ee!9224

See merge request gitlab-org/gitlab-ce!24889
2019-02-07 09:43:43 +00:00
Adriel Santiago 1c4c4ba1d0 Remove ECharts metrics dashboard feature flag 2019-02-07 07:39:24 +00:00
Simon Knox b1257951da Use ee_else_ce alias for monitoring_bundle 2019-02-07 08:15:42 +11:00
Adriel Santiago c974f4a82e
Handle window and container resize events
Resizes metrics graph on window and sidebard width changes
2019-02-04 08:04:45 -05:00
Adriel Santiago e7bb9b95e8 Remove d3 metrics graph 2019-02-01 08:37:48 +00:00
syasonik db054bc166 Support flat response for envs index route
To support environment folders in the UI on the Environments List
page, the environments index route previously returned one environment
per folder, excluding those other than the latest deploy. However, the
environtments dropdown on the metrics dashboard requires that any
environment be selectable.

To accommodate both use cases, support an optional 'nested' parameter
in the index route to return either a flat, complete response or a
nested response based on the use case in question. The new default
response structure is the flat response.
2019-01-21 14:51:16 -06:00
Jose Ivan Vargas 40bb1bb363 Add empty state for graphs with no values 2018-11-29 19:22:43 +00:00
Mike Greiling 160157a92b
Prettify remaining files with differences in CE and EE 2018-10-31 14:33:12 -05:00
Peter Leitzen 8270be8a67 Resolve "No longer require a deploy to start Prometheus monitoring" 2018-10-26 15:31:04 +00:00
Mike Greiling 7a3e605350
Resolve eslint violations 2018-10-17 11:18:17 -05:00
Mike Greiling f666026d71
Prettify all spec files 2018-10-17 11:18:17 -05:00
Johann Hubert Sonntagbauer 6f5723a169 enable jasmine/new-line-before-expect 2018-10-17 06:57:29 +02:00
Simon Knox deb6b429bf Backport changes from gitlab-ee!7538 2018-10-05 16:26:16 +00:00
Jose Vargas 6ff8146dc2
Change forceRedraw key format 2018-09-25 18:15:30 -05:00
Jose Vargas d0f81b60e4
Fix monitoring dashboard not working properly
This fixes a bug when the monitoring dashboard wouldn't redraw for when the sidebar
was collapsed/expanded on medium to small screens. This is done by enforcing vue
to update based on the change of a key
2018-09-25 11:21:44 -05:00
Simon Knox 4d2e9a1f32 multiseries 2018-09-07 06:05:10 +00:00
Jose Ivan Vargas 236e752bfb Resolve "Metrics drop down doesn't show all environment, some not clickable" 2018-07-17 20:44:26 +00:00
Jose 786edcb4f9 populate environments dropdown, add tests 2018-07-04 10:37:19 -05:00
Lukas Eipert 0e6441164f
remove all unused eslint-disable rules 2018-06-20 14:28:28 +02:00
Mike Greiling 56efb9ee92 Adjust monitoring graphs to support widgets in EE 2018-06-06 11:02:47 +00:00
Jose Ivan Vargas c93cd37767 Resolve "Monitoring graphs - Popover value improvements" 2018-05-07 21:08:59 +00:00
Mike Greiling 8fa0aeb880
fix illegal references to "this" in module context 2018-04-23 00:54:20 -05:00
Jose Ivan Vargas d303b5ba1f Added specs for rendered output, changed the background for stable tracks 2018-04-06 14:51:57 -05:00