Add telegraf metrics for x509 certificates
This commit is contained in:
parent
068f557afd
commit
9eda1cc1f6
|
@ -41,6 +41,14 @@
|
||||||
];
|
];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
job_name = "telegraf";
|
||||||
|
static_configs = [{
|
||||||
|
targets = [
|
||||||
|
config.services.telegraf.extraConfig.outputs.prometheus_client.listen
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,5 +22,19 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.telegraf = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = {
|
||||||
|
inputs.x509_cert = {
|
||||||
|
sources = [ "https://technogothic.net:443" ];
|
||||||
|
interval = "10m";
|
||||||
|
};
|
||||||
|
outputs.prometheus_client = {
|
||||||
|
listen = "localhost:9004";
|
||||||
|
metric_version = 2;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue