Update the URL for metrics (#3584)
This commit is contained in:
@@ -33,7 +33,7 @@ import (
|
||||
|
||||
const (
|
||||
defaultJobName = "minio-job"
|
||||
defaultMetricsPath = "/minio/prometheus/metrics"
|
||||
defaultMetricsPath = "/minio/v2/metrics/cluster"
|
||||
)
|
||||
|
||||
var adminPrometheusGenerateCmd = cli.Command{
|
||||
|
||||
@@ -777,7 +777,7 @@ _Example: Generates prometheus config for an <alias>._
|
||||
mc admin prometheus generate <alias>
|
||||
- job_name: minio-job
|
||||
bearer_token: <token>
|
||||
metrics_path: /minio/prometheus/metrics
|
||||
metrics_path: /minio/v2/metrics/cluster
|
||||
scheme: http
|
||||
static_configs:
|
||||
- targets: ['localhost:9000']
|
||||
|
||||
Reference in New Issue
Block a user