You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/09/30 23:57:03 UTC

[GitHub] sijie opened a new pull request #2686: [functions][metrics] Update function metrics

sijie opened a new pull request #2686: [functions][metrics] Update function metrics
URL: https://github.com/apache/pulsar/pull/2686
 
 
   some prometheus agent are picky at the prometheus output format. this change to make metric type is by the metric. The resulting output is showed as below
   
   ```
   # TYPE pulsar_function__total_processed__sum gauge
   pulsar_function__total_processed__sum{cluster="standalone",namespace="test/test-namespace",name="example",instanceId="0"} 0.0 1538351566227
   # TYPE pulsar_function__total_successfully_processed__count gauge
   pulsar_function__total_successfully_processed__count{cluster="standalone",namespace="test/test-namespace",name="example",instanceId="0"} 0.0 1538351566227
   # TYPE pulsar_function__total_successfully_processed__max gauge
   pulsar_function__total_successfully_processed__max{cluster="standalone",namespace="test/test-namespace",name="example",instanceId="0"} 0.0 1538351566227
   # TYPE pulsar_function__total_successfully_processed__min gauge
   pulsar_function__total_successfully_processed__min{cluster="standalone",namespace="test/test-namespace",name="example",instanceId="0"} 0.0 1538351566227
   # TYPE pulsar_function__total_successfully_processed__sum gauge
   pulsar_function__total_successfully_processed__sum{cluster="standalone",namespace="test/test-namespace",name="example",instanceId="0"} 0.0 1538351566227
   # TYPE pulsar_function__total_system_exceptions__count gauge
   pulsar_function__total_system_exceptions__count{cluster="standalone",namespace="test/test-namespace",name="example",instanceId="0"} 0.0 1538351566227
   # TYPE pulsar_function__total_system_exceptions__max gauge
   pulsar_function__total_system_exceptions__max{cluster="standalone",namespace="test/test-namespace",name="example",instanceId="0"} 0.0 1538351566227
   # TYPE pulsar_function__total_system_exceptions__min gauge
   pulsar_function__total_system_exceptions__min{cluster="standalone",namespace="test/test-namespace",name="example",instanceId="0"} 0.0 1538351566227
   # TYPE pulsar_function__total_system_exceptions__sum gauge
   pulsar_function__total_system_exceptions__sum{cluster="standalone",namespace="test/test-namespace",name="example",instanceId="0"} 0.0 1538351566227
   # TYPE pulsar_function__total_user_exceptions__count gauge
   pulsar_function__total_user_exceptions__count{cluster="standalone",namespace="test/test-namespace",name="example",instanceId="0"} 0.0 1538351566227
   # TYPE pulsar_function__total_user_exceptions__max gauge
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services