-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into offline-rl-handle-duplicates-in-buffer
- Loading branch information
Showing
30 changed files
with
479 additions
and
375 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
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
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}' | ||
""" |
16 changes: 16 additions & 0 deletions
16
python/ray/dashboard/modules/serve/tests/deploy_imperative_serve_apps.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Run in a subprocess by test_get_serve_instance_details_for_imperative_apps | ||
|
||
from ray import serve | ||
from ray.serve.tests.test_config_files import world | ||
|
||
|
||
def submit_imperative_apps() -> None: | ||
serve.run(world.DagNode, name="app1", route_prefix="/apple") | ||
print("Deployed app1") | ||
|
||
serve.run(world.DagNode, name="app2", route_prefix="/banana") | ||
print("Deployed app2") | ||
|
||
|
||
if __name__ == "__main__": | ||
submit_imperative_apps() |
Oops, something went wrong.