Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
gcavelier committed Sep 29, 2024
1 parent c74a981 commit a3d0a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fn build_metric(project: &Project, access_token: &AccessToken) -> String {
"gitlab_token_{}_{}",
project.path_with_namespace, access_token.name
)
.replace(['-', '/', ' '], "_");
.replace(['-', '/', ' '], "_"); // TODO : see https://prometheus.io/docs/concepts/data_model/ for authorized characters

writeln!(res, "# HELP {metric_name} Gitlab token").unwrap();
writeln!(res, "# TYPE {metric_name} gauge").unwrap();
Expand Down

0 comments on commit a3d0a15

Please sign in to comment.