-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
19 lines (16 loc) · 659 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SHELL := /bin/bash
install:
@sudo -u dd-agent -H -- /opt/datadog-agent/embedded/bin/pip install -r requirements.txt
@sudo -u dd-agent -- cp -a gpu_stat.py /etc/datadog-agent/checks.d/
@sudo -u dd-agent -- mkdir /etc/datadog-agent/conf.d/gpu_stat.d
@sudo -u dd-agent -- cp -a gpu_stat.yaml /etc/datadog-agent/conf.d/gpu_stat.d/
@sudo systemctl restart datadog-agent
.PHONY: install
uninstall:
@sudo -u dd-agent -- rm /etc/datadog-agent/checks.d/gpu_stat.py
@sudo -u dd-agent -- rm -r /etc/datadog-agent/conf.d/gpu_stat.d
@sudo systemctl restart datadog-agent
.PHONY: uninstall
check:
@sudo -u dd-agent -- datadog-agent check gpu_stat
.PHONY: check