[Metrics] Fix prometheus configuration doc (#11856)

This commit is contained in:
bermaker
2020-11-07 02:34:33 +08:00
committed by GitHub
parent 6b7a4dfaa0
commit 12ae0f20c6
+4 -4
View File
@@ -37,11 +37,11 @@ Let's modify Prometheus's config file to scrape metrics from Prometheus endpoint
# prometheus.yml
global:
scrape_interval: 5s
evaluation_interval: 5s
scrape_interval: 5s
evaluation_interval: 5s
scrape_configs:
- job_name: prometheus
- job_name: prometheus
static_configs:
- targets: ['localhost:8080'] # This must be same as metrics_export_port
@@ -159,4 +159,4 @@ Ray supports custom metrics APIs to enable developers to have visibility to thei
It current supports 3 metric types. All metric types have the same definition as `Prometheus metric types <https://prometheus.io/docs/concepts/metric_types/>`_.
:ref:`Custom Metrics APIs Package Reference <custom-metric-api-ref>`
:ref:`Custom Metrics APIs Package Reference <custom-metric-api-ref>`