From 21220596dcf73e266770d2fe41f37a624a7f1ea7 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Mon, 11 Dec 2023 12:47:46 +0100 Subject: [PATCH 1/3] Add mimir resources calculator Signed-off-by: Julien Pivotto --- docs/content/mimircalc.md | 202 ++++++++++++++++++++++++++++++++++++++ packages.nix | 4 + 2 files changed, 206 insertions(+) create mode 100644 docs/content/mimircalc.md diff --git a/docs/content/mimircalc.md b/docs/content/mimircalc.md new file mode 100644 index 0000000..88398bf --- /dev/null +++ b/docs/content/mimircalc.md @@ -0,0 +1,202 @@ +--- +title: Mimir resources +--- + +This tool enables you to compute mimir resources based on [Grafana's Planning +Grafana Mimir capacity +requirements](https://grafana.com/docs/mimir/latest/manage/run-production-environment/planning-capacity). + +{{< unsafe >}} + +
+ +

+ + +

+ + +

+ + +

+ + +

+ + +

+
+ +

Total Resource Requirements

+
+

Total Resources

+
CPU: N/A cores
+
Memory: N/A GB
+
Disk: N/A GB
+
+ + +

Calculated Requirements

+
+

Distributor

+
CPU: N/A cores
+
Memory: N/A GB
+ +

Ingester

+
CPU: N/A cores
+
Memory: N/A GB
+
Disk: N/A GB
+ +

Query-frontend

+
CPU: N/A cores
+
Memory: N/A GB
+ +

Query-scheduler

+
CPU: N/A cores
+
Memory: N/A GB
+ +

Querier

+
CPU: N/A cores
+
Memory: N/A GB
+ +

Store-gateway

+
CPU: N/A cores
+
Memory: N/A GB
+
Disk: N/A GB
+ +

Ruler

+
CPU: N/A cores
+
Memory: N/A GB
+ +

Compactor

+
CPU: N/A cores
+
Memory: N/A GB
+
Disk: N/A GB
+ +

Alertmanager

+
CPU: N/A cores
+
Memory: N/A GB
+
+{{< /unsafe >}} + diff --git a/packages.nix b/packages.nix index 15fbef6..61ea6e2 100644 --- a/packages.nix +++ b/packages.nix @@ -148,6 +148,10 @@ in name = "PromQL parser"; ref = "/promqlparser"; } + { + name = "Mimir resources"; + ref = "/mimircalc"; + } ]; } ]; From ea345ee3f4c2d738186e506c53334a6e803e02fe Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Mon, 11 Dec 2023 13:52:57 +0100 Subject: [PATCH 2/3] Update Cachix Signed-off-by: Julien Pivotto --- .github/workflows/main.yml | 2 +- .github/workflows/pr.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 75cb48a..08ef135 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: with: extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - uses: cachix/cachix-action@v10 + - uses: cachix/cachix-action@v12 with: name: oy-toolkit authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 3bcccce..dc93e00 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -7,7 +7,7 @@ jobs: steps: - uses: actions/checkout@v2.4.0 - uses: cachix/install-nix-action@v15 - - uses: cachix/cachix-action@v10 + - uses: cachix/cachix-action@v12 with: name: oy-toolkit - run: nix show-derivation From bffbc41d456fab8117725d8e005ba43fcbfd8de6 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Mon, 11 Dec 2023 13:56:03 +0100 Subject: [PATCH 3/3] Update nix Signed-off-by: Julien Pivotto --- .github/workflows/main.yml | 1 + .github/workflows/pr.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 08ef135..7b2499d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,7 @@ jobs: - uses: actions/checkout@v2.4.0 - uses: cachix/install-nix-action@v15 with: + install_url: https://releases.nixos.org/nix/nix-2.13.3/install extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - uses: cachix/cachix-action@v12 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index dc93e00..5952a77 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -7,6 +7,8 @@ jobs: steps: - uses: actions/checkout@v2.4.0 - uses: cachix/install-nix-action@v15 + with: + install_url: https://releases.nixos.org/nix/nix-2.13.3/install - uses: cachix/cachix-action@v12 with: name: oy-toolkit