Skip to content

Commit

Permalink
feat(kubernetes_admission): Add integration (DataDog#18905)
Browse files Browse the repository at this point in the history
Signed-off-by: Wassim DHIF <[email protected]>
  • Loading branch information
wdhif authored Nov 14, 2024
1 parent 5fb1b06 commit abd4822
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ manifest.json @DataDog/documentation @DataDog/agent-integrations
/kubernetes/ @DataDog/container-integrations @DataDog/agent-integrations
/kubernetes/*.md @DataDog/container-integrations @DataDog/agent-integrations @DataDog/documentation
/kubernetes/manifest.json @DataDog/container-integrations @DataDog/agent-integrations @DataDog/documentation
/kubernetes_admission/ @DataDog/container-platform @DataDog/agent-integrations
/kubernetes_cluster_autoscaler/ @DataDog/container-integrations @DataDog/agent-integrations
/kubernetes_cluster_autoscaler/*.md @DataDog/container-integrations @DataDog/agent-integrations @DataDog/documentation
/kubernetes_cluster_autoscaler/manifest.json @DataDog/container-integrations @DataDog/agent-integrations @DataDog/documentation
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/config/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ integration/kubelet:
- kubelet/**/*
integration/kubernetes:
- kubernetes/**/*
integration/kubernetes_admission:
- kubernetes_admission/**/*
integration/kubernetes_cluster_autoscaler:
- kubernetes_cluster_autoscaler/**/*
integration/kubernetes_state:
Expand Down
7 changes: 7 additions & 0 deletions kubernetes_admission/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# CHANGELOG - Kubernetes Admission

## 1.0.0 / 2024-11-06

***Added***:

* Initial Release
52 changes: 52 additions & 0 deletions kubernetes_admission/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Agent Check: Kubernetes Admission

## Overview

Kubernetes Admission will generate Datadog Events for Kubernetes Admission Requests.

The Kubernetes Admission for Datadog's Cluster Agent offers an easy-to-deploy solution for tracking and monitoring Kubernetes Admission activity.
By sending real-time Datadog Events for every request, it provides comprehensive visibility and enhances security.

## Setup

### Installation

The Kubernetes Admission check is included in the [Datadog Agent][1] package.
No additional installation is needed on your server.

### Configuration

You can activate this feature by activating the `admission_controller_kubernetes_admission_events` setting.

### Validation

You can check the existence of the `kubernetes_admission_events` Validation Webhook using the following command:

```shell
kubectl describe validatingwebhookconfigurations.admissionregistration.k8s.io datadog-webhook
```

You should be able to see the `datadog.webhook.kubernetes.admission.events` webhook in the output.

You can also check that the Datadog Events are being sent by looking at the `kubernetes_admission` events in the Datadog Event Stream.

## Data Collected

### Metrics

Kubernetes Admission does not include any metrics.

### Service Checks

Kubernetes Admission does not include any service checks.

### Events

Kubernetes Admission creates `kubernetes_admission` events.

## Support

Need help? Contact [Datadog support][2].

[1]: https://app.datadoghq.com/account/settings/agent/latest
[2]: https://docs.datadoghq.com/help/
1 change: 1 addition & 0 deletions kubernetes_admission/assets/service_checks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
43 changes: 43 additions & 0 deletions kubernetes_admission/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"manifest_version": "2.0.0",
"app_uuid": "6d009536-3383-4071-b45e-7771e0970cf4",
"app_id": "kubernetes-admission",
"display_on_public_website": false,
"tile": {
"overview": "README.md#Overview",
"configuration": "README.md#Setup",
"support": "README.md#Support",
"changelog": "CHANGELOG.md",
"description": "Provides visibility into Kubernetes Admission events, including deployments modifications from human users.",
"title": "Kubernetes Admission",
"media": [],
"classifier_tags": [
"Category::Containers",
"Category::Kubernetes",
"Offering::Integration",
"Submitted Data Type::Events",
"Supported OS::Linux",
"Supported OS::macOS",
"Supported OS::Windows"
]
},
"assets": {
"integration": {
"source_type_name": "Kubernetes Admission",
"events": {
"creates_events": true
},
"source_type_id": 31009687,
"auto_install": true,
"service_checks": {
"metadata_path": "assets/service_checks.json"
}
}
},
"author": {
"support_email": "[email protected]",
"name": "Datadog",
"homepage": "https://www.datadoghq.com",
"sales_email": "[email protected]"
}
}

0 comments on commit abd4822

Please sign in to comment.