-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resubmit: #47871 [Ray Core] Fix the Paths in the Generated Monitoring…
… Configs to Consider temp-dir Signed-off-by: Mengjin Yan <mengjinyan3@gmail.com>
- Loading branch information
1 parent
8bd6a9a
commit 1740d4f
Showing
10 changed files
with
190 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
python/ray/dashboard/modules/metrics/export/grafana/grafana.ini
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
python/ray/dashboard/modules/metrics/grafana_dashboard_provisioning_template.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
DASHBOARD_PROVISIONING_TEMPLATE = """ | ||
apiVersion: 1 | ||
# DASHBOARD_PROVISIONING_TEMPLATE = """ | ||
# apiVersion: 1 | ||
|
||
providers: | ||
- name: Ray # Default dashboards provided by OSS ray | ||
folder: Ray | ||
type: file | ||
options: | ||
path: {dashboard_output_folder} | ||
""" | ||
# providers: | ||
# - name: Ray # Default dashboards provided by OSS ray | ||
# folder: Ray | ||
# type: file | ||
# options: | ||
# path: {dashboard_output_folder} | ||
# """ |
16 changes: 8 additions & 8 deletions
16
python/ray/dashboard/modules/metrics/grafana_datasource_template.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
GRAFANA_DATASOURCE_TEMPLATE = """apiVersion: 1 | ||
# GRAFANA_DATASOURCE_TEMPLATE = """apiVersion: 1 | ||
|
||
datasources: | ||
- name: {prometheus_name} | ||
url: {prometheus_host} | ||
type: prometheus | ||
isDefault: true | ||
access: proxy | ||
""" | ||
# datasources: | ||
# - name: {prometheus_name} | ||
# url: {prometheus_host} | ||
# type: prometheus | ||
# isDefault: true | ||
# access: proxy | ||
# """ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
GRAFANA_INI_TEMPLATE = """ | ||
[security] | ||
allow_embedding = true | ||
[auth.anonymous] | ||
enabled = true | ||
org_name = Main Org. | ||
org_role = Viewer | ||
[paths] | ||
provisioning = {grafana_provisioning_folder} | ||
""" | ||
|
||
DASHBOARD_PROVISIONING_TEMPLATE = """ | ||
apiVersion: 1 | ||
providers: | ||
- name: Ray # Default dashboards provided by OSS ray | ||
folder: Ray | ||
type: file | ||
options: | ||
path: {dashboard_output_folder} | ||
""" | ||
|
||
GRAFANA_DATASOURCE_TEMPLATE = """apiVersion: 1 | ||
datasources: | ||
- name: {prometheus_name} | ||
url: {prometheus_host} | ||
type: prometheus | ||
isDefault: true | ||
access: proxy | ||
""" | ||
|
||
PROMETHEUS_YML_TEMPLATE = """# my global config | ||
global: | ||
scrape_interval: 10s # Set the scrape interval to every 10 seconds. Default is every \ | ||
1 minute. | ||
evaluation_interval: 10s # Evaluate rules every 10 seconds. The default is every 1 \ | ||
minute. | ||
# scrape_timeout is set to the global default (10s). | ||
scrape_configs: | ||
# Scrape from each ray node as defined in the service_discovery.json provided by ray. | ||
- job_name: 'ray' | ||
file_sd_configs: | ||
- files: | ||
- '{prom_metrics_service_discovery_file_path}' | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.