Commit Graph

6 Commits

Author SHA1 Message Date
Saranya Jena 673a368454
Analytics graphs (#2892)
* Added radial chart in analytics

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Added backend API for schedule stats

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Prepended result and rounded of values for monthly data

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Added documentation, filtering for weekly and hourly workflow schedule data

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Graph WIP, query added, data format typed and formatting fixed

Signed-off-by: Vansh Bhatia <vansh@chaosnative.com>

* Added frontend integration for schedule stats graph

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Backend - Schedule stats bug fixed and Run stats included in the same query

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* Added frontend integration for run stats graph

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* resolved merge conflicts

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* fixed the import error in backend

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* deleted unused file

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Changed the variables' names

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Added interfaces from litmus-ui

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

Co-authored-by: Vansh Bhatia <vansh@chaosnative.com>
Co-authored-by: arkajyotiMukherjee <arko@chaosnative.com>
2021-06-14 23:02:00 +05:30
Ishan Gupta ac79879512
(analytics): Backend updates for Application dashboard CRUD v2 (#2889)
* Updating backend for analytics/monitoring app. dashboard CRUD-v2

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* Updating agent RBAC for pods, services and nodes.

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* Fixing codacy issues.

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor typo fix along with condition

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* Fixed codacy issue

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>
2021-06-14 13:40:14 +05:30
Ishan Gupta 81a9747458
(Portal - Analytics/Monitoring): Adding APIs for fetching series list and (label, values), in-memory caching, concurrent requests & moving data pre-processing pipeline. (#2780)
* Adding in memory cache, error handling, data filtering and validation, api for fetching labels and values for a prometheus series.

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor fix

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor fix

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor fix

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor fix

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor fixes

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* adding seriesList API

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* Timestamps converted to float64

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor update for response schema

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* normalised schema and changed cache file directory

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>
2021-05-12 14:09:08 +00:00
Arkajyoti Mukherjee 91fd200783
Created mongo interface and refactored the database operations [This is preparation to create mock interfaces for unit testing] (#2746)
* added mongo interface; created addtional file for switching between the collections and one for all db CRUD operations

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* modified usermanagement and projects with the new mongo structure; made logging and errors and comments consistent

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* added the changes for workflow db operations

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* added the changes for myHub db operations

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* added the changes for gitops db operations

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* minor changes for gitops db operations

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* added the changes for cluster db operations

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* added the changes for analytics db operations and added comments to the operations.go file

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* calling the initialize function and instantiating the mongo client

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* import order fixed

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>
2021-05-07 22:57:49 +05:30
Ishan Gupta de0418fb2c
(Litmus-Portal) GQL server refractor for database and handlers (#2454)
* Adding datasource and dashboard APIs for analytics / monitoring.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Fixed formatting.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* GraphQL server refractor

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Refractor after review.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Minor fixes after review.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Sorted imports.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Reverting frontend changes.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* code analysis fix.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* minor fix

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Changes after review.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Codacy fixes.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>
2021-02-25 19:53:21 +05:30
Ishan Gupta e14e2a0dac
(Litmus-Portal): Adding datasource and dashboard APIs for analytics / monitoring. (#2439)
* Adding datasource and dashboard APIs for analytics / monitoring.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Fixed formatting.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Directory restructure after review

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>
2021-02-19 00:49:25 +05:30