-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 223-improve-container-credentials-retrieva…
…l-using-workflow-compute-environment
- Loading branch information
Showing
127 changed files
with
5,942 additions
and
2,669 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
1.6.2 | ||
1.7.9 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
title: Wave usage metrics | ||
--- | ||
|
||
Wave uses Redis to store its usage metrics for a specific date and/or a specific organization. | ||
|
||
These are stored using the following keys: | ||
|
||
- `pulls/d/YYYY-MM-DD` | ||
- `pulls/o/<org>` | ||
- `pulls/o/<org>/d/YYYY-MM-DD` | ||
- `fusion/d/YYYY-MM-DD` | ||
- `fusion/o/<org>` | ||
- `fusion/o/<org>/d/YYYY-MM-DD` | ||
- `builds/d/YYYY-MM-DD` | ||
- `builds/o/<org>` | ||
- `builds/o/<org>/d/YYYY-MM-DD` | ||
|
||
## Functionality | ||
|
||
### Store Builds | ||
|
||
When Wave launches a build, it also increments the values of following keys in Redis: | ||
|
||
- `builds/d/YYYY-MM-DD` | ||
- `builds/o/<org>` | ||
- `builds/o/<org>/d/YYYY-MM-DD` | ||
|
||
### Store Pulls | ||
|
||
Wave tracks the container image pulls using io.seqera.wave.filter.PullMetricsRequestsFilter, where it checks if `Content-Type` header contains one of the following values: | ||
|
||
- `application/vnd.docker.distribution.manifest.v2+json` | ||
- `application/vnd.oci.image.manifest.v1+json` | ||
- `application/vnd.docker.distribution.manifest.v1+prettyjws` | ||
- `application/vnd.docker.distribution.manifest.v1+json` | ||
|
||
Then it increments the values of following keys in Redis: | ||
|
||
- `pulls/d/YYYY-MM-DD` | ||
- `pulls/o/<org>` | ||
- `pulls/o/<org>/d/YYYY-MM-DD` | ||
|
||
Then, if the pulled container uses fusion, it increments the values of following keys in Redis: | ||
|
||
- `fusion/d/YYYY-MM-DD` | ||
- `fusion/o/<org>` | ||
- `fusion/o/<org>/d/YYYY-MM-DD` | ||
|
||
## How keys are created | ||
|
||
- When a request is made to wave, first it increments the key with current date. e.g. `builds/d/2024-04-23`. | ||
- Keys with organisation are only incremented if the user is authenticated means there is Seqera platform token in the request. | ||
- Wave extract the domain from the user email id (For example: `[email protected]`), which it gets from Seqera platform using the access token. | ||
- In this case, The organisation value will be `seqera.io`. | ||
- Then it increments the key with organisation. For example: `builds/o/seqera.io/d/2024-04-23` and `builds/o/seqera.io`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
}, | ||
"guide", | ||
"api", | ||
"metrics", | ||
"faq" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.