Skip to content

ARI: Removed zone/subvenue enrichment and per-record component naming from po - #987

Open
neyaadeez wants to merge 1 commit into
masterfrom
ari/positron-agent-remove-zone-fixed-component
Open

neyaadeez wants to merge 1 commit into
masterfrom
ari/positron-agent-remove-zone-fixed-component

Conversation

@neyaadeez

Copy link
Copy Markdown
Contributor

Removed zone/subvenue enrichment and per-record component naming from positron-agent so metric instances now always report a fixed identity.

Positron endpoint and device metrics previously derived a "Zone" from the Device Inventory's venue field, with a fallback heuristic that matched venue-abbreviation prefixes in device names (and, for endpoints, fell back to the parent GAM's name) — this fallback also had a side effect of renaming instances by prepending the resolved abbreviation. That entire mechanism has been removed: Zone is no longer computed and is left empty on every metric for now, pending a future redesign of how it should be sourced. The supporting venue-abbreviation lookup (loading/refreshing/caching venue_abbreviations.json, and the ZoneFor/ZoneForWithFallback resolution logic) has been deleted from the devicelookup package, and the worker no longer maintains or refreshes that cache.

Component naming has also been simplified: instead of picking "Positron-Endpoint" vs "Positron-GAM" per record based on model type/product class/name heuristics, every instance (both endpoints and devices) now reports a single fixed component name, "Positron Agent". The related endpoint_component_name/gam_component_name config options have been removed since they're no longer used.

These changes reduce risk from a heuristic that could mis-tag zones/names and simplify the data model while we settle on the right long-term approach for zone metadata. No other metric fields (instance name, display name, IP) were affected. Config, tests, and README have been updated to match the new behavior.

…o "Positron Agent"

- Remove Zone computation (Inventory venue + venue-abbreviation/GAM-name
  fallback, including its instance-renaming side effect) from
  Endpoint/Device.ToMetricData. Zone is left empty for now pending a
  redesign of how it should be sourced.
- Remove the venue-abbreviation lookup subsystem from devicelookup
  (VenueAbbrLookup type, Load/Save/Refresh/IsVenueAbbrLookupStale,
  ZoneFor/ZoneForWithFallback/AbbreviationCandidate) and the now-unused
  DeviceInfo.Venue field.
- Stop maintaining/refreshing the venue-abbreviation cache in the worker.
- Fix ComponentName to a single constant, "Positron Agent", for every
  instance (endpoints and devices alike), replacing the previous
  per-record Positron-Endpoint/Positron-GAM heuristic.
- Remove the now-unused endpoint_component_name/gam_component_name config
  options.
- Update tests and README to match.
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