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



##########
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:
       I suggest to add a link to functions-worker doc, should enough to let 
reader understand.




-- 
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:
[email protected]


Reply via email to