Skip to content

HostMetricSummaryMonthly command + scheduled task#13999

Merged
AlanCoding merged 6 commits into
ansible:develfrom
slemrmartin:host-metrics-summary-task
Jul 12, 2023
Merged

HostMetricSummaryMonthly command + scheduled task#13999
AlanCoding merged 6 commits into
ansible:develfrom
slemrmartin:host-metrics-summary-task

Conversation

@slemrmartin

@slemrmartin slemrmartin commented May 15, 2023

Copy link
Copy Markdown
Contributor
SUMMARY

Adds command awx-manage host_metric_summary_monthly
Adds scheduled task host_metric_summary_monthly (once per week)

It computes last 36 months of HostMetricSummaryMonthly table (1 row == 1 month)
36 months is also threshold for deleting HostMetrics (will be implemented also to this feature branch)

It computes subscription consumption and unique hosts added/deleted in given month (more precisely HostMetrics)
It'll serve as a backend for UI table with graph of subscription consumption usage.

More described in the ADR

ISSUE TYPE
  • New or Enhanced Feature
COMPONENT NAME
  • API
  • CLI
  • Scheduler
AWX VERSION
awx: 22.2.1.dev5+g0f57e16f4f.d20230515
ADDITIONAL INFORMATION

@slemrmartin slemrmartin force-pushed the host-metrics-summary-task branch from 0f57e16 to b1f39ef Compare May 15, 2023 14:16
@AlanCoding AlanCoding requested review from AlanCoding and relrod May 15, 2023 17:27
Comment thread awx/settings/defaults.py Outdated
Comment thread awx/main/tasks/handlers/host_metric_summary_monthly_task.py
Comment thread awx/main/tasks/handlers/host_metric_summary_monthly_task.py
@slemrmartin slemrmartin closed this Jun 5, 2023
@slemrmartin slemrmartin reopened this Jun 5, 2023
Comment thread awx/settings/defaults.py Outdated
Comment thread awx/main/conf.py
Comment thread awx/main/models/inventory.py
@slemrmartin slemrmartin force-pushed the host-metrics-summary-task branch from 993e9c5 to c5c8ac6 Compare June 8, 2023 10:08
Comment thread awx/main/tasks/host_metrics.py Outdated
Comment thread awx/main/tasks/host_metrics.py Outdated
Comment thread awx/main/tasks/host_metrics.py Outdated
@AlanCoding

Copy link
Copy Markdown
Member

👍 all discussions are pretty well resolved aside from some linter failure related items, so after those get cleaned up we'll be looking at final verification and merging.

@slemrmartin slemrmartin force-pushed the host-metrics-summary-task branch 2 times, most recently from be157f4 to 8f7afd2 Compare June 22, 2023 10:23
@slemrmartin slemrmartin changed the base branch from feature_usage_collection_25 to devel June 29, 2023 12:40
@slemrmartin slemrmartin force-pushed the host-metrics-summary-task branch from 8f7afd2 to 5822529 Compare June 29, 2023 12:56
@slemrmartin slemrmartin force-pushed the host-metrics-summary-task branch from 5822529 to 1b62b4e Compare June 29, 2023 13:04

@AlanCoding AlanCoding left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrapping up

  • review discussions resolved
  • checks are good
  • integration test results reviewed

@AlanCoding

Copy link
Copy Markdown
Member

I have one minor bug fix I want to add to this branch:

slemrmartin#6

I'll wait for you to look over that, because I don't see a particular rush. After that I can work on next steps for shipping this.

@jjwatt jjwatt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed for Python readability. I have a couple of nitpicks around comments, etc.

Comment thread awx/main/tasks/host_metrics.py Outdated
Comment thread awx/main/tasks/host_metrics.py
Comment thread awx/main/tasks/system.py Outdated
Comment thread awx/settings/defaults.py
@AlanCoding

Copy link
Copy Markdown
Member

Ready to rebase and merge.

@slemrmartin slemrmartin force-pushed the host-metrics-summary-task branch from 82921b9 to aa96ea0 Compare July 12, 2023 11:35
@AlanCoding AlanCoding merged commit 6c5590e into ansible:devel Jul 12, 2023
AlanCoding added a commit to AlanCoding/awx that referenced this pull request Jul 13, 2023
)

Co-authored-by: Alan Rominger <arominge@redhat.com>
@slemrmartin slemrmartin deleted the host-metrics-summary-task branch August 14, 2023 09:00
djyasin pushed a commit to djyasin/awx that referenced this pull request Sep 16, 2024
)

Co-authored-by: Alan Rominger <arominge@redhat.com>
djyasin pushed a commit to djyasin/awx that referenced this pull request Nov 11, 2024
)

Co-authored-by: Alan Rominger <arominge@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants