Skip to content

Commit ad6a704

Browse files
authored
Add BentoML integration (#21232)
* initial creation * metrics added * time elapsed * bento * unit tests * validations * manifest * changelog * sort metadata * fix changelog * validation * validate * validation * manifest * validations * assertions * test * bump
1 parent ffe5a6c commit ad6a704

File tree

27 files changed

+1750
-0
lines changed

27 files changed

+1750
-0
lines changed

.codecov.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ coverage:
8282
target: 75
8383
flags:
8484
- azure_iot_edge
85+
BentoML:
86+
target: 75
87+
flags:
88+
- bentoml
8589
Boundary:
8690
target: 75
8791
flags:
@@ -884,6 +888,11 @@ flags:
884888
paths:
885889
- azure_iot_edge/datadog_checks/azure_iot_edge
886890
- azure_iot_edge/tests
891+
bentoml:
892+
carryforward: true
893+
paths:
894+
- bentoml/datadog_checks/bentoml
895+
- bentoml/tests
887896
boundary:
888897
carryforward: true
889898
paths:

.github/workflows/config/labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ integration/azure_active_directory:
8787
- azure_active_directory/**/*
8888
integration/azure_iot_edge:
8989
- azure_iot_edge/**/*
90+
integration/bentoml:
91+
- bentoml/**/*
9092
integration/beyondtrust_identity_security_insights:
9193
- beyondtrust_identity_security_insights/**/*
9294
integration/beyondtrust_password_safe:

.github/workflows/test-all.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,25 @@ jobs:
420420
minimum-base-package: ${{ inputs.minimum-base-package }}
421421
pytest-args: ${{ inputs.pytest-args }}
422422
secrets: inherit
423+
j5a8a3b3:
424+
uses: ./.github/workflows/test-target.yml
425+
with:
426+
job-name: BentoML
427+
target: bentoml
428+
platform: linux
429+
runner: '["ubuntu-22.04"]'
430+
repo: "${{ inputs.repo }}"
431+
python-version: "${{ inputs.python-version }}"
432+
latest: ${{ inputs.latest }}
433+
agent-image: "${{ inputs.agent-image }}"
434+
agent-image-py2: "${{ inputs.agent-image-py2 }}"
435+
agent-image-windows: "${{ inputs.agent-image-windows }}"
436+
agent-image-windows-py2: "${{ inputs.agent-image-windows-py2 }}"
437+
test-py2: ${{ inputs.test-py2 }}
438+
test-py3: ${{ inputs.test-py3 }}
439+
minimum-base-package: ${{ inputs.minimum-base-package }}
440+
pytest-args: ${{ inputs.pytest-args }}
441+
secrets: inherit
423442
jfcf4b1a:
424443
uses: ./.github/workflows/test-target.yml
425444
with:

bentoml/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# CHANGELOG - BentoML
2+
3+
<!-- towncrier release notes start -->
4+

bentoml/README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Agent Check: BentoML
2+
3+
## Overview
4+
5+
This check monitors [BentoML][1] through the Datadog Agent.
6+
7+
Include a high level overview of what this integration does:
8+
- What does your product do (in 1-2 sentences)?
9+
- What value will customers get from this integration, and why is it valuable to them?
10+
- What specific data will your integration monitor, and what's the value of that data?
11+
12+
## Setup
13+
14+
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][3] for guidance on applying these instructions.
15+
16+
### Installation
17+
18+
The BentoML check is included in the [Datadog Agent][2] package.
19+
No additional installation is needed on your server.
20+
21+
### Configuration
22+
23+
1. Edit the `bentoml.d/conf.yaml` file, in the `conf.d/` folder at the root of your Agent's configuration directory to start collecting your bentoml performance data. See the [sample bentoml.d/conf.yaml][4] for all available configuration options.
24+
25+
2. [Restart the Agent][5].
26+
27+
### Validation
28+
29+
[Run the Agent's status subcommand][6] and look for `bentoml` under the Checks section.
30+
31+
## Data Collected
32+
33+
### Metrics
34+
35+
See [metadata.csv][7] for a list of metrics provided by this integration.
36+
37+
### Events
38+
39+
The BentoML integration does not include any events.
40+
41+
### Service Checks
42+
43+
The BentoML integration does not include any service checks.
44+
45+
See [service_checks.json][8] for a list of service checks provided by this integration.
46+
47+
## Troubleshooting
48+
49+
Need help? Contact [Datadog support][9].
50+
51+
52+
[1]: **LINK_TO_INTEGRATION_SITE**
53+
[2]: https://app.datadoghq.com/account/settings/agent/latest
54+
[3]: https://docs.datadoghq.com/containers/kubernetes/integrations/
55+
[4]: https://github.com/DataDog/integrations-core/blob/master/bentoml/datadog_checks/bentoml/data/conf.yaml.example
56+
[5]: https://docs.datadoghq.com/agent/configuration/agent-commands/#start-stop-and-restart-the-agent
57+
[6]: https://docs.datadoghq.com/agent/configuration/agent-commands/#agent-status-and-information
58+
[7]: https://github.com/DataDog/integrations-core/blob/master/bentoml/metadata.csv
59+
[8]: https://github.com/DataDog/integrations-core/blob/master/bentoml/assets/service_checks.json
60+
[9]: https://docs.datadoghq.com/help/
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: BentoML
2+
files:
3+
- name: bentoml.yaml
4+
options:
5+
- template: init_config
6+
options:
7+
- template: init_config/openmetrics
8+
- template: instances
9+
options:
10+
- template: instances/openmetrics
11+
overrides:
12+
openmetrics_endpoint.value.example: http://localhost:3000/metrics
13+
openmetrics_endpoint.description: |
14+
Endpoint exposing the BentoML Prometheus metrics. For more information refer to:
15+
https://docs.bentoml.com/en/latest/build-with-bentoml/observability/metrics.html
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"author_name": "Datadog",
3+
"description": null,
4+
"layout_type": "ordered",
5+
"template_variables": null,
6+
"title": "Steven's Dashboard Thu, Jul 10, 3:44:27 pm",
7+
"widgets": []
8+
}

bentoml/changelog.d/21232.added

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add BentoML integration
2+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# (C) Datadog, Inc. 2025-present
2+
# All rights reserved
3+
# Licensed under a 3-clause BSD style license (see LICENSE)
4+
__version__ = '0.0.1'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# (C) Datadog, Inc. 2025-present
2+
# All rights reserved
3+
# Licensed under a 3-clause BSD style license (see LICENSE)
4+
from .__about__ import __version__
5+
from .check import BentomlCheck
6+
7+
__all__ = ['__version__', 'BentomlCheck']

0 commit comments

Comments
 (0)