Skip to content

Commit

Permalink
imp: add cardano-node custom metrics to colmena node profile
Browse files Browse the repository at this point in the history
  • Loading branch information
johnalotoski committed May 9, 2024
1 parent 5065e8a commit 789d156
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion flake/colmena.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ in

# Config for cardano-node group deployments
inputs.cardano-parts.nixosModules.profile-cardano-node-group
inputs.cardano-parts.nixosModules.profile-cardano-node-custom-metrics
];
};

Expand Down Expand Up @@ -557,7 +558,7 @@ in
# Also keep the lmdb and extra debug mainnet node in stopped state for now
mainnet1-rel-a-2 = {imports = [eu-central-1 m5a-large (ebs 300) (group "mainnet1") node (openFwTcp 3001) nodeHd lmdb ram8gib disableAlertCount];};
mainnet1-rel-a-3 = {imports = [eu-central-1 m5a-large (ebs 300) (group "mainnet1") node (openFwTcp 3001) nodeHd lmdb ram8gib disableAlertCount];};
mainnet1-rel-a-4 = {imports = [eu-central-1 r5-large (ebs 300) (group "mainnet1") netDebug node disableAlertCount];};
mainnet1-rel-a-4 = {imports = [eu-central-1 r5-large (ebs 300) (group "mainnet1") node disableAlertCount];};
# ---------------------------------------------------------------------------------------------------------

# ---------------------------------------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions flake/opentofu/grafana/alerts/cardano-node-network.nix-import
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ in {
namespace = "cardano";
name = "cardano-node-network";
rule = [
# TODO: Legacy cardano-ops metric; potentially convert to netdata statsd push/scrape
# This latency alert requires the cardano-parts profile-cardano-node-custom-metrics nixosModule
{
alert = "high_cardano_ping_latency";
expr = "avg_over_time(cardano_ping_latency_ms[5m]) > 250";
expr = "avg_over_time(netdata_statsd_cardano_node_ping_latency_ms_gauge_value_average[5m]) > 250";
for = "30m";
labels.severity = "page";
annotations = {
Expand Down

0 comments on commit 789d156

Please sign in to comment.