https://github.com/konstruktoid/datadog-package-updates
This plugin sends metrics regarding package updates to a DataDog instance.
https://github.com/konstruktoid/datadog-package-updates
agent datadog hacktoberfest monitoring python3 ubuntu
Last synced: 7 months ago
JSON representation
This plugin sends metrics regarding package updates to a DataDog instance.
- Host: GitHub
- URL: https://github.com/konstruktoid/datadog-package-updates
- Owner: konstruktoid
- License: apache-2.0
- Created: 2021-10-09T20:48:55.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T08:54:25.000Z (over 1 year ago)
- Last Synced: 2024-05-01T13:49:58.430Z (over 1 year ago)
- Topics: agent, datadog, hacktoberfest, monitoring, python3, ubuntu
- Language: Python
- Homepage:
- Size: 436 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Package Updates DataDog agent Plugin
This plugin sends metrics regarding package updates and reboot status
to a DataDog instance.

```console
Work in progress.
```
If `/usr/lib/update-notifier/apt_check.py` is available, the output will be used
to set `system.package.updates` and `system.package.updates.security`.
If `/var/run/reboot-required` is present, `system.reboot.required` will be set
to `1`.
If `lsb_release` is available and the distribution is [Ubuntu](https://ubuntu.com/),
the release number will be used to calculate if the release if end-of-life and
`system.release.eol` will be set.
## Metrics
[https://docs.datadoghq.com/metrics/agent_metrics_submission/?tab=gauge](https://docs.datadoghq.com/metrics/agent_metrics_submission/?tab=gauge)
```console
system.package.updates
system.package.updates.security
system.reboot.required
system.release.eol
```
## Files
```console
/etc/datadog-agent/checks.d/package_updates.py
/etc/datadog-agent/conf.d/package_updates.d/package_updates.yaml
```
## Installation example
```sh
git clone https://github.com/konstruktoid/datadog-package-updates
cd datadog-package-updates/
sudo cp -vnR checks.d/ conf.d/ /etc/datadog-agent/
sudo chown -R dd-agent:dd-agent /etc/datadog-agent/conf.d/package_updates.d/
sudo chown -R dd-agent:dd-agent /etc/datadog-agent/checks.d/package_updates.py
sudo systemctl restart datadog-agent
```