Skip to content

Commit

Permalink
feat(msd): adding label for api boundary nodes (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaMilosa authored Jun 17, 2024
1 parent 792748e commit 9706b01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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

0 comments on commit 9706b01

Please sign in to comment.