[ 
https://issues.apache.org/jira/browse/GEODE-8065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17368238#comment-17368238
 ] 

Alberto Bustamante Reyes commented on GEODE-8065:
-------------------------------------------------

There is a distributed test case verifying the export to csv ( 
ShowMetricsDUnitTest.testShowMetricsMemberWithFileOutput() ) and it passes on 
develop branch. Anyway I tried the process manually, and the export works fine: 
the file is created and it has content inside.



> show metrics --file option not exporting data to csv
> ----------------------------------------------------
>
>                 Key: GEODE-8065
>                 URL: https://issues.apache.org/jira/browse/GEODE-8065
>             Project: Geode
>          Issue Type: Bug
>          Components: gfsh
>            Reporter: Ashish Choudhary
>            Priority: Major
>
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to