1 { lib, buildGoModule, fetchFromGitHub }:
7 src = fetchFromGitHub {
8 owner = "digitalocean";
11 sha256 = "sha256-BQFL/h9bXtbS7YeImrXjLExakfecza6wJsppgmwkRGg=";
15 "-X main.version=${version}"
23 install -Dm444 -t $out/lib/systemd/system $src/packaging/etc/systemd/system/do-agent.service
27 description = "DigitalOcean droplet system metrics agent";
28 mainProgram = "do-agent";
30 do-agent is a program provided by DigitalOcean that collects system
31 metrics from a DigitalOcean Droplet (on which the program runs) and sends
32 them to DigitalOcean to provide resource usage graphs and alerting.
34 homepage = "https://github.com/digitalocean/do-agent";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ yvt ];
37 platforms = platforms.linux;