Skip to content

Usage stats: Patch policies and number of policies w/ software automations #48005

Description

@noahtalerman

Goal

User story
As a Fleet contributor on the #g-auto-patching product group,
I want to collect which Fleet-maintained apps have patch policies with and without software automation and dynamic policies w/ software automation
so that I can measure our goal (see OKRs).

Changes

Product

  • UI changes:
  • CLI (fleetctl) usage changes: No changes
  • YAML changes: No changes
  • REST API changes: No changes
  • Fleet's agent (fleetd) changes: No changes
  • Fleet server configuration changes: No changes
  • Exposed, public API endpoint changes: No changes
  • fleetdm.com changes: Parse and store new statistics for patch policies and software automations #50760
  • GitOps mode UI changes: No changes
  • GitOps generation changes: No changes
  • Activity changes: No changes
  • Permissions changes: No changes
  • Changes to paid features or tiers: No changes
  • My device and fleetdm.com/better changes: No changes
  • Usage statistics: [Docs] Usage stats changes #49980
  • Other reference documentation changes: No changes
  • First draft of test plan added
  • Once shipped, requester has been notified
  • Once shipped, dogfooding issue has been filed

Engineering

  • Test plan is finalized
  • Contributor API changes: No changes
  • Feature guide changes: No changes
  • Database schema migrations: No changes. (The fleetdm.com-side column on HistoricalUsageSnapshot is tracked in Parse and store new statistics for patch policies and software automations #50760.)
  • Load testing: No changes. The new counts are two aggregate queries added to the hourly usage_statistics cron, off the request path.
  • Pre-QA load test: TODO
  • Load testing/osquery-perf improvements: TODO
  • This is a premium only feature: No

ℹ️  Please read this issue carefully and understand it. Pay special attention to UI wireframes, especially "dev notes".

Risk assessment

  • Requires testing in a hosted environment: No
  • Requires load testing: No
  • Risk level: Low

Test plan

Make sure to go through the list and consider all events that might be related to this story, so we catch edge cases earlier.

Core flow

  • TODO

Edge cases

  • Make sure that usage stats includes new counts.

Supplemental testing

Testing notes

Confirmation

  1. Engineer: Added comment to user story confirming successful completion of test plan (include any special setup, test data, or configuration used during development/testing if applicable).
  2. QA: Added comment to user story confirming successful completion of test plan.
  3. QA: Determined whether this story needs Playwright automation.
    • Needs automation: Yes / No
    • If yes, filed a follow-up issue in the :help-qa project with status "Needs automation":

Metadata

Metadata

Assignees

Labels

#g-auto-patchingProduct group focused on auto patching softwarestoryA user story defining an entire feature

Type

No type

Projects

Status
No status
Status
🐣 In progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions