From ac011808f171b85a0fc4dce11247d8652187c58f Mon Sep 17 00:00:00 2001 From: Kyle Neale Date: Tue, 17 Dec 2024 10:01:49 -0500 Subject: [PATCH] Add logs section to configuration spec (#19240) * Add logs section to conf.yaml spec * sync configuration --- nvidia_nim/assets/configuration/spec.yaml | 7 ++++++- .../nvidia_nim/data/conf.yaml.example | 20 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/nvidia_nim/assets/configuration/spec.yaml b/nvidia_nim/assets/configuration/spec.yaml index 6f739175a5acc..b5860dffc173c 100644 --- a/nvidia_nim/assets/configuration/spec.yaml +++ b/nvidia_nim/assets/configuration/spec.yaml @@ -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 \ No newline at end of file + https://docs.nvidia.com/nim/large-language-models/latest/observability.html + - template: logs + example: + - type: docker + source: nvidia_nim + service: \ No newline at end of file diff --git a/nvidia_nim/datadog_checks/nvidia_nim/data/conf.yaml.example b/nvidia_nim/datadog_checks/nvidia_nim/data/conf.yaml.example index c5e8d23aa4e1b..c45982ffbdcd3 100644 --- a/nvidia_nim/datadog_checks/nvidia_nim/data/conf.yaml.example +++ b/nvidia_nim/datadog_checks/nvidia_nim/data/conf.yaml.example @@ -624,3 +624,23 @@ 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: docker +# source: nvidia_nim +# service: