Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-8065

show metrics --file option not exporting data to csv

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • gfsh
    • None

    Description

      Connect to gfsh and run below command to export metrics to csv file.

      gfsh>show metrics --file=/Users/ashishchoudhary/Downloads/test.csv

      Cluster-wide Metrics

       

      Category  |        Metric         | Value

      --------- | --------------------- | -----

      cluster   | totalHeapSize         | 886

      cache     | totalRegionEntryCount | 0

                | totalRegionCount      | 1

                | totalMissCount        | 1

                | totalHitCount         | 4

      diskstore | totalDiskUsage        | 0

                | diskReadsRate         | 0.0

                | diskWritesRate        | 0.0

                | flushTimeAvgLatency   | 0

                | totalBackupInProgress | 0

      query     | activeCQCount         | 0

                | queryRequestRate      | 0.0

       

      File saved to /Users/ashishchoudhary/Downloads/test.csv

      But there is no file saved to the above location. Even if you manually create a file and export data using above gfsh command it shows zero bytes i.e no content after the export.

      After manually creating .csv file

      show metrics --file=/Users/ashishchoudhary/Downloads/test.csv

      File "test.csv" already exists Overwrite? (Y/N) : Y

      Cluster-wide Metrics

       

      Category  |        Metric         | Value

      --------- | --------------------- | -----

      cluster   | totalHeapSize         | 886

      cache     | totalRegionEntryCount | 0

                | totalRegionCount      | 1

                | totalMissCount        | 1

                | totalHitCount         | 4

      diskstore | totalDiskUsage        | 0

                | diskReadsRate         | 0.0

                | diskWritesRate        | 0.0

                | flushTimeAvgLatency   | 0

                | totalBackupInProgress | 0

      query     | activeCQCount         | 0

                | queryRequestRate      | 0.0

       

      File saved to /Users/ashishchoudhary/Downloads/test.csv

      There is no data actually in the .csv file.

      Attachments

        Activity

          People

            Unassigned Unassigned
            achoudhary Ashish Choudhary
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: