You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/02/07 16:46:34 UTC

[GitHub] [hudi] vinishjail97 opened a new pull request #4759: Add zero value metrics for empty data source and PROMETHEUS_PUSHGATEW…

vinishjail97 opened a new pull request #4759:
URL: https://github.com/apache/hudi/pull/4759


   …AY reporter
   
   ## *Tips*
   - *Thank you very much for contributing to Apache Hudi.*
   - *Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.*
   
   ## What is the purpose of the pull request
   
   Prometheus [Pushgateway](https://prometheus.io/docs/practices/pushing/) never forgets series pushed to it and will expose them to Prometheus forever unless those series are manually deleted via the Pushgateway's API. When deltastreamer finds that there are no new records to be read from the source since the last checkpoint it doesn't emit a metric because the write path is not triggered and leads to a graph like below in case of PushGateway metrics reporter. For other metrics reporter it would be a null value and no data will be shown in the graph.
   
   `22/02/07 11:23:10 INFO DeltaSync: No new data, source checkpoint has not changed. Nothing to commit. Old checkpoint=(Option{val=20220207062847034}). New Checkpoint=(20220207062847034)
   `
   
   ![image](https://user-images.githubusercontent.com/16958856/152831831-7c4baab1-8b01-4100-8b64-40ec702e9749.png)
   
   To give a better representation of the actual metrics for Prometheus PushGateway, the counter metrics have to be updated with zero value so that it's better than having stale data which was ingested as part of the last checkpoint.  
   
   
   ![image](https://user-images.githubusercontent.com/16958856/152831933-7238666b-b6b4-4ac6-9962-399b6a4cf81b.png)
   
   
    
   
   
   ## Brief change log
   
   *(for example:)*
     - *Modify AnnotationLocation checkstyle rule in checkstyle.xml*
   
   ## Verify this pull request
   
   *(Please pick either of the following options)*
   
   This pull request is a trivial rework / code cleanup without any test coverage.
   
   *(or)*
   
   This pull request is already covered by existing tests, such as *(please describe tests)*.
   
   (or)
   
   This change added tests and can be verified as follows:
   
   *(example:)*
   
     - *Added integration tests for end-to-end.*
     - *Added HoodieClientWriteTest to verify the change.*
     - *Manually verified the change by running a job locally.*
   
   ## Committer checklist
   
    - [ ] Has a corresponding JIRA in PR title & commit
    
    - [ ] Commit message is descriptive of the change
    
    - [ ] CI is green
   
    - [ ] Necessary doc changes done or have another open PR
          
    - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hudi] vinishjail97 closed pull request #4759: Add zero value metrics for empty data source and PROMETHEUS_PUSHGATEW…

Posted by GitBox <gi...@apache.org>.
vinishjail97 closed pull request #4759:
URL: https://github.com/apache/hudi/pull/4759


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hudi] hudi-bot removed a comment on pull request #4759: Add zero value metrics for empty data source and PROMETHEUS_PUSHGATEW…

Posted by GitBox <gi...@apache.org>.
hudi-bot removed a comment on pull request #4759:
URL: https://github.com/apache/hudi/pull/4759#issuecomment-1031686933


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1ef2fe4b29bf7130bf8a6ec38574556d4f1f52f7",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "1ef2fe4b29bf7130bf8a6ec38574556d4f1f52f7",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1ef2fe4b29bf7130bf8a6ec38574556d4f1f52f7 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hudi] hudi-bot commented on pull request #4759: Add zero value metrics for empty data source and PROMETHEUS_PUSHGATEW…

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4759:
URL: https://github.com/apache/hudi/pull/4759#issuecomment-1031686933


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1ef2fe4b29bf7130bf8a6ec38574556d4f1f52f7",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "1ef2fe4b29bf7130bf8a6ec38574556d4f1f52f7",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1ef2fe4b29bf7130bf8a6ec38574556d4f1f52f7 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [hudi] hudi-bot commented on pull request #4759: Add zero value metrics for empty data source and PROMETHEUS_PUSHGATEW…

Posted by GitBox <gi...@apache.org>.
hudi-bot commented on pull request #4759:
URL: https://github.com/apache/hudi/pull/4759#issuecomment-1031690023


   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "1ef2fe4b29bf7130bf8a6ec38574556d4f1f52f7",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5769",
       "triggerID" : "1ef2fe4b29bf7130bf8a6ec38574556d4f1f52f7",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 1ef2fe4b29bf7130bf8a6ec38574556d4f1f52f7 Azure: [PENDING](https://dev.azure.com/apache-hudi-ci-org/785b6ef4-2f42-4a89-8f0e-5f0d7039a0cc/_build/results?buildId=5769) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org