You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "corgy-w (via GitHub)" <gi...@apache.org> on 2024/09/03 16:43:39 UTC

[PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

corgy-w opened a new pull request, #7564:
URL: https://github.com/apache/seatunnel/pull/7564

   ### Purpose of this pull request
   
   issue: #7539 
   
   ing:       :>
   1. Provides complete grafana config template
   2. Testing 
   3. Continue to add  indicators,See doc for details(comments are welcome)
   
   ### Does this PR introduce _any_ user-facing change?
   
   ### How was this patch tested?
   e2e
   
   ### Check list
   
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according
     [New License Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/contribution/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
   * [ ] If you are contributing the connector code, please check that the following files are updated:
     1. Update [plugin-mapping.properties](https://github.com/apache/seatunnel/blob/dev/plugin-mapping.properties) and add new connector information in it
     4. Update the pom file of [seatunnel-dist](https://github.com/apache/seatunnel/blob/dev/seatunnel-dist/pom.xml)
     5. Add ci label in [label-scope-conf](https://github.com/apache/seatunnel/blob/dev/.github/workflows/labeler/label-scope-conf.yml)
     6. Add e2e testcase in [seatunnel-e2e](https://github.com/apache/seatunnel/tree/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/)
     7. Update connector [plugin_config](https://github.com/apache/seatunnel/blob/dev/config/plugin_config)
   * [ ] Update the [`release-note`](https://github.com/apache/seatunnel/blob/dev/release-note.md).


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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "hailin0 (via GitHub)" <gi...@apache.org>.
hailin0 commented on PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#issuecomment-2329093774

   good job


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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "hailin0 (via GitHub)" <gi...@apache.org>.
hailin0 commented on PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#issuecomment-2329104096

   Please add monitoring screenshots


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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "corgy-w (via GitHub)" <gi...@apache.org>.
corgy-w commented on PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#issuecomment-2328208801

   > The [grafana-dashboard.json](https://github.com/apache/seatunnel/pull/7564/files#diff-ce66180f2b81eaf7ee32f9a92fb73d2fcbf990b78bb519db8278f18e0104728c) is empty. Please update it.
   
   @Hisoka-X As mentioned above, grafana template will have to wait a little longer, but this week


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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "corgy-w (via GitHub)" <gi...@apache.org>.
corgy-w commented on code in PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#discussion_r1743284303


##########
docs/zh/seatunnel-engine/telemetry.md:
##########
@@ -0,0 +1,152 @@
+---
+
+sidebar_position: 8
+-------------------

Review Comment:
   get



##########
docs/en/seatunnel-engine/telemetry.md:
##########
@@ -0,0 +1,153 @@
+---
+
+sidebar_position: 8
+-------------------
+
+# Telemetry

Review Comment:
   get
   



##########
docs/en/seatunnel-engine/telemetry.md:
##########
@@ -0,0 +1,153 @@
+---
+
+sidebar_position: 8
+-------------------

Review Comment:
   get
   



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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on code in PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#discussion_r1743269555


##########
docs/zh/seatunnel-engine/telemetry.md:
##########
@@ -0,0 +1,152 @@
+---
+
+sidebar_position: 8
+-------------------

Review Comment:
   ditto



##########
docs/en/seatunnel-engine/telemetry.md:
##########
@@ -0,0 +1,153 @@
+---
+
+sidebar_position: 8
+-------------------

Review Comment:
   ```suggestion
   ---
   sidebar_position: 8
   ---
   ```



##########
docs/en/seatunnel-engine/telemetry.md:
##########
@@ -0,0 +1,153 @@
+---
+
+sidebar_position: 8
+-------------------
+
+# Telemetry

Review Comment:
   Please update https://github.com/apache/seatunnel/blob/e31c9c2a9a0804fd24f3ad16ab28fa4fd7ecc2bb/docs/sidebars.js#L193



##########
docs/en/seatunnel-engine/telemetry.md:
##########
@@ -0,0 +1,153 @@
+---
+
+sidebar_position: 8
+-------------------
+
+# Telemetry
+
+Integrating `Metrices` through `Prometheus-exports` can better seamlessly connect to related monitoring platforms such
+as Prometheus and Grafana, improving the ability to monitor and alarm of the SeaTunnel cluster.
+
+You can configure telemetry's configurations in the `seatunnel.yaml` file.
+
+The following is an example declarative configuration.
+
+```yaml
+seatunnel:
+  engine:
+    telemetry:
+      metric:
+        enabled: true # Whether open metrics export
+```
+
+## Metrics
+
+The [metric text of prometheus](./telemetry/metrics.txt),which get
+from `http:{instanceHost}:5801/hazelcast/rest/instance/metrics`.
+
+The [metric text of openMetrics](./telemetry/openmetrics.txt),which get
+from `http:{instanceHost}:5801/hazelcast/rest/instance/openmetrics`.
+
+Available metrics include the following categories.
+
+Note: All metrics both have the same labelName `cluster`, that's value is the config of `hazelcast.cluster-name`.
+
+### Node Metrics
+
+| MetricName                                | Type  | Labels                                                                                                                             | DESCRIPTION                                                             |
+|-------------------------------------------|-------|------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|
+| cluster_info                              | Gauge | **hazelcastVersion**, the version of hazelcast. **master**, seatunnel master address.                                              | Cluster info                                                            |
+| cluster_time                              | Gauge | **hazelcastVersion**, the version of hazelcast.                                                                                    | Cluster time                                                            |
+| node_count                                | Gauge | -                                                                                                                                  | Cluster node total count                                                |
+| node_state                                | Gauge | **address**, server instance address,for example: "127.0.0.1:5801"                                                                 | Whether is up of seatunnel node                                         |
+| hazelcast_executor_executedCount          | Gauge | **type**, the type of executor, including: "async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | The hazelcast executor executedCount of seatunnel cluster node          |
+| hazelcast_executor_isShutdown             | Gauge | **type**, the type of executor, including: "async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | The hazelcast executor isShutdown of seatunnel cluster node             |
+| hazelcast_executor_isTerminated           | Gauge | **type**, the type of executor, including: "async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | The hazelcast executor isTerminated of seatunnel cluster node           |
+| hazelcast_executor_maxPoolSize            | Gauge | **type**, the type of executor, including: "async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | The hazelcast executor maxPoolSize of seatunnel cluster node            |
+| hazelcast_executor_poolSize               | Gauge | **type**, the type of executor, including: "async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | The hazelcast executor poolSize of seatunnel cluster node               |
+| hazelcast_executor_queueRemainingCapacity | Gauge | **type**, the type of executor, including: "async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | The hazelcast executor queueRemainingCapacity of seatunnel cluster node |
+| hazelcast_executor_queueSize              | Gauge | **type**, the type of executor, including: "async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | The hazelcast executor queueSize of seatunnel cluster node              |
+| hazelcast_partition_partitionCount        | Gauge | -                                                                                                                                  | The partitionCount of seatunnel cluster node                            |
+| hazelcast_partition_activePartition       | Gauge | -                                                                                                                                  | The activePartition of seatunnel cluster node                           |
+| hazelcast_partition_isClusterSafe         | Gauge | -                                                                                                                                  | Weather is cluster safe of partition                                    |
+| hazelcast_partition_isLocalMemberSafe     | Gauge | -                                                                                                                                  | Weather is local member safe of partition                               |
+
+### Thread Pool Status
+
+| MetricName                          | Type    | Labels                                                             | DESCRIPTION                                                                    |
+|-------------------------------------|---------|--------------------------------------------------------------------|--------------------------------------------------------------------------------|
+| job_thread_pool_activeCount         | Gauge   | **address**, server instance address,for example: "127.0.0.1:5801" | The activeCount of seatunnel coordinator job's executor cached thread pool     |
+| job_thread_pool_corePoolSize        | Gauge   | **address**, server instance address,for example: "127.0.0.1:5801" | The corePoolSize of seatunnel coordinator job's executor cached thread pool    |
+| job_thread_pool_maximumPoolSize     | Gauge   | **address**, server instance address,for example: "127.0.0.1:5801" | The maximumPoolSize of seatunnel coordinator job's executor cached thread pool |
+| job_thread_pool_poolSize            | Gauge   | **address**, server instance address,for example: "127.0.0.1:5801" | The poolSize of seatunnel coordinator job's executor cached thread pool        |
+| job_thread_pool_queueTaskCount      | Gauge   | **address**, server instance address,for example: "127.0.0.1:5801" | The queueTaskCount of seatunnel coordinator job's executor cached thread pool  |
+| job_thread_pool_completedTask_total | Counter | **address**, server instance address,for example: "127.0.0.1:5801" | The completedTask of seatunnel coordinator job's executor cached thread pool   |
+| job_thread_pool_task_total          | Counter | **address**, server instance address,for example: "127.0.0.1:5801" | The taskCount of seatunnel coordinator job's executor cached thread pool       |
+| job_thread_pool_rejection_total     | Counter | **address**, server instance address,for example: "127.0.0.1:5801" | The rejectionCount of seatunnel coordinator job's executor cached thread pool  |                                                                        |
+
+### Job info detail
+
+| MetricName | Type  | Labels                                                                                                                      | DESCRIPTION                         |
+|------------|-------|-----------------------------------------------------------------------------------------------------------------------------|-------------------------------------|
+| job_count  | Gauge | **type**, the type of job, including: "canceled" "cancelling" "created" "failed" "failing" "finished" "running" "scheduled" | All job counts of seatunnel cluster |
+
+### JVM Metrics
+
+| MetricName                                 | Type    | Labels                                                                                                                                                | DESCRIPTION                                                                                            |
+|--------------------------------------------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|
+| jvm_threads_current                        | Gauge   | -                                                                                                                                                     | Current thread count of a JVM                                                                          |
+| jvm_threads_daemon                         | Gauge   | -                                                                                                                                                     | Daemon thread count of a JVM                                                                           |
+| jvm_threads_peak                           | Gauge   | -                                                                                                                                                     | Peak thread count of a JVM                                                                             |
+| jvm_threads_started_total                  | Counter | -                                                                                                                                                     | Started thread count of a JVM                                                                          |
+| jvm_threads_deadlocked                     | Gauge   | -                                                                                                                                                     | Cycles of JVM-threads that are in deadlock waiting to acquire object monitors or ownable synchronizers |
+| jvm_threads_deadlocked_monitor             | Gauge   | -                                                                                                                                                     | Cycles of JVM-threads that are in deadlock waiting to acquire object monitors                          |
+| jvm_threads_state                          | Gauge   | **state**, the state of jvm thread, including: "NEW" "TERMINATED" "RUNNABLE" "BLOCKED" "WAITING" "TIMED_WAITING" "UNKNOWN"                            | Current count of threads by state                                                                      |
+| jvm_classes_currently_loaded               | Gauge   | -                                                                                                                                                     | The number of classes that are currently loaded in the JVM                                             |
+| jvm_classes_loaded_total                   | Counter | -                                                                                                                                                     | The total number of classes that have been loaded since the JVM has started execution                  |
+| jvm_classes_unloaded_total                 | Counter | -                                                                                                                                                     | The total number of classes that have been unloaded since the JVM has started execution                |
+| jvm_memory_pool_allocated_bytes_total      | Counter | **pool**,including: "Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"                                 | Total bytes allocated in a given JVM memory pool. Only updated after GC, not continuously              |
+| jvm_gc_collection_seconds_count            | Summary | **gc**,including: "PS Scavenge" "PS MarkSweep"                                                                                                        | Time spent in a given JVM garbage collector in seconds                                                 |
+| jvm_gc_collection_seconds_sum              | Summary | **gc**,including: "PS Scavenge" "PS MarkSweep"                                                                                                        | Time spent in a given JVM garbage collector in seconds                                                 |
+| jvm_info                                   | Gauge   | **runtime**, for example: "Java(TM) SE Runtime Environment". **vendor**, for example: "Oracle Corporation". **version** ,for example: "1.8.0_212-b10" | VM version info                                                                                        |
+| process_cpu_seconds_total                  | Counter | -                                                                                                                                                     | Total user and system CPU time spent in seconds                                                        |
+| process_start_time_seconds                 | Gauge   | -                                                                                                                                                     | Start time of the process since unix epoch in seconds                                                  |
+| process_open_fds                           | Gauge   | -                                                                                                                                                     | Number of open file descriptors                                                                        |
+| process_max_fds                            | Gauge   | -                                                                                                                                                     | Maximum number of open file descriptors                                                                |
+| jvm_memory_objects_pending_finalization    | Gauge   | -                                                                                                                                                     | The number of objects waiting in the finalizer queue                                                   |
+| jvm_memory_bytes_used                      | Gauge   | **area**, including: "heap" "noheap"                                                                                                                  | Used bytes of a given JVM memory area                                                                  |
+| jvm_memory_bytes_committed                 | Gauge   | **area**, including: "heap" "noheap"                                                                                                                  | Committed (bytes) of a given JVM memory area                                                           |
+| jvm_memory_bytes_max                       | Gauge   | **area**, including:"heap" "noheap"                                                                                                                   | Max (bytes) of a given JVM memory area                                                                 |
+| jvm_memory_bytes_init                      | Gauge   | **area**, including:"heap" "noheap"                                                                                                                   | Initial bytes of a given JVM memory area                                                               |
+| jvm_memory_pool_bytes_used                 | Gauge   | **pool**, including: "Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"                                | Used bytes of a given JVM memory pool                                                                  |
+| jvm_memory_pool_bytes_committed            | Gauge   | **pool**, including: "Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"                                | Committed bytes of a given JVM memory pool                                                             |
+| jvm_memory_pool_bytes_max                  | Gauge   | **pool**, including: "Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"                                | Max bytes of a given JVM memory pool                                                                   |
+| jvm_memory_pool_bytes_init                 | Gauge   | **pool**, including: "Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"                                | Initial bytes of a given JVM memory pool                                                               |
+| jvm_memory_pool_allocated_bytes_created    | Gauge   | **pool**, including: "Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"                                | Total bytes allocated in a given JVM memory pool. Only updated after GC, not continuously              |
+| jvm_memory_pool_collection_used_bytes      | Gauge   | **pool**, including: "PS Eden Space" "PS Old Ge" "PS Survivor Space"                                                                                  | Used bytes after last collection of a given JVM memory pool                                            |
+| jvm_memory_pool_collection_committed_bytes | Gauge   | **pool**, including: "PS Eden Space" "PS Old Ge" "PS Survivor Space"                                                                                  | Committed after last collection bytes of a given JVM memory pool                                       |
+| jvm_memory_pool_collection_max_bytes       | Gauge   | **pool**, including: "PS Eden Space" "PS Old Ge" "PS Survivor Space"                                                                                  | Max bytes after last collection of a given JVM memory pool                                             |
+| jvm_memory_pool_collection_init_bytes      | Gauge   | **pool**, including: "PS Eden Space" "PS Old Ge" "PS Survivor Space"                                                                                  | Initial after last collection bytes of a given JVM memory pool                                         |
+| jvm_buffer_pool_used_bytes                 | Gauge   | **pool**, including: "direct" "mapped"                                                                                                                | Used bytes of a given JVM buffer pool                                                                  |
+| jvm_buffer_pool_capacity_bytes             | Gauge   | **pool**, including: "direct" "mapped"                                                                                                                | Bytes capacity of a given JVM buffer pool                                                              |
+| jvm_buffer_pool_used_buffers               | Gauge   | **pool**, including: "direct" "mapped"                                                                                                                | Used buffers of a given JVM buffer pool                                                                |
+
+### Cluster Monitoring By Prometheus & Grafana
+
+#### Install Prometheus
+
+For a guide on how to set up Prometheus server go to
+the [Installation](https://prometheus.io/docs/prometheus/latest/installation)
+
+#### Configuration Prometheus
+
+Add seatunnel instance metric exports into `/etc/prometheus/prometheus.yaml`. For example:
+
+```yaml
+global:
+  # How frequently to scrape targets from this job.
+  scrape_interval: 15s
+scrape_configs:
+  # The job name assigned to scraped metrics by default.
+  - job_name: 'seatunnel'
+    scrape_interval: 5s
+    # Metrics export path 
+    metrics_path: /hazelcast/rest/instance/metrics
+    # List of labeled statically configured targets for this job.
+    static_configs:
+      # The targets specified by the static config.
+      - targets: [ 'localhost:5801' ]
+      # Labels assigned to all metrics scraped from the targets.
+      # labels: [<labelName>:<labelValue>]
+```
+
+#### Install Grafana
+
+For a guide on how to set up Grafana server go to
+the [Installation](https://grafana.com/docs/grafana/latest/setup-grafana/installation)
+
+#### Monitoring Dashboard
+
+- Add Prometheus DataSource on Grafana.
+  - Import `Seatunnel Cluster` monitoring dashboard by [Dashboard JSON](./telemetry/grafana-dashboard.json) into Grafana.
+
+The effect image of the dashboard

Review Comment:
   where is it?



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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "hailin0 (via GitHub)" <gi...@apache.org>.
hailin0 merged PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564


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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "corgy-w (via GitHub)" <gi...@apache.org>.
corgy-w commented on code in PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#discussion_r1749087612


##########
config/seatunnel.yaml:
##########
@@ -34,3 +34,6 @@ seatunnel:
           namespace: /tmp/seatunnel/checkpoint_snapshot
           storage.type: hdfs
           fs.defaultFS: file:///tmp/ # Ensure that the directory has written permission
+    telemetry:
+      metric:
+        enabled: true

Review Comment:
   get



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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "corgy-w (via GitHub)" <gi...@apache.org>.
corgy-w commented on code in PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#discussion_r1751422259


##########
docs/en/seatunnel-engine/telemetry.md:
##########
@@ -0,0 +1,152 @@
+---
+sidebar_position: 13
+---
+
+# Telemetry
+
+Integrating `Metrices` through `Prometheus-exports` can better seamlessly connect to related monitoring platforms such
+as Prometheus and Grafana, improving the ability to monitor and alarm of the SeaTunnel cluster.
+
+You can configure telemetry's configurations in the `seatunnel.yaml` file.
+
+The following is an example declarative configuration.
+
+```yaml
+seatunnel:
+  engine:
+    telemetry:
+      metric:
+        enabled: true # Whether open metrics export
+```
+
+## Metrics
+
+The [metric text of prometheus](./telemetry/metrics.txt),which get
+from `http:{instanceHost}:5801/hazelcast/rest/instance/metrics`.
+
+The [metric text of openMetrics](./telemetry/openmetrics.txt),which get
+from `http:{instanceHost}:5801/hazelcast/rest/instance/openmetrics`.

Review Comment:
   get



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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on code in PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#discussion_r1749036199


##########
config/seatunnel.yaml:
##########
@@ -34,3 +34,6 @@ seatunnel:
           namespace: /tmp/seatunnel/checkpoint_snapshot
           storage.type: hdfs
           fs.defaultFS: file:///tmp/ # Ensure that the directory has written permission
+    telemetry:
+      metric:
+        enabled: true

Review Comment:
   how about turn off by default?



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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on code in PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#discussion_r1751386608


##########
docs/en/seatunnel-engine/telemetry.md:
##########
@@ -0,0 +1,152 @@
+---
+sidebar_position: 13
+---
+
+# Telemetry
+
+Integrating `Metrices` through `Prometheus-exports` can better seamlessly connect to related monitoring platforms such
+as Prometheus and Grafana, improving the ability to monitor and alarm of the SeaTunnel cluster.
+
+You can configure telemetry's configurations in the `seatunnel.yaml` file.
+
+The following is an example declarative configuration.
+
+```yaml
+seatunnel:
+  engine:
+    telemetry:
+      metric:
+        enabled: true # Whether open metrics export
+```
+
+## Metrics
+
+The [metric text of prometheus](./telemetry/metrics.txt),which get
+from `http:{instanceHost}:5801/hazelcast/rest/instance/metrics`.
+
+The [metric text of openMetrics](./telemetry/openmetrics.txt),which get
+from `http:{instanceHost}:5801/hazelcast/rest/instance/openmetrics`.

Review Comment:
   The http path looks not right, it missed `//`. Could you create a PR to correct it? @corgy-w 



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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "corgy-w (via GitHub)" <gi...@apache.org>.
corgy-w commented on code in PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#discussion_r1749498389


##########
docs/zh/seatunnel-engine/telemetry.md:
##########
@@ -0,0 +1,151 @@
+---
+sidebar_position: 13
+---
+
+# Telemetry
+
+通过 `Prometheus-exports` 集成 `Metrices` 可以更好地与相关的监控平台(如 Prometheus 和 Grafana)无缝衔接,提高对 SeaTunnel
+集群的监控和告警能力。
+
+您可以在 `seatunnel.yaml` 文件中配置监控的相关设置。
+
+以下是一个声明式配置的示例。
+
+```yaml
+seatunnel:
+  engine:
+    telemetry:
+      metric:
+        enabled: true 
+```
+
+## 指标
+
+Prometheus 的[指标文本](./telemetry/metrics.txt),获取方式为 `http:{instanceHost}:5801/hazelcast/rest/instance/metrics`。
+
+OpenMetrics 的[指标文本](./telemetry/openmetrics.txt)
+,获取方式为 `http:{instanceHost}:5801/hazelcast/rest/instance/openmetrics`。
+
+可用的指标包括以下类别。
+
+注意:所有指标都有相同的标签名 `cluster`,其值为 `hazelcast.cluster-name` 的配置。
+
+### 节点指标
+
+| MetricName                                | Type  | Labels                                                                                                     | 描述                                  |
+|-------------------------------------------|-------|------------------------------------------------------------------------------------------------------------|-------------------------------------|
+| cluster_info                              | Gauge | **hazelcastVersion**,hazelcast 的版本。**master**,seatunnel 主地址。                                               | 集群信息                                |
+| cluster_time                              | Gauge | **hazelcastVersion**,hazelcast 的版本。                                                                        | 集群时间                                |
+| node_count                                | Gauge | -                                                                                                          | 集群节点总数                              |
+| node_state                                | Gauge | **address**,服务器实例地址,例如:"127.0.0.1:5801"                                                                    | seatunnel 节点是否正常                    |
+| hazelcast_executor_executedCount          | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器执行次数   |
+| hazelcast_executor_isShutdown             | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器是否关闭   |
+| hazelcast_executor_isTerminated           | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器是否终止   |
+| hazelcast_executor_maxPoolSize            | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器最大池大小  |
+| hazelcast_executor_poolSize               | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器当前池大小  |
+| hazelcast_executor_queueRemainingCapacity | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器剩余队列容量 |
+| hazelcast_executor_queueSize              | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器当前队列大小 |
+| hazelcast_partition_partitionCount        | Gauge | -                                                                                                          | seatunnel 集群节点的分区数量                 |
+| hazelcast_partition_activePartition       | Gauge | -                                                                                                          | seatunnel 集群节点的活跃分区数量               |
+| hazelcast_partition_isClusterSafe         | Gauge | -                                                                                                          | 分区是否安全                              |
+| hazelcast_partition_isLocalMemberSafe     | Gauge | -                                                                                                          | 本地成员是否安全                            |
+
+### 线程池状态
+
+| MetricName                          | Type    | Labels                                  | 描述                             |
+|-------------------------------------|---------|-----------------------------------------|--------------------------------|
+| job_thread_pool_activeCount         | Gauge   | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的活动线程数  |
+| job_thread_pool_corePoolSize        | Gauge   | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的核心池大小  |
+| job_thread_pool_maximumPoolSize     | Gauge   | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的最大池大小  |
+| job_thread_pool_poolSize            | Gauge   | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的当前池大小  |
+| job_thread_pool_queueTaskCount      | Gauge   | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的队列任务数  |
+| job_thread_pool_completedTask_total | Counter | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的完成任务数  |
+| job_thread_pool_task_total          | Counter | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的总任务数   |
+| job_thread_pool_rejection_total     | Counter | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的拒绝任务总数 |
+
+### 作业信息详细
+
+| MetricName | Type  | Labels                                                                                                  | 描述                  |
+|------------|-------|---------------------------------------------------------------------------------------------------------|---------------------|
+| job_count  | Gauge | **type**,作业的类型,包括:"canceled" "cancelling" "created" "failed" "failing" "finished" "running" "scheduled" | seatunnel 集群的所有作业计数 |
+
+### JVM 指标
+
+| MetricName                                 | Type    | Labels                                                                                                         | 描述                                     |
+|--------------------------------------------|---------|----------------------------------------------------------------------------------------------------------------|----------------------------------------|
+| jvm_threads_current                        | Gauge   | -                                                                                                              | JVM 的当前线程数                             |
+| jvm_threads_daemon                         | Gauge   | -                                                                                                              | JVM 的守护线程数                             |
+| jvm_threads_peak                           | Gauge   | -                                                                                                              | JVM 的峰值线程数                             |
+| jvm_threads_started_total                  | Counter | -                                                                                                              | JVM 启动的线程总数                            |
+| jvm_threads_deadlocked                     | Gauge   | -                                                                                                              | JVM 线程在等待获取对象监视器或拥有的可拥有同步器时处于死锁状态的周期数  |
+| jvm_threads_deadlocked_monitor             | Gauge   | -                                                                                                              | JVM 线程在等待获取对象监视器时处于死锁状态的周期数            |
+| jvm_threads_state                          | Gauge   | **state**,JVM 线程的状态,包括:"NEW" "TERMINATED" "RUNNABLE" "BLOCKED" "WAITING" "TIMED_WAITING" "UNKNOWN"             | 按状态分类的线程当前计数                           |
+| jvm_classes_currently_loaded               | Gauge   | -                                                                                                              | JVM 中当前加载的类的数量                         |
+| jvm_classes_loaded_total                   | Counter | -                                                                                                              | 自 JVM 开始执行以来加载的类的总数                    |
+| jvm_classes_unloaded_total                 | Counter | -                                                                                                              | 自 JVM 开始执行以来卸载的类的总数                    |
+| jvm_memory_pool_allocated_bytes_total      | Counter | **pool**,包括:"Code Cache" "PS Eden Space" "PS Old Gen" "PS Survivor Space" "Compressed Class Space" "Metaspace" | 在给定 JVM 内存池中分配的总字节数。仅在垃圾收集后更新,而不是持续更新。 |
+| jvm_gc_collection_seconds_count            | Summary | **gc**,包括:"PS Scavenge" "PS MarkSweep"                                                                         | 在给定 JVM 垃圾收集器中花费的时间(以秒为单位)             |
+| jvm_gc_collection_seconds_sum              | Summary | **gc**,包括:"PS Scavenge" "PS MarkSweep"                                                                         | 在给定 JVM 垃圾收集器中花费的时间(以秒为单位)             
+| jvm_info                                   | Gauge   | **运行时**,例如:“Java(TM) SE Runtime Environment”。**供应商**,例如:“Oracle Corporation”。**版本**,例如:“1.8.0_212-b10”         | VM 版本信息                                |
+| process_cpu_seconds_total                  | Counter | -                                                                                                              | 用户和系统 CPU 时间总计,以秒为单位                   |
+| process_start_time_seconds                 | Gauge   | -                                                                                                              | 进程自 Unix 纪元以来的启动时间,以秒为单位               |
+| process_open_fds                           | Gauge   | -                                                                                                              | 打开的文件描述符数量                             |
+| process_max_fds                            | Gauge   | -                                                                                                              | 最大打开的文件描述符数量                           |
+| jvm_memory_objects_pending_finalization    | Gauge   | -                                                                                                              | 等待最终化队列中的对象数量                          |
+| jvm_memory_bytes_used                      | Gauge   | **区域**,包括: "heap" "noheap"                                                                                     | 给定 JVM 内存区域使用的字节数                      |
+| jvm_memory_bytes_committed                 | Gauge   | **区域**,包括: "heap" "noheap"                                                                                     | 给定 JVM 内存区域的提交字节数                      |
+| jvm_memory_bytes_max                       | Gauge   | **区域**,包括: "heap" "noheap"                                                                                     | 给定 JVM 内存区域的最大字节数                      |
+| jvm_memory_bytes_init                      | Gauge   | **区域**,包括: "heap" "noheap"                                                                                     | 给定 JVM 内存区域的初始字节数                      |
+| jvm_memory_pool_bytes_used                 | Gauge   | **池**,包括:"Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"     | 给定 JVM 内存池使用的字节数                       |
+| jvm_memory_pool_bytes_committed            | Gauge   | **池**,包括:"Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"     | 给定 JVM 内存池的提交字节数                       |
+| jvm_memory_pool_bytes_max                  | Gauge   | **池**,包括:"Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"     | 给定 JVM 内存池的最大字节数                       |
+| jvm_memory_pool_bytes_init                 | Gauge   | **池**,包括:"Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"     | 给定 JVM 内存池的初始字节数                       |
+| jvm_memory_pool_allocated_bytes_created    | Gauge   | **池**,包括:"Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"     | 给定 JVM 内存池中创建的总字节数。仅在 GC 后更新,而不是持续更新   |
+| jvm_memory_pool_collection_used_bytes      | Gauge   | **池**,包括:"PS Eden Space" "PS Old Ge" "PS Survivor Space"                                                       | 给定 JVM 内存池在最后一次回收后的使用字节数               |
+| jvm_memory_pool_collection_committed_bytes | Gauge   | **池**,包括:"PS Eden Space" "PS Old Ge" "PS Survivor Space"                                                       | 给定 JVM 内存池在最后一次回收后的提交字节数               |
+| jvm_memory_pool_collection_max_bytes       | Gauge   | **池**,包括:"PS Eden Space" "PS Old Ge" "PS Survivor Space"                                                       | 给定 JVM 内存池在最后一次回收后的最大字节数               |
+| jvm_memory_pool_collection_init_bytes      | Gauge   | **池**,包括:"PS Eden Space" "PS Old Ge" "PS Survivor Space"                                                       | 给定 JVM 内存池在最后一次回收后的初始字节数               |
+| jvm_buffer_pool_used_bytes                 | Gauge   | **池**,包括:"direct" "mapped"                                                                                     | 给定 JVM 缓冲池使用的字节数                       |
+| jvm_buffer_pool_capacity_bytes             | Gauge   | **池**,包括:"direct" "mapped"                                                                                     | 给定 JVM 缓冲池的字节容量                        |
+| jvm_buffer_pool_used_buffers               | Gauge   | **池**,包括:"direct" "mapped"                                                                                     | 给定 JVM 缓冲池使用的缓冲区                       |
+
+### 通过 Prometheus 和 Grafana 进行集群监控

Review Comment:
   get , revised doc⬇️



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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#issuecomment-2328199742

   The [grafana-dashboard.json](https://github.com/apache/seatunnel/pull/7564/files#diff-ce66180f2b81eaf7ee32f9a92fb73d2fcbf990b78bb519db8278f18e0104728c) is empty. Please update it.


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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#issuecomment-2328189356

   cc @hailin0 


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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on code in PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#discussion_r1749481287


##########
docs/zh/seatunnel-engine/telemetry.md:
##########
@@ -0,0 +1,151 @@
+---
+sidebar_position: 13
+---
+
+# Telemetry
+
+通过 `Prometheus-exports` 集成 `Metrices` 可以更好地与相关的监控平台(如 Prometheus 和 Grafana)无缝衔接,提高对 SeaTunnel
+集群的监控和告警能力。
+
+您可以在 `seatunnel.yaml` 文件中配置监控的相关设置。
+
+以下是一个声明式配置的示例。
+
+```yaml
+seatunnel:
+  engine:
+    telemetry:
+      metric:
+        enabled: true 
+```
+
+## 指标
+
+Prometheus 的[指标文本](./telemetry/metrics.txt),获取方式为 `http:{instanceHost}:5801/hazelcast/rest/instance/metrics`。
+
+OpenMetrics 的[指标文本](./telemetry/openmetrics.txt)
+,获取方式为 `http:{instanceHost}:5801/hazelcast/rest/instance/openmetrics`。
+
+可用的指标包括以下类别。
+
+注意:所有指标都有相同的标签名 `cluster`,其值为 `hazelcast.cluster-name` 的配置。
+
+### 节点指标
+
+| MetricName                                | Type  | Labels                                                                                                     | 描述                                  |
+|-------------------------------------------|-------|------------------------------------------------------------------------------------------------------------|-------------------------------------|
+| cluster_info                              | Gauge | **hazelcastVersion**,hazelcast 的版本。**master**,seatunnel 主地址。                                               | 集群信息                                |
+| cluster_time                              | Gauge | **hazelcastVersion**,hazelcast 的版本。                                                                        | 集群时间                                |
+| node_count                                | Gauge | -                                                                                                          | 集群节点总数                              |
+| node_state                                | Gauge | **address**,服务器实例地址,例如:"127.0.0.1:5801"                                                                    | seatunnel 节点是否正常                    |
+| hazelcast_executor_executedCount          | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器执行次数   |
+| hazelcast_executor_isShutdown             | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器是否关闭   |
+| hazelcast_executor_isTerminated           | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器是否终止   |
+| hazelcast_executor_maxPoolSize            | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器最大池大小  |
+| hazelcast_executor_poolSize               | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器当前池大小  |
+| hazelcast_executor_queueRemainingCapacity | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器剩余队列容量 |
+| hazelcast_executor_queueSize              | Gauge | **type**,执行器的类型,包括:"async" "client" "clientBlocking" "clientQuery" "io" "offloadable" "scheduled" "system" | seatunnel 集群节点的 hazelcast 执行器当前队列大小 |
+| hazelcast_partition_partitionCount        | Gauge | -                                                                                                          | seatunnel 集群节点的分区数量                 |
+| hazelcast_partition_activePartition       | Gauge | -                                                                                                          | seatunnel 集群节点的活跃分区数量               |
+| hazelcast_partition_isClusterSafe         | Gauge | -                                                                                                          | 分区是否安全                              |
+| hazelcast_partition_isLocalMemberSafe     | Gauge | -                                                                                                          | 本地成员是否安全                            |
+
+### 线程池状态
+
+| MetricName                          | Type    | Labels                                  | 描述                             |
+|-------------------------------------|---------|-----------------------------------------|--------------------------------|
+| job_thread_pool_activeCount         | Gauge   | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的活动线程数  |
+| job_thread_pool_corePoolSize        | Gauge   | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的核心池大小  |
+| job_thread_pool_maximumPoolSize     | Gauge   | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的最大池大小  |
+| job_thread_pool_poolSize            | Gauge   | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的当前池大小  |
+| job_thread_pool_queueTaskCount      | Gauge   | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的队列任务数  |
+| job_thread_pool_completedTask_total | Counter | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的完成任务数  |
+| job_thread_pool_task_total          | Counter | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的总任务数   |
+| job_thread_pool_rejection_total     | Counter | **address**,服务器实例地址,例如:"127.0.0.1:5801" | seatunnel 协调器作业执行器缓存线程池的拒绝任务总数 |
+
+### 作业信息详细
+
+| MetricName | Type  | Labels                                                                                                  | 描述                  |
+|------------|-------|---------------------------------------------------------------------------------------------------------|---------------------|
+| job_count  | Gauge | **type**,作业的类型,包括:"canceled" "cancelling" "created" "failed" "failing" "finished" "running" "scheduled" | seatunnel 集群的所有作业计数 |
+
+### JVM 指标
+
+| MetricName                                 | Type    | Labels                                                                                                         | 描述                                     |
+|--------------------------------------------|---------|----------------------------------------------------------------------------------------------------------------|----------------------------------------|
+| jvm_threads_current                        | Gauge   | -                                                                                                              | JVM 的当前线程数                             |
+| jvm_threads_daemon                         | Gauge   | -                                                                                                              | JVM 的守护线程数                             |
+| jvm_threads_peak                           | Gauge   | -                                                                                                              | JVM 的峰值线程数                             |
+| jvm_threads_started_total                  | Counter | -                                                                                                              | JVM 启动的线程总数                            |
+| jvm_threads_deadlocked                     | Gauge   | -                                                                                                              | JVM 线程在等待获取对象监视器或拥有的可拥有同步器时处于死锁状态的周期数  |
+| jvm_threads_deadlocked_monitor             | Gauge   | -                                                                                                              | JVM 线程在等待获取对象监视器时处于死锁状态的周期数            |
+| jvm_threads_state                          | Gauge   | **state**,JVM 线程的状态,包括:"NEW" "TERMINATED" "RUNNABLE" "BLOCKED" "WAITING" "TIMED_WAITING" "UNKNOWN"             | 按状态分类的线程当前计数                           |
+| jvm_classes_currently_loaded               | Gauge   | -                                                                                                              | JVM 中当前加载的类的数量                         |
+| jvm_classes_loaded_total                   | Counter | -                                                                                                              | 自 JVM 开始执行以来加载的类的总数                    |
+| jvm_classes_unloaded_total                 | Counter | -                                                                                                              | 自 JVM 开始执行以来卸载的类的总数                    |
+| jvm_memory_pool_allocated_bytes_total      | Counter | **pool**,包括:"Code Cache" "PS Eden Space" "PS Old Gen" "PS Survivor Space" "Compressed Class Space" "Metaspace" | 在给定 JVM 内存池中分配的总字节数。仅在垃圾收集后更新,而不是持续更新。 |
+| jvm_gc_collection_seconds_count            | Summary | **gc**,包括:"PS Scavenge" "PS MarkSweep"                                                                         | 在给定 JVM 垃圾收集器中花费的时间(以秒为单位)             |
+| jvm_gc_collection_seconds_sum              | Summary | **gc**,包括:"PS Scavenge" "PS MarkSweep"                                                                         | 在给定 JVM 垃圾收集器中花费的时间(以秒为单位)             
+| jvm_info                                   | Gauge   | **运行时**,例如:“Java(TM) SE Runtime Environment”。**供应商**,例如:“Oracle Corporation”。**版本**,例如:“1.8.0_212-b10”         | VM 版本信息                                |
+| process_cpu_seconds_total                  | Counter | -                                                                                                              | 用户和系统 CPU 时间总计,以秒为单位                   |
+| process_start_time_seconds                 | Gauge   | -                                                                                                              | 进程自 Unix 纪元以来的启动时间,以秒为单位               |
+| process_open_fds                           | Gauge   | -                                                                                                              | 打开的文件描述符数量                             |
+| process_max_fds                            | Gauge   | -                                                                                                              | 最大打开的文件描述符数量                           |
+| jvm_memory_objects_pending_finalization    | Gauge   | -                                                                                                              | 等待最终化队列中的对象数量                          |
+| jvm_memory_bytes_used                      | Gauge   | **区域**,包括: "heap" "noheap"                                                                                     | 给定 JVM 内存区域使用的字节数                      |
+| jvm_memory_bytes_committed                 | Gauge   | **区域**,包括: "heap" "noheap"                                                                                     | 给定 JVM 内存区域的提交字节数                      |
+| jvm_memory_bytes_max                       | Gauge   | **区域**,包括: "heap" "noheap"                                                                                     | 给定 JVM 内存区域的最大字节数                      |
+| jvm_memory_bytes_init                      | Gauge   | **区域**,包括: "heap" "noheap"                                                                                     | 给定 JVM 内存区域的初始字节数                      |
+| jvm_memory_pool_bytes_used                 | Gauge   | **池**,包括:"Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"     | 给定 JVM 内存池使用的字节数                       |
+| jvm_memory_pool_bytes_committed            | Gauge   | **池**,包括:"Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"     | 给定 JVM 内存池的提交字节数                       |
+| jvm_memory_pool_bytes_max                  | Gauge   | **池**,包括:"Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"     | 给定 JVM 内存池的最大字节数                       |
+| jvm_memory_pool_bytes_init                 | Gauge   | **池**,包括:"Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"     | 给定 JVM 内存池的初始字节数                       |
+| jvm_memory_pool_allocated_bytes_created    | Gauge   | **池**,包括:"Code Cache" "PS Eden Space" "PS Old Ge" "PS Survivor Space" "Compressed Class Space" "Metaspace"     | 给定 JVM 内存池中创建的总字节数。仅在 GC 后更新,而不是持续更新   |
+| jvm_memory_pool_collection_used_bytes      | Gauge   | **池**,包括:"PS Eden Space" "PS Old Ge" "PS Survivor Space"                                                       | 给定 JVM 内存池在最后一次回收后的使用字节数               |
+| jvm_memory_pool_collection_committed_bytes | Gauge   | **池**,包括:"PS Eden Space" "PS Old Ge" "PS Survivor Space"                                                       | 给定 JVM 内存池在最后一次回收后的提交字节数               |
+| jvm_memory_pool_collection_max_bytes       | Gauge   | **池**,包括:"PS Eden Space" "PS Old Ge" "PS Survivor Space"                                                       | 给定 JVM 内存池在最后一次回收后的最大字节数               |
+| jvm_memory_pool_collection_init_bytes      | Gauge   | **池**,包括:"PS Eden Space" "PS Old Ge" "PS Survivor Space"                                                       | 给定 JVM 内存池在最后一次回收后的初始字节数               |
+| jvm_buffer_pool_used_bytes                 | Gauge   | **池**,包括:"direct" "mapped"                                                                                     | 给定 JVM 缓冲池使用的字节数                       |
+| jvm_buffer_pool_capacity_bytes             | Gauge   | **池**,包括:"direct" "mapped"                                                                                     | 给定 JVM 缓冲池的字节容量                        |
+| jvm_buffer_pool_used_buffers               | Gauge   | **池**,包括:"direct" "mapped"                                                                                     | 给定 JVM 缓冲池使用的缓冲区                       |
+
+### 通过 Prometheus 和 Grafana 进行集群监控

Review Comment:
   ```suggestion
   ## 通过 Prometheus 和 Grafana 进行集群监控
   ```



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

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


Re: [PR] [Feature][zeta]Support exposing monitoring metrics by prometheus exporter protocol [seatunnel]

Posted by "corgy-w (via GitHub)" <gi...@apache.org>.
corgy-w commented on PR #7564:
URL: https://github.com/apache/seatunnel/pull/7564#issuecomment-2336366795

   PTAL @Hisoka-X @hailin0


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

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