Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,123 changes: 1,045 additions & 78 deletions flake.lock

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
nixpkgs.follows = "cardano-parts/nixpkgs";
nixpkgs-unstable.follows = "cardano-parts/nixpkgs-unstable";
flake-parts.follows = "cardano-parts/flake-parts";
cardano-parts.url = "github:input-output-hk/cardano-parts/v2025-11-18";
# cardano-parts.url = "path:/home/jlotoski/work/iohk/cardano-parts-wt/v2025-11-18";
cardano-parts.url = "github:input-output-hk/cardano-parts/next-2025-11-19";
# cardano-parts.url = "path:/home/jlotoski/work/iohk/cardano-parts-wt/next-2025-11-19";

# Local pins for additional customization:
cardano-node-10-5-2.url = "github:IntersectMBO/cardano-node/sl/10.5.1-chap-update";
# cardano-10-1-4.url = "github:IntersectMBO/cardano-node/10.1.4";
# cardano-parts-v2025-01-17.url = "github:input-output-hk/cardano-parts/v2025-01-17";

# cardanoTest.url = "github:IntersectMBO/cardano-node/10.5.1";
# cardanoTest.url = "github:IntersectMBO/cardano-node/ana/10.6-final-integration-mix";
# cardanoTest.url = "path:/home/jlotoski/work/iohk/cardano-node-wt/ana/10.6-final-integration-mix";
Expand Down
444 changes: 323 additions & 121 deletions flake/colmena.nix

Large diffs are not rendered by default.

75 changes: 75 additions & 0 deletions flake/nixosModules/metrics-scraper.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
flake: {
flake.nixosModules.metrics-scraper = {
config,
lib,
pkgs,
...
}: let
cfg = config.services.metrics-scraper;
in {
options.services.metrics-scraper = {
enable = lib.mkEnableOption "metrics scraper service";

nodeName = lib.mkOption {
type = lib.types.str;
example = "production-server-01";
description = "Node name to include in the output filename";
};

metricsUrl = lib.mkOption {
type = lib.types.str;
default = "http://localhost:12798/metrics";
description = "URL to scrape metrics from";
};

outputDirectory = lib.mkOption {
type = lib.types.path;
default = "/var/lib/metrics-scraper";
description = "Directory where scrape files will be stored";
};

interval = lib.mkOption {
type = lib.types.str;
default = "*:0/1";
example = "*:0/1";
description = "Systemd calendar expression for scrape interval (default: every minute)";
};
};

config = lib.mkIf cfg.enable {
systemd = {
# ensure output dir exists with proper permissions
tmpfiles.rules = [
"d '${cfg.outputDirectory}' 0755 root root - -"
];

services.metrics-scraper = {
description = "Scrape metrics from ${cfg.metricsUrl}";
serviceConfig = {
Type = "oneshot";
User = "root";
ExecStart = pkgs.writeShellScript "scrape-metrics" ''
set -uo pipefail

TIMESTAMP=$(${pkgs.coreutils}/bin/date +%s)
OUTPUT_FILE="${cfg.outputDirectory}/scrape-${cfg.nodeName}-$TIMESTAMP.txt"

${pkgs.curl}/bin/curl -s "${cfg.metricsUrl}" > "$OUTPUT_FILE" 2>&1 || true
'';
};
};

timers.metrics-scraper = {
description = "Timer for metrics scraper";
wantedBy = ["timers.target"];
timerConfig = {
OnCalendar = cfg.interval;
AccuracySec = "1us"; # high accuracy timing
Persistent = false; # don't catch up on missed runs
Unit = "metrics-scraper.service";
};
};
};
};
};
}
1 change: 1 addition & 0 deletions flake/nixosModules/sanchonet.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ flake: {
"LastKnownBlockVersion-Minor"
"LedgerDB"
"MaxKnownMajorProtocolVersion"
"MinNodeVersion"
"Protocol"
"RequiresNetworkMagic"
"ShelleyGenesisHash"
Expand Down
2 changes: 1 addition & 1 deletion mdbook/README-book.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ _Use the nagivation panel on the left to explore [The Cardano Book][book]._

<br />

<center><sub><sup><span style="color:lightgray; font-style:italic">19d0c33a7f00856727344faf011f83cf30cfb06a</span></sup></sub></center>
<center><sub><sup><span style="color:lightgray; font-style:italic">c0715c2b04628ce1946803b0a829b3e1445b5c4d</span></sup></sub></center>
2 changes: 1 addition & 1 deletion mdbook/env-mainnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Informed: Cardano Core Tribe, COO, IOG Director of Engineering, IOG VP Community

#### Configuration files

Compatible with cardano-node release [10.5.1](https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.1)
Compatible with cardano-node release [10.5.3](https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.3)

```
NOTE:
Expand Down
2 changes: 1 addition & 1 deletion mdbook/env-preprod.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Informed: Cardano Core Tribe, COO, Director of Engineering, VP Community

#### Configuration files

Compatible with cardano-node release [10.5.1](https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.1)
Compatible with cardano-node release [10.5.3](https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.3)

```
NOTE:
Expand Down
2 changes: 1 addition & 1 deletion mdbook/env-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Informed: Cardano Core Tribe, COO, Director of Engineering

#### Configuration files

Compatible with cardano-node release [10.5.1](https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.1)
Compatible with cardano-node release [10.5.3](https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.3)

```
NOTE:
Expand Down
2 changes: 1 addition & 1 deletion static/book.play.dev.cardano.org/README-book.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h3 id="documentation"><a class="header" href="#documentation">Documentation</a>
<br />
<hr />
<br />
<center><sub><sup><span style="color:lightgray; font-style:italic">19d0c33a7f00856727344faf011f83cf30cfb06a</span></sup></sub></center>
<center><sub><sup><span style="color:lightgray; font-style:italic">c0715c2b04628ce1946803b0a829b3e1445b5c4d</span></sup></sub></center>

</main>

Expand Down
2 changes: 1 addition & 1 deletion static/book.play.dev.cardano.org/env-mainnet.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ <h2 id="environment-production-mainnet"><a class="header" href="#environment-pro
<p>Consulted: SPOs, IOG Tribes, IOG Executive Team</p>
<p>Informed: Cardano Core Tribe, COO, IOG Director of Engineering, IOG VP Community</p>
<h4 id="configuration-files"><a class="header" href="#configuration-files">Configuration files</a></h4>
<p>Compatible with cardano-node release <a href="https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.1">10.5.1</a></p>
<p>Compatible with cardano-node release <a href="https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.3">10.5.3</a></p>
<pre><code>NOTE:
The non-block-producer node config has `PeerSharing` enabled by
default, so should not be used with block-producers.
Expand Down
2 changes: 1 addition & 1 deletion static/book.play.dev.cardano.org/env-preprod.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ <h2 id="environment-pre-production-testnet"><a class="header" href="#environment
<p>Consulted: SPOs, IOG Tribes</p>
<p>Informed: Cardano Core Tribe, COO, Director of Engineering, VP Community</p>
<h4 id="configuration-files"><a class="header" href="#configuration-files">Configuration files</a></h4>
<p>Compatible with cardano-node release <a href="https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.1">10.5.1</a></p>
<p>Compatible with cardano-node release <a href="https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.3">10.5.3</a></p>
<pre><code>NOTE:
The non-block-producer node config has `PeerSharing` enabled by
default, so should not be used with block-producers.
Expand Down
2 changes: 1 addition & 1 deletion static/book.play.dev.cardano.org/env-preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ <h2 id="environment-preview-testnet"><a class="header" href="#environment-previe
<p>Consulted: SPOs</p>
<p>Informed: Cardano Core Tribe, COO, Director of Engineering</p>
<h4 id="configuration-files"><a class="header" href="#configuration-files">Configuration files</a></h4>
<p>Compatible with cardano-node release <a href="https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.1">10.5.1</a></p>
<p>Compatible with cardano-node release <a href="https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.3">10.5.3</a></p>
<pre><code>NOTE:
The non-block-producer node config has `PeerSharing` enabled by
default, so should not be used with block-producers.
Expand Down
2 changes: 1 addition & 1 deletion static/book.play.dev.cardano.org/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h3 id="documentation"><a class="header" href="#documentation">Documentation</a>
<br />
<hr />
<br />
<center><sub><sup><span style="color:lightgray; font-style:italic">19d0c33a7f00856727344faf011f83cf30cfb06a</span></sup></sub></center>
<center><sub><sup><span style="color:lightgray; font-style:italic">c0715c2b04628ce1946803b0a829b3e1445b5c4d</span></sup></sub></center>

</main>

Expand Down
8 changes: 4 additions & 4 deletions static/book.play.dev.cardano.org/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ <h3 id="documentation"><a class="header" href="#documentation">Documentation</a>
<br />
<hr />
<br />
<center><sub><sup><span style="color:lightgray; font-style:italic">19d0c33a7f00856727344faf011f83cf30cfb06a</span></sup></sub></center>
<center><sub><sup><span style="color:lightgray; font-style:italic">c0715c2b04628ce1946803b0a829b3e1445b5c4d</span></sup></sub></center>
<div style="break-before: page; page-break-before: always;"></div><h1 id="environments"><a class="header" href="#environments">Environments</a></h1>
<p>The official Cardano Environment configuration files.</p>
<p>Environment description and configuration files available are:</p>
Expand All @@ -200,7 +200,7 @@ <h3 id="documentation"><a class="header" href="#documentation">Documentation</a>
<p>Consulted: SPOs</p>
<p>Informed: Cardano Core Tribe, COO, Director of Engineering</p>
<h4 id="configuration-files"><a class="header" href="#configuration-files">Configuration files</a></h4>
<p>Compatible with cardano-node release <a href="https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.1">10.5.1</a></p>
<p>Compatible with cardano-node release <a href="https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.3">10.5.3</a></p>
<pre><code>NOTE:
The non-block-producer node config has `PeerSharing` enabled by
default, so should not be used with block-producers.
Expand Down Expand Up @@ -256,7 +256,7 @@ <h4 id="guardrails-reference-script-utxo"><a class="header" href="#guardrails-re
<p>Consulted: SPOs, IOG Tribes</p>
<p>Informed: Cardano Core Tribe, COO, Director of Engineering, VP Community</p>
<h4 id="configuration-files-1"><a class="header" href="#configuration-files-1">Configuration files</a></h4>
<p>Compatible with cardano-node release <a href="https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.1">10.5.1</a></p>
<p>Compatible with cardano-node release <a href="https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.3">10.5.3</a></p>
<pre><code>NOTE:
The non-block-producer node config has `PeerSharing` enabled by
default, so should not be used with block-producers.
Expand Down Expand Up @@ -309,7 +309,7 @@ <h4 id="guardrails-reference-script-utxo-1"><a class="header" href="#guardrails-
<p>Consulted: SPOs, IOG Tribes, IOG Executive Team</p>
<p>Informed: Cardano Core Tribe, COO, IOG Director of Engineering, IOG VP Community</p>
<h4 id="configuration-files-2"><a class="header" href="#configuration-files-2">Configuration files</a></h4>
<p>Compatible with cardano-node release <a href="https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.1">10.5.1</a></p>
<p>Compatible with cardano-node release <a href="https://github.com/IntersectMBO/cardano-node/releases/tag/10.5.3">10.5.3</a></p>
<pre><code>NOTE:
The non-block-producer node config has `PeerSharing` enabled by
default, so should not be used with block-producers.
Expand Down
2 changes: 1 addition & 1 deletion static/book.play.dev.cardano.org/searchindex.js

Large diffs are not rendered by default.