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 2021/08/10 10:20:21 UTC

[GitHub] [pulsar] frankxieke opened a new issue #11626: metrics label with a redundant comma at the last

frankxieke opened a new issue #11626:
URL: https://github.com/apache/pulsar/issues/11626


   **Describe the bug**
   
   Metrics problem , it seems that some prometheus metrics lable with a redundant comma.
   
   
   pulsar_function_worker_stop_instance_process_time_ms{cluster="standalone",quantile="0.5",} NaN
   pulsar_function_worker_stop_instance_process_time_ms{cluster="standalone",quantile="0.9",} NaN
   pulsar_function_worker_stop_instance_process_time_ms{cluster="standalone",quantile="1.0",} NaN
   pulsar_function_worker_stop_instance_process_time_ms_count{cluster="standalone",} 0.0
   pulsar_function_worker_stop_instance_process_time_ms_sum{cluster="standalone",} 0.0
   pulsar_function_worker_rebalance_strategy_execution_time_ms{cluster="standalone",quantile="0.5",} NaN
   pulsar_function_worker_rebalance_strategy_execution_time_ms{cluster="standalone",quantile="0.9",} NaN
   pulsar_function_worker_rebalance_strategy_execution_time_ms{cluster="standalone",quantile="1.0",} NaN
   pulsar_function_worker_rebalance_strategy_execution_time_ms_count{cluster="standalone",} 0.0
   pulsar_function_worker_rebalance_strategy_execution_time_ms_sum{cluster="standalone",} 0.0
   pulsar_function_worker_start_up_time_ms_count{cluster="standalone",} 1.0
   pulsar_function_worker_start_up_time_ms_sum{cluster="standalone",} 2561.464714
   pulsar_function_worker_instance_count{cluster="standalone",} 0.0
   pulsar_function_worker_start_instance_process_time_ms{cluster="standalone",quantile="0.5",} NaN
   pulsar_function_worker_start_instance_process_time_ms{cluster="standalone",quantile="0.9",} NaN
   pulsar_function_worker_start_instance_process_time_ms{cluster="standalone",quantile="1.0",} NaN
   pulsar_function_worker_start_instance_process_time_ms_count{cluster="standalone",} 0.0
   pulsar_function_worker_start_instance_process_time_ms_sum{cluster="standalone",} 0.0
   pulsar_function_worker_schedule_execution_time_total_ms{cluster="standalone",quantile="0.5",} 76.181636
   pulsar_function_worker_schedule_execution_time_total_ms{cluster="standalone",quantile="0.9",} 76.181636
   pulsar_function_worker_schedule_execution_time_total_ms{cluster="standalone",quantile="1.0",} 76.181636
   pulsar_function_worker_schedule_execution_time_total_ms_count{cluster="standalone",} 1.0
   pulsar_function_worker_schedule_execution_time_total_ms_sum{cluster="standalone",} 76.181636
   pulsar_function_worker_rebalance_execution_time_total_ms{cluster="standalone",quantile="0.5",} NaN
   pulsar_function_worker_rebalance_execution_time_total_ms{cluster="standalone",quantile="0.9",} NaN
   pulsar_function_worker_rebalance_execution_time_total_ms{cluster="standalone",quantile="1.0",} NaN
   pulsar_function_worker_rebalance_execution_time_total_ms_count{cluster="standalone",} 0.0
   pulsar_function_worker_rebalance_execution_time_total_ms_sum{cluster="standalone",} 0.0
   pulsar_function_worker_schedule_strategy_execution_time_ms{cluster="standalone",quantile="0.5",} 0.0359
   pulsar_function_worker_schedule_strategy_execution_time_ms{cluster="standalone",quantile="0.9",} 0.0359
   pulsar_function_worker_schedule_strategy_execution_time_ms{cluster="standalone",quantile="1.0",} 0.0359
   pulsar_function_worker_schedule_strategy_execution_time_ms_count{cluster="standalone",} 1.0
   pulsar_function_worker_schedule_strategy_execution_time_ms_sum{cluster="standalone",} 0.0359
   pulsar_function_worker_total_function_count{cluster="standalone",} 0
   pulsar_function_worker_total_expected_instance_count{cluster="standalone",} 0
   pulsar_function_worker_is_leader{cluster="standalone",} 1
   
   **To Reproduce**
   
   get from the broker metrics interface through http.
   
   **Expected behavior**
   without comma at the end
   
   **Screenshots**
   <img width="1163" alt="aaa" src="https://user-images.githubusercontent.com/2771968/128850415-ce6116e5-6bdc-4639-ae57-79a2a8b5c003.png">
   
   
   


-- 
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@pulsar.apache.org

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



[GitHub] [pulsar] codelipenghui commented on issue #11626: metrics label with a redundant comma at the last

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #11626:
URL: https://github.com/apache/pulsar/issues/11626#issuecomment-1058887226


   The issue had no activity for 30 days, mark with Stale label.


-- 
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@pulsar.apache.org

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



[GitHub] [pulsar] leizhiyuan commented on issue #11626: metrics label with a redundant comma at the last

Posted by GitBox <gi...@apache.org>.
leizhiyuan commented on issue #11626:
URL: https://github.com/apache/pulsar/issues/11626#issuecomment-895966458


   org.apache.pulsar.functions.worker.WorkerStatsManager#writeMetric
   
   ```
   for (int i = 0; i < metricsLabelNames.length; i++) {
         stream.write(metricsLabelNames[i]);
         stream.write('=');
         stream.write('\"');
         stream.write(metricsLabels[i]);
         stream.write("\",");
       }
   ```
   
   write a comma in the last line.


-- 
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@pulsar.apache.org

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