All customers' Metrics are isolated in the dedicated workspaces.
Metrics are captured from the Fluent APIs, Orchestration Engine (Rubix), Batch Pre-Processing, and Inventory Feeds.
Use `metricInstant` and `metricRange` GraphQL queries to retrieve the Metrics data.
Metrics Data Segregation
All customers' Metrics are isolated on the Fluent platform due to the Metrics Data Segregation.
The purpose of data segregation is to:
Ensure data security, privacy, and compliance;
Maintain the Metrics' data integrity;
Prevent unauthorized access from different customers.
Metrics Data multi-tenancy solution principals:
One Metrics workspace per customer per environment.
One Metrics workspace is responsible for managing the Metrics Data for only one customer:
writing,
storing,
querying.
One Metrics workspace stores the Metrics for all the Retailers associated with one customer/account.
Metrics Managing Flow
Metrics managing flow includes the following steps:
1. We instrument the Application Source Code to capture the Platform Metrics as activity occurs.
Two primary applications play pivotal roles in the Processing flow:
Fluent APIs act as an entry point, accepting external HTTP API requests from the customer. The Metrics captured for Fluent APIs pertain to the requests that:
the Fluent platform has “received”,
or the ones customers have “sent”.
Orchestration engine (Rubix) processes the customer’s business logic by executing Orchestration event requests. The Metrics captured here relate to the Fluent platform's requests “processed”.
2. The Metrics data is routed (through the Metrics Collector) to each customer-specific Metrics workspace by remote writing endpoint based on the `account_id` label value.
The Metrics data is stored in the Metrics workspace and ready for query.
GraphQL API provides the authorization functionality:
Validation of the user token correctness.
Validation if the user has been granted the accessible roles/permissions.
Info
`METRICS_VIEW` has been created for the Metrics data access management.
The introduction of GraphQL API as a proxy guarantees that all the Metrics queries requested by one user always belong to one specific customer/account rather than all customers' Metrics being accessible by any users.
Info
Metrics API query operations could be utilized in OMX UX Framework Manifest directly.
Metrics API Querying Flow
Metrics API querying flow includes the following steps: