An open API service indexing awesome lists of open source software.

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.

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.

![DataDog Package Updates](images/dd-package-updates.png "DataDog Package Updates")

```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
```