layout | displayTitle | title | description | license |
---|---|---|---|---|
page |
Metrics Guide |
Metrics Guide |
Metrics Guide |
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
|
This document will introduce how to collect metrics from servers.
# For json format
curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metrics # fetch all metrics
curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metrics/all # fetch all metrics
curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metrics/server # only fetch server metrics
curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metrics/grpc # only fetch grpc metrics
curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/metrics/jvm # only fetch jvm metrics
# For Prometheus format
curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/prometheus/metrics/all # fetch all metrics
curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/prometheus/metrics/server # only fetch server metrics
curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/prometheus/metrics/grpc # only fetch grpc metrics
curl http://${SERVER_HOST}:${SERVER_HTTP_PORT}/prometheus/metrics/jvm # only fetch jvm metrics
PrometheusPushGatewayMetricReporter is one of the built-in metrics reporter, which will allow user pushes metrics to a Prometheus Pushgateway, which can be scraped by Prometheus.
Property Name | Default | Description |
---|---|---|
rss.metrics.reporter.class | org.apache.uniffle.common.metrics. prometheus.PrometheusPushGatewayMetricReporter |
The class of metrics reporter. |
rss.metrics.prometheus.pushgateway.addr | - | The PushGateway server host URL including scheme, host name, and port. |
rss.metrics.prometheus.pushgateway.groupingkey | - | Specifies the grouping key which is the group and global labels of all metrics. The label name and value are separated by '=', and labels are separated by ';', e.g., k1=v1;k2=v2. Please ensure that your grouping key meets the Prometheus requirements. |
rss.metrics.prometheus.pushgateway.jobname | - | The job name under which metrics will be pushed. |
rss.metrics.prometheus.pushgateway.report.interval.seconds | 10 | The interval in seconds for the reporter to report metrics. |