-
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.
Browse files
Browse the repository at this point in the history
…48054) * Resubmit #47871 and #48030 as they are reverted as release blocker * Fixed the failed test in windows CI test. * The test `test_metrics_folder_and_content` failed because of the different file separator between linux and Windows * The PR fix the issue by using `os.path.join` to generate the path for validation instead of directly using formatted string Signed-off-by: Mengjin Yan <mengjinyan3@gmail.com>
- Loading branch information
1 parent
7c220a5
commit 75f6047
Showing
10 changed files
with
186 additions
and
71 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
10 changes: 0 additions & 10 deletions
10
python/ray/dashboard/modules/metrics/grafana_dashboard_provisioning_template.py
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
python/ray/dashboard/modules/metrics/grafana_datasource_template.py
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
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.