Gateway Service Metrics Data Description
search cancel

Gateway Service Metrics Data Description

book

Article ID: 414402

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Can we get some description about the below 3 properties: maxFineAge, maxHourlyAge and maxDailyAge. Is there any articles which describes these properties in detail.

 

#com.l7tech.service.metrics.maxFineAge=3600000
#com.l7tech.service.metrics.maxHourlyAge=604800000
#com.l7tech.service.metrics.maxDailyAge=31536000000

Environment

Component: CA API Gateway

Resolution

In the service_metrics table, there are 3 types of bins that are created – fine bins (5 second bins), hourly bins, and Daily bins. Each type of bin contains information about the number of requests that occurred for a specific service within an interval

  • Fine bins – contains information on a specific service within a 5 second interval
  • Hourly bins – contains information on a specific service within an hour interval
  • Daily bins – contains information on a specific service within a 24 hour interval

Each bin has a default time interval (in milliseconds) for when they are generated

  • Fine bins interval (com.l7tech.service.metrics.fineBinInterval): 5000 (5 seconds)
    This is a property that can be manually altered 
  • hourly bins interval: 3600000 (1 hour)
    This is a constant and cannot be altered
  • Daily bins interval: 86400000  (24 hours)
    This is a constant and cannot be altered

Each bin has a property that determines the max age (in milliseconds) they can be. The max age determines how long a bin record can exist in the service metrics table. Once the record is older than its max age, it will be deleted during the next clean up (this cleanup process will be discussed more in the Deletions section). The default values are:

#com.l7tech.service.metrics.maxFineAge=3600000 (1 hour)
#com.l7tech.service.metrics.maxHourlyAge=604800000 (1 week)
#com.l7tech.service.metrics.maxDailyAge=31536000000 (1 year)