Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement an interface from fetching job metrics from InfluxDB #663

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

matheushent
Copy link
Member

What

This PR implement the necessary code in the Jobbergate Agent and its Snap to enable job metric collection from InfluxDB.

The implementation involves a settings parameter which is used for connecting to InfluxDB. The logic happens during the active_submissions_task task. If any part of the upload of metrics of an active job submission fails, it won't interrupt the execution.

Once fetched the metrics for an active job submission, the agent sends to the API.

Why

Provide insights regarding jobs through the API.

Task: https://sharing.clickup.com/t/h/c/18022949/PENG-2457/BU7UOA63B936N27


Peer Review

Please follow the upstream omnivector documentation concerning
peer-review guidelines.

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.74%. Comparing base (326d36d) to head (71d3ffd).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #663      +/-   ##
==========================================
+ Coverage   92.57%   92.74%   +0.17%     
==========================================
  Files          85       86       +1     
  Lines        4483     4588     +105     
==========================================
+ Hits         4150     4255     +105     
  Misses        333      333              
Flag Coverage Δ
agent 93.90% <ø> (+1.09%) ⬆️
api 95.32% <ø> (ø)
cli 88.60% <ø> (ø)
core 96.31% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@matheushent matheushent force-pushed the matheushent/PENG-2457--job-metric-collection--agent branch from 01fb385 to 71d3ffd Compare November 27, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant