Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4370

Persist Metrics for user to retrieve Metrics info at a past timestamp

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • None
    • atlas-intg, atlas-webui
    • None

    Description

      1. Create new typeDef of MetricsStat to persist Metrics entity.
      2. Create MetricsStat class to keep Metrics' info about collectionTime, metricsId and ttl; create MetricsStatsDTO class to transfer states between MetricsStat and AtlasEntity when it is saved or retrieved from JanusGraph.
      3. Create MetricsStatMin to represent the minimal information about persisted MetricsStat.
      4. Create job scheduler with configurable metrics.persist.schedule (default as 7 days) & metrics.ttl.hours (default as 1 hr interval) to save a metrics entity to db and to sweep through all metrics entities and clear the ones whose time-to-live (ttl) has past.
      5. Update MetricsService to implement REST APIs in AdminResource to realize api calls of:
        • Get all persisted metricsStats, with boolean variable to choose its return type as a list of metricsStats with specific details, or with minimal information;
        • Get a specific metricsStat by collectionTime
      6. Update MetricsService to include helper methods of:
        • Save a metricsStat to db
        • Get or delete a persisted metricsStat by collectionTime
        • Purge metricsStats whose ttl has past

      Attachments

        Issue Links

          Activity

            People

              dishatalreja Disha Talreja
              jiapei1001 JP
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: