diff --git a/ray/CHANGELOG.md b/ray/CHANGELOG.md index f26d50214f285..4442a295334eb 100644 --- a/ray/CHANGELOG.md +++ b/ray/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGELOG - Ray +## Unreleased + +***Fixed***: + +* Add the log section in the configuration file ([#15978](https://github.com/DataDog/integrations-core/pull/15978)) + ## 1.0.0 / 2023-09-28 ***Added***: diff --git a/ray/assets/configuration/spec.yaml b/ray/assets/configuration/spec.yaml index 195d75b5e8583..7ab14741980bc 100644 --- a/ray/assets/configuration/spec.yaml +++ b/ray/assets/configuration/spec.yaml @@ -8,3 +8,21 @@ files: - template: instances options: - template: instances/openmetrics + - template: logs + example: + - type: file + path: /tmp/ray/session_latest/logs/dashboard.log + source: ray + service: + - type: file + path: /tmp/ray/session_latest/logs/dashboard.err + source: ray + service: + - type: file + path: /tmp/ray/session_latest/logs/gcs_server.out + source: ray + service: + - type: file + path: /tmp/ray/session_latest/logs/gcs_server.err + source: ray + service: diff --git a/ray/datadog_checks/ray/data/conf.yaml.example b/ray/datadog_checks/ray/data/conf.yaml.example index 4f07d89866d64..fa796dff7d694 100644 --- a/ray/datadog_checks/ray/data/conf.yaml.example +++ b/ray/datadog_checks/ray/data/conf.yaml.example @@ -618,3 +618,36 @@ instances: # - # exclude: # - + +## Log Section +## +## type - required - Type of log input source (tcp / udp / file / windows_event). +## port / path / channel_path - required - Set port if type is tcp or udp. +## Set path if type is file. +## Set channel_path if type is windows_event. +## source - required - Attribute that defines which integration sent the logs. +## encoding - optional - For file specifies the file encoding. Default is utf-8. Other +## possible values are utf-16-le and utf-16-be. +## service - optional - The name of the service that generates the log. +## Overrides any `service` defined in the `init_config` section. +## tags - optional - Add tags to the collected logs. +## +## Discover Datadog log collection: https://docs.datadoghq.com/logs/log_collection/ +# +# logs: +# - type: file +# path: /tmp/ray/session_latest/logs/dashboard.log +# source: ray +# service: +# - type: file +# path: /tmp/ray/session_latest/logs/dashboard.err +# source: ray +# service: +# - type: file +# path: /tmp/ray/session_latest/logs/gcs_server.out +# source: ray +# service: +# - type: file +# path: /tmp/ray/session_latest/logs/gcs_server.err +# source: ray +# service: