-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
323e63c
commit f8cd48d
Showing
4 changed files
with
48 additions
and
20 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
14 changes: 14 additions & 0 deletions
14
...c/main/java/io/quarkus/it/micrometer/prometheus/AnswerToEverythingExpressionResolver.java
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,14 @@ | ||
package io.quarkus.it.micrometer.prometheus; | ||
|
||
import jakarta.inject.Singleton; | ||
|
||
import io.micrometer.common.annotation.ValueExpressionResolver; | ||
|
||
@Singleton | ||
public class AnswerToEverythingExpressionResolver implements ValueExpressionResolver { | ||
@Override | ||
public String resolve(String expression, Object parameter) { | ||
// Answer to the Ultimate Question of Life, the Universe, and Everything. | ||
return "42"; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...-prometheus/src/main/java/io/quarkus/it/micrometer/prometheus/PrefixingValueResolver.java
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,13 @@ | ||
package io.quarkus.it.micrometer.prometheus; | ||
|
||
import jakarta.inject.Singleton; | ||
|
||
import io.micrometer.common.annotation.ValueResolver; | ||
|
||
@Singleton | ||
public class PrefixingValueResolver implements ValueResolver { | ||
@Override | ||
public String resolve(Object parameter) { | ||
return "prefix " + parameter; | ||
} | ||
} |
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