This check monitors BentoML through the Datadog Agent.
BentoML is an open-source platform for building, shipping, and running machine learning models in production. This integration enables you to track the health and performance of your BentoML model serving infrastructure directly from Datadog.
By using this integration, you gain visibility into key BentoML metrics such as request throughput, response latency, error rates, and resource utilization. Monitoring these metrics helps you ensure reliable model deployments, quickly detect issues, and optimize the performance of your ML services in production environments.
Minimum Agent version: 7.70.1
Follow the instructions below to install and configure this check for an Agent running on a host. For containerized environments, see the Autodiscovery Integration Templates for guidance on applying these instructions.
Starting with Agent version 7.71.0, the BentoML check is included in the Datadog Agent package. No additional installation is needed on your environment.
The BentoML integration collects data from both the health API endpoints and the Prometheus metrics endpoint. By default, BentoML exposes these endpoints, so in most cases, no additional configuration is required on the BentoML side. For more information about these endpoints and how to enable or secure them, refer to the BentoML observability documentation.
To configure the Datadog Agent to collect BentoML metrics:
- Edit the
bentoml.d/conf.yamlfile, located in theconf.d/directory at the root of your Agent's configuration folder. This file controls how the Agent collects metrics from your BentoML deployment. For a full list of configuration options, see the sample bentoml.d/conf.yaml. Below is a minimal example configuration:
init_config:
instances:
- openmetrics_endpoint: http://localhost:3000/metrics
tags:
- bentoml_service: foo # Tag to easily scope metricsBentoML logs can be collected by the Datadog Agent using several methods:
- Agent log collection (recommended): Configure the Datadog Agent to tail BentoML log files. See the BentoML documentation for more details.
For host-based Agents:
-
Enable log collection in your
datadog.yamlfile (disabled by default):logs_enabled: true
-
Configure the Agent to tail BentoML logs by editing
bentoml.d/conf.yaml(or the corresponding file inconf.d/):logs: - type: file path: monitoring/text_summarization/data/*.log source: bentoml service: <SERVICE>
Replace
<SERVICE>with a name that matches your service.
For containerized environments:
- Ensure the BentoML log files are mounted inside the Datadog Agent container so they can be accessed and tailed. See container based log collection for more information.
Other log shipping options:
- Fluent Bit: Forward logs to Datadog using Fluent Bit.
- OTLP: Send logs to the Datadog Agent using the OpenTelemetry Protocol (OTLP).
Choose the log collection method that best fits your environment and operational needs. Ensure the logs are tagged correctly with source:bentoml.
Run the Agent's status subcommand and look for bentoml under the Checks section.
See metadata.csv for a list of metrics provided by this integration.
The BentoML integration does not include any events.
See service_checks.json for a list of service checks provided by this integration.
Need help? Contact Datadog support.