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/04/03 04:13:42 UTC

[GitHub] [pulsar] freeznet commented on a change in pull request #10133: [Doc] Add monitoring guidelines for function and connector

freeznet commented on a change in pull request #10133:
URL: https://github.com/apache/pulsar/pull/10133#discussion_r606614822



##########
File path: site2/docs/deploy-monitoring.md
##########
@@ -69,6 +69,26 @@ brk_ml_cursor_persistZookeeperErrors(namespace="", ledger_name="", cursor_name:"
 
 Those metrics are added in the Prometheus interface, you can monitor and check the metrics stats in the Grafana.
 
+### Function & connector stats
+
+You can collect functions worker stats from `functions-worker` and export the metrics in JSON formats, which contain functions worker JVM metrics.
+
+```
+pulsar-admin functions-worker monitoring-metrics
+```
+
+You can collect functions and connectors metrics from `functions-worker` and export the metrics in JSON formats.
+
+```
+pulsar-admin functions-worker function-stats
+```
+
+The aggregated functions and connectors metrics can be exposed in Prometheus formats as below. You can get `FUNCTIONS_WORKER_ADDRESS` and `WORKER_PORT` from the `functions_worker.yml` file.

Review comment:
       `FUNCTIONS_WORKER_ADDRESS` is not in `functions_worker.yml`, it is related how user config their functions worker, related to [http://pulsar.apache.org/docs/en/next/functions-worker/](http://pulsar.apache.org/docs/en/next/functions-worker/).




-- 
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.

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