Skip to content

Commit

Permalink
Merge pull request #34 from ufcg-lsd/add_monitor_stream_plugin_support
Browse files Browse the repository at this point in the history
Adding support for stream-kubejobs monitor plugin
  • Loading branch information
armstrongmsg authored Apr 30, 2020
2 parents 11e5f08 + 44ae143 commit 828ab93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion visualizer/service/api/v10.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def stop_visualization(data, app_id):
raise exceptions.BadRequestException()

plugin = data['plugin']
if plugin == 'kubejobs':
# TODO We need to think in a better design for this
if plugin == 'kubejobs' or plugin == 'stream_kubejobs':
# Call the executor by app_id and stop the visualization.
visualized_apps[app_id].stop_visualization()

Expand Down
4 changes: 3 additions & 1 deletion visualizer/utils/datasources/datasource_influx.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def __init__(self, monitor_plugin, database_data, app_id):
self.datasource_url = database_data['url']
self.datasource_port = database_data['port']
self.database_name = database_data['name']
if(monitor_plugin == 'kubejobs'):
# TODO We need to think in a better design for this
if(monitor_plugin == 'kubejobs' or
monitor_plugin == 'stream_kubejobs'):
self.dashboard_path = K8S_TEMPLATE_PATH

elif(monitor_plugin == 'external_api'):
Expand Down

0 comments on commit 828ab93

Please sign in to comment.