docs: modules/prometheus: finish exporter setup

The last step, in which the exporter is hooked up to the server, was missing.

Changed files
+21
nixos
modules
services
monitoring
prometheus
+21
nixos/modules/services/monitoring/prometheus/exporters.xml
···
<programlisting>
services.prometheus.exporters.node = {
enable = true;
+
port = 9100;
enabledCollectors = [
"logind"
"systemd"
···
the
<link xlink:href="https://nixos.org/nixos/options.html#prometheus.exporters">available
options</link>.
+
</para>
+
+
<para>
+
Prometheus can now be configured to consume the metrics produced by the exporter:
+
<programlisting>
+
services.prometheus = {
+
# ...
+
+
scrapeConfigs = [
+
{
+
job_name = "node";
+
static_configs = [{
+
targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ];
+
}];
+
}
+
];
+
+
# ...
+
}
+
</programlisting>
</para>
</section>
<section xml:id="module-services-prometheus-exporters-new-exporter">