Add process exporter
This commit is contained in:
parent
3e9811007b
commit
c48a30d66a
|
@ -49,6 +49,16 @@
|
||||||
];
|
];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
job_name = "process";
|
||||||
|
static_configs = [{
|
||||||
|
targets = [
|
||||||
|
"localhost:${
|
||||||
|
toString config.services.prometheus.exporters.process.port
|
||||||
|
}"
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,17 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 9003;
|
port = 9003;
|
||||||
};
|
};
|
||||||
|
process = {
|
||||||
|
enable = true;
|
||||||
|
port = 9005;
|
||||||
|
settings.process_names = [
|
||||||
|
# Remove nix store path from process name
|
||||||
|
{
|
||||||
|
name = "{{.Matches.Wrapped}} {{ .Matches.Args }}";
|
||||||
|
cmdline = [ "^/nix/store[^ ]*/(?P<Wrapped>[^ /]*) (?P<Args>.*)" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -193,6 +193,8 @@
|
||||||
proxyPass = "http://unix:/run/mastodon-streaming/streaming.socket";
|
proxyPass = "http://unix:/run/mastodon-streaming/streaming.socket";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraConfig = "client_max_body_size 64M;";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue