nixos: overhaul datadog module

This overhauls the Datadog module a bit to be much more useful. In
particular, it adds support for nginx and postgresql monitoring
integrations to dd-agent. These have to exist in separate files under
/etc/dd-agent, so the module just exposes then as separate options. In
the future, more integrations could be added this way.

In the process of doing this, I also had to rename the dd-agent user to
datadog. Note the UIDs did not change, so this is strictly backwards
compatible. The reason for this is to make it easier to create a
'datadog' postgres user with access to pg_stats, as 'dd-agent' typically
isn't a valid username. This allows the out of the box configurations to
be used.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp
2014-05-02 01:24:35 -05:00
parent e67cc9ba07
commit 368a677c97
3 changed files with 98 additions and 35 deletions
+2 -2
View File
@@ -84,7 +84,7 @@
postgres = 71;
smbguest = 74;
varnish = 75;
dd-agent = 76;
datadog = 76;
lighttpd = 77;
lightdm = 78;
freenet = 79;
@@ -201,7 +201,7 @@
vboxsf = 73;
smbguest = 74;
varnish = 75;
dd-agent = 76;
datadog = 76;
lighttpd = 77;
lightdm = 78;
freenet = 79;