diff options
| author | Martin Fischer <martin@push-f.com> | 2026-01-19 17:47:28 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-01-22 18:00:09 +0100 |
| commit | bbac0dbabba5e4afcf0b4e9a9544f2bec2c58860 (patch) | |
| tree | 05bd14dca9c3cbe9129b5fa4d30f05fc1b574fff | |
| parent | 4bef3ac462bef5b66fe8424628c1e86988d897ca (diff) | |
feat(tente): add web-feed-exporter
| -rw-r--r-- | nixos/hosts/tente/default.nix | 16 | ||||
| -rw-r--r-- | nixos/hosts/tente/ports.nix | 1 | ||||
| -rw-r--r-- | nixos/npins/sources.json | 12 |
3 files changed, 29 insertions, 0 deletions
diff --git a/nixos/hosts/tente/default.nix b/nixos/hosts/tente/default.nix index 20bfd66..da998ef 100644 --- a/nixos/hosts/tente/default.nix +++ b/nixos/hosts/tente/default.nix @@ -37,6 +37,7 @@ in "${sources.my-geopos-link}/service.nix" "${sources.my-rust-features}/service.nix" "${sources.my-spec-pub}/service.nix" + "${sources.my-web-feed-exporter}/service.nix" ]; # Use the GRUB 2 boot loader. @@ -251,6 +252,14 @@ in reposDir = reposDir; onlyExported = true; }; + services.webFeedExporter = { + enable = true; + port = ports.prometheusWebFeedExporter; + feeds = { + blog = "https://push-f.com/posts/index.xml"; + bluesky = "https://bsky.app/profile/push-f.com/rss"; + }; + }; monitoring = { alloyUiPort = ports.grafanaAlloy; @@ -286,6 +295,13 @@ in targets = ["localhost:${toString ports.prometheusGitGrepExporter}"]; }]; } + { + job_name = "web-feed"; + scrape_interval = "10m"; + static_configs = [{ + targets = ["localhost:${toString ports.prometheusWebFeedExporter}"]; + }]; + } ]; }; diff --git a/nixos/hosts/tente/ports.nix b/nixos/hosts/tente/ports.nix index 773396e..2fffda1 100644 --- a/nixos/hosts/tente/ports.nix +++ b/nixos/hosts/tente/ports.nix @@ -10,6 +10,7 @@ rec { prometheusSqlExporter = 9003; prometheusStorageboxExporter = 9004; prometheusGitGrepExporter = 9005; + prometheusWebFeedExporter = 9006; webUis = { inherit diff --git a/nixos/npins/sources.json b/nixos/npins/sources.json index a1bc489..f93120c 100644 --- a/nixos/npins/sources.json +++ b/nixos/npins/sources.json @@ -135,6 +135,18 @@ "url": null, "hash": "0cfwzpvllw5w5w14ylqj029df1h83b5r7sk56kh3pbpg3r365i06" }, + "my-web-feed-exporter": { + "type": "Git", + "repository": { + "type": "Git", + "url": "https://git.push-f.com/web-feed-exporter" + }, + "branch": "master", + "submodules": false, + "revision": "b5e9076c6e1683e4d2384ac76e85ad1503c5336a", + "url": null, + "hash": "0x80wfw2d7klinyp1igsczhpx2bpvw0x6n0cdm4i1qj5ivsfnka8" + }, "nixos": { "type": "Channel", "name": "nixos-25.11", |
