Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(msd): metrics #171

Merged
merged 18 commits into from
Feb 12, 2024
Merged

feat(msd): metrics #171

merged 18 commits into from
Feb 12, 2024

Conversation

NikolaMilosa
Copy link
Contributor

@NikolaMilosa NikolaMilosa commented Feb 7, 2024

In this PR we introduce all axum-otel-metrics alongside 4 custom metrics:

  • msd_definitions_load_errors_total: number of errors while loading new targets per definition.
  • msd_definitions_load_successful: status metric which indicates if last load was successful (1) or not (0).
  • msd_definitions_sync_errors_total: number of errors while syncing the registry per definition.
  • msd_definitions_sync_successful: status metric which indicates if last scrape was successful (1) or not (0).

@NikolaMilosa NikolaMilosa requested a review from a team as a code owner February 7, 2024 12:07
Copy link
Member

@sasa-tomic sasa-tomic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@DFINITYManu DFINITYManu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix or verify metrics names are correct (otel may apply some postprocessing to standardize). Stand by for link.

https://prometheus.io/docs/practices/naming/ please follow this standard.

Copy link
Contributor

github-actions bot commented Feb 9, 2024

MSD Diff

  • targets.json

targets.json

--- a/home/runner/main-targets/targets.json
+++ b/home/runner/branch-targets/targets.json
@@ -65543,6 +65543,56 @@
       "job": "guest_metrics_proxy"
     }
   },
+  {
+    "targets": [
+      "http://[2001:ab8:1000:f81:6801:4fff:fe8c:5e50]:9091/"
+    ],
+    "labels": {
+      "ic": "mercury",
+      "ic_node": "5cphe-ynceg-ybsv7-5fpo7-rxte2-hbmm6-wkren-7lyfb-nhlls-pu6ow-kae",
+      "job": "orchestrator"
+    }
+  },
+  {
+    "targets": [
+      "https://[2001:ab8:1000:f81:6801:4fff:fe8c:5e50]:9100/metrics"
+    ],
+    "labels": {
+      "ic": "mercury",
+      "ic_node": "5cphe-ynceg-ybsv7-5fpo7-rxte2-hbmm6-wkren-7lyfb-nhlls-pu6ow-kae",
+      "job": "node_exporter"
+    }
+  },
+  {
+    "targets": [
+      "https://[2001:ab8:1000:f81:6800:4fff:fe8c:5e50]:9100/metrics"
+    ],
+    "labels": {
+      "ic": "mercury",
+      "ic_node": "5cphe-ynceg-ybsv7-5fpo7-rxte2-hbmm6-wkren-7lyfb-nhlls-pu6ow-kae",
+      "job": "host_node_exporter"
+    }
+  },
+  {
+    "targets": [
+      "https://[2001:ab8:1000:f81:6800:4fff:fe8c:5e50]:19100/metrics"
+    ],
+    "labels": {
+      "ic": "mercury",
+      "ic_node": "5cphe-ynceg-ybsv7-5fpo7-rxte2-hbmm6-wkren-7lyfb-nhlls-pu6ow-kae",
+      "job": "host_metrics_proxy"
+    }
+  },
+  {
+    "targets": [
+      "https://[2001:ab8:1000:f81:6801:4fff:fe8c:5e50]:19100/metrics"
+    ],
+    "labels": {
+      "ic": "mercury",
+      "ic_node": "5cphe-ynceg-ybsv7-5fpo7-rxte2-hbmm6-wkren-7lyfb-nhlls-pu6ow-kae",
+      "job": "guest_metrics_proxy"
+    }
+  },
   {
     "targets": [
       "http://[2a0f:cd00:2:1:6801:c1ff:fee2:c0f9]:9091/"

@sasa-tomic
Copy link
Member

sasa-tomic commented Feb 9, 2024

MSD Diff

  • targets.json

Hmm this seems to be off. cc @pietrodimarco-dfinity any idea why this diff is non-empty?

@pietrodimarco-dfinity
Copy link
Contributor

pietrodimarco-dfinity commented Feb 9, 2024

2001:ab8:1000:f81:6801:4fff:fe8c:5e50

MSD Diff

  • targets.json

Hmm this seems to be off. cc @pietrodimarco-dfinity any idea why this diff is non-empty?

yes @sasa-tomic :) the registry simply got an update!
From main
Feb 09 09:26:55.783 DEBG Latest registry version: 41046

From branch
Feb 09 09:26:55.783 DEBG Latest registry version: 41049

And those targets from 2001:ab8:1000:f81:6800:4fff:fe8c:5e50 have been introduced. nothing to worry about.

@NikolaMilosa NikolaMilosa added this pull request to the merge queue Feb 12, 2024
@NikolaMilosa NikolaMilosa removed this pull request from the merge queue due to a manual request Feb 12, 2024
@NikolaMilosa NikolaMilosa added this pull request to the merge queue Feb 12, 2024
Merged via the queue into main with commit a480f59 Feb 12, 2024
4 checks passed
@NikolaMilosa NikolaMilosa deleted the nm-axum-metrics branch February 12, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants