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): adding label for api boundary nodes #483

Merged
merged 4 commits into from
Jun 17, 2024
Merged
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
3 changes: 3 additions & 0 deletions .github/workflows/msd-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
msd-diff:
runs-on:
labels: dre-runner-custom
# This image is based on ubuntu:20.04
container: ghcr.io/dfinity/dre/actions-runner:0.2.1
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -32,6 +34,7 @@ jobs:

- name: "🔭 Compute MSD"
id: msd-diff
shell: bash
run: |
set -exuo pipefail
REGISTRY_DIR_MAIN="$HOME/tmp/main-registry"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pub const IC_NAME: &str = "ic";
pub const IC_NODE: &str = "ic_node";
pub const IC_SUBNET: &str = "ic_subnet";
pub const JOB: &str = "job";
pub const API_BOUNDARY_NODE: &str = "api_boundary_node";
// TODO: Re-add the labels below once we resolve the issues with the public dashboard queries
// https://dfinity.atlassian.net/browse/OB-442
// const DC: &str = "dc";
Expand Down Expand Up @@ -65,6 +66,10 @@ pub fn map_target_group(target_groups: Vec<TargetDto>) -> Vec<PrometheusStaticCo
Some(subnet_id) => vec![(IC_SUBNET.into(), subnet_id.to_string())],
None => vec![],
})
.chain(match tg.is_api_bn {
true => vec![(API_BOUNDARY_NODE.into(), "1".into())],
false => vec![],
})
.chain(tg.custom_labels.clone().into_iter())
.collect()
// TODO: Re-add the labels below once we resolve the issues with the public dashboard queries
Expand Down
Loading