Added Searxng metrics to prometheus
This commit is contained in:
parent
28a0c514b1
commit
3336068ab9
1 changed files with 7 additions and 2 deletions
|
|
@ -49,7 +49,12 @@ in
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
(lib.mkIf cfg.enable {
|
(lib.mkIf cfg.enable {
|
||||||
|
|
||||||
age.secrets.searx-prometheus-secret.file = ../../secrets/searx-prometheus-secret.age;
|
age.secrets.searx-prometheus-secret = {
|
||||||
|
file = ../../secrets/searx-prometheus-secret.age;
|
||||||
|
owner = config.users.users."prometheus".name;
|
||||||
|
group = config.users.groups."prometheus".name;
|
||||||
|
mode = "0644";
|
||||||
|
};
|
||||||
|
|
||||||
services.prometheus = {
|
services.prometheus = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -74,7 +79,7 @@ in
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
job_name = "searxng";
|
job_name = "searxng";
|
||||||
static_configs = [ { targets = [ "searxng.internal:8080" ]; } ];
|
static_configs = [ { targets = [ "caddy.internal:8080" ]; } ];
|
||||||
basic_auth = {
|
basic_auth = {
|
||||||
username = "searxng";
|
username = "searxng";
|
||||||
password_file = config.age.secrets.searx-prometheus-secret.path;
|
password_file = config.age.secrets.searx-prometheus-secret.path;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue