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

fix(agent): PENG-2457 fix the *epoch* param when querying InfluxDB for metrics. #678

Conversation

matheushent
Copy link
Member

This PR modifies the epoch param of the .query method in the function fetch_influx_data when querying InfluxDB for metrics. The previous argument, i.e. us, was generating errors in the API when converting the timestamp to datetime objects necessary for SQLAlchemy.


Peer Review

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

…r metrics.

This commit modifies the *epoch* param of the *.query* method in the function
*fetch_influx_data* when querying InfluxDB for metrics. The previous argument,
i.e. *us*, was generating errors in the API when converting the timestamp to
datetime objects necessary for SQLAlchemy.
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (feature/PENG-2455--job-metric-collection@97ba3f2). Learn more about missing BASE report.

Additional details and impacted files
@@                             Coverage Diff                             @@
##             feature/PENG-2455--job-metric-collection     #678   +/-   ##
===========================================================================
  Coverage                                            ?   92.83%           
===========================================================================
  Files                                               ?       88           
  Lines                                               ?     4842           
  Branches                                            ?        0           
===========================================================================
  Hits                                                ?     4495           
  Misses                                              ?      347           
  Partials                                            ?        0           
Flag Coverage Δ
agent 93.53% <ø> (?)
api 95.39% <ø> (?)
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 merged commit 1b3f28e into feature/PENG-2455--job-metric-collection Dec 19, 2024
13 checks passed
@matheushent matheushent deleted the task/PENG-2457-fix-influxdb-query-epoch branch December 19, 2024 18:20
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.

3 participants