[ 
https://issues.apache.org/jira/browse/GOBBLIN-1806?focusedWorklogId=855564&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-855564
 ]

ASF GitHub Bot logged work on GOBBLIN-1806:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Apr/23 20:19
            Start Date: 07/Apr/23 20:19
    Worklog Time Spent: 10m 
      Work Description: Will-Lo commented on code in PR #3667:
URL: https://github.com/apache/gobblin/pull/3667#discussion_r1160941473


##########
gobblin-metrics-libs/gobblin-metrics-base/src/main/avro/GaaSObservabilityEventExperimental.avsc:
##########
@@ -188,6 +188,38 @@
           }
         }
       ]
-    }]
+    },
+    {
+      "name": "datasetsWritten",
+      "type": [
+        "null",
+        {
+          "type": "array",
+          "items": {
+            "type": "record",
+            "name": "DatasetMetric",
+            "doc": "DatasetMetric contains bytes and records written by 
Gobblin writers for the dataset URN.",
+            "fields": [
+              {
+                "name": "datasetUrn",
+                "type": "string",
+                "doc": "URN of the dataset"
+              },
+              {
+                "name": "bytesWritten",
+                "type": "long",
+                "doc": "Number of bytes written for the dataset"

Review Comment:
   For the DB writers it's not supported, for `JdbcWriter they support records 
written but for bytesWritten it's implemented as below.
   ```
     /**
      * This is not supported for JDBC writer.
      * {@inheritDoc}
      * @see org.apache.gobblin.writer.DataWriter#bytesWritten()
      */
     @Override
     public long bytesWritten() throws IOException {
       return -1L;
     }
     ```





Issue Time Tracking
-------------------

    Worklog Id:     (was: 855564)
    Time Spent: 1h 20m  (was: 1h 10m)

> Create a GTE for recording bytes/records written for each dataset in a 
> Gobblin job
> ----------------------------------------------------------------------------------
>
>                 Key: GOBBLIN-1806
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1806
>             Project: Apache Gobblin
>          Issue Type: Improvement
>          Components: gobblin-core
>            Reporter: William Lo
>            Assignee: Abhishek Tiwari
>            Priority: Major
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Gobblin collects a lot of writer metrics on number of bytes and records 
> written to the sinks, but does not emit these metrics as part of a 
> GobblinTrackingEvent.
> We want to emit these in a GobblinTrackingEvent so that it can be ingested by 
> montioring systems and GaaS.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to