Skip to content

Commit

Permalink
Add the log section in the configuration file (#15978)
Browse files Browse the repository at this point in the history
* Add the log section in the configuration file

* fix changelog

* Revert "fix changelog"

This reverts commit bab26ec.

* Revert "Revert "fix changelog""

This reverts commit 0b6352b.
  • Loading branch information
FlorentClarret authored Oct 10, 2023
1 parent 7cba66b commit ca50376
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ray/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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***:
Expand Down
18 changes: 18 additions & 0 deletions ray/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: <SERVICE>
- type: file
path: /tmp/ray/session_latest/logs/dashboard.err
source: ray
service: <SERVICE>
- type: file
path: /tmp/ray/session_latest/logs/gcs_server.out
source: ray
service: <SERVICE>
- type: file
path: /tmp/ray/session_latest/logs/gcs_server.err
source: ray
service: <SERVICE>
33 changes: 33 additions & 0 deletions ray/datadog_checks/ray/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -618,3 +618,36 @@ instances:
# - <INCLUDE_REGEX>
# exclude:
# - <EXCLUDE_REGEX>

## 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: <SERVICE>
# - type: file
# path: /tmp/ray/session_latest/logs/dashboard.err
# source: ray
# service: <SERVICE>
# - type: file
# path: /tmp/ray/session_latest/logs/gcs_server.out
# source: ray
# service: <SERVICE>
# - type: file
# path: /tmp/ray/session_latest/logs/gcs_server.err
# source: ray
# service: <SERVICE>

0 comments on commit ca50376

Please sign in to comment.