Skip to content

Commit

Permalink
Add logs section to configuration spec (#19240)
Browse files Browse the repository at this point in the history
* Add logs section to conf.yaml spec

* sync configuration
  • Loading branch information
Kyle-Neale authored Dec 17, 2024
1 parent 1a108b7 commit ac01180
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nvidia_nim/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ files:
openmetrics_endpoint.value.example: http://localhost:8000/metrics
openmetrics_endpoint.description: |
Endpoint exposing the NVIDIA NIM's Prometheus metrics. For more information refer to:
https://docs.nvidia.com/nim/large-language-models/latest/observability.html
https://docs.nvidia.com/nim/large-language-models/latest/observability.html
- template: logs
example:
- type: docker
source: nvidia_nim
service: <SERVICE>
20 changes: 20 additions & 0 deletions nvidia_nim/datadog_checks/nvidia_nim/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -624,3 +624,23 @@ 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: docker
# source: nvidia_nim
# service: <SERVICE>

0 comments on commit ac01180

Please sign in to comment.