New analytics group - what about sampling properties when enabling analytics for environment?

michaelveit
Participant III

Apigee on premise offers 2 options to enable analytics:

  1. Following "Creating an organization, environment, and virtual host", providing a JSON with server UUIDs and sampling properties:
    https://docs.apigee.com/private-cloud/v4.50.00/creating-organization-environment-and-virtual-host
    /v1/organizations/org_name/environments/env_name/analytics/admin -d "@sample.json"
  2. Following "Adding a new analytics group":
    https://docs.apigee.com/private-cloud/v4.50.00/adding-new-analytics-group
    /v1/analytics/groups/ax/axgroupNew/scopes?org=org_name&env=env_name

We are going to use approach 2, as we have globally distributed regions (with separated network segments), and using same analytics group for all regions is causing analytics errors in Edge, ending up in status "UNKNOWN" for "pg" after onboarding of new applications (having SQL errors in the log, pointing to missing DB schema, restarting edge-postgres-server helps, but we are creating orgs automated, on-the-fly using MS REST API without any administrator interaction...):

https://docs.apigee.com/api-platform/troubleshoot/analytics/data-not-showing-analytics-dashboards#in...

Furthermore, when adding an env with 2 qpid UUIDs, analytics status for that env returns ALL qpids across all regions. This is solved using dedicated analytics group per region, carrying all environments bound to that region.

Using new analytics groups, the sampling properties used in approach 1 are not mentioned in the Apigee documentation for approach 2 at all:

 "properties" : {
    "samplingAlgo" : "reservoir_sampler",
    "samplingTables" : "10=ten;1=one;",
    "aggregationinterval" : "300000",
    "samplingInterval" : "300000",
    "useSampling" : "100",
    "samplingThreshold" : "100000"
  },

Questions:

  • Should they simply be set as properties of the analytics group?
  • Do we not need to care about there properties, if we are glad with defaults (where can I see the defaults)?
0 0 172
0 REPLIES 0