Skip to content

Commit

Permalink
Add oauth metrics into the jmx_metrics_config.yaml (#718)
Browse files Browse the repository at this point in the history
* add oauth metrics into the jmx_metrics_config.yaml

Signed-off-by: Lukas Kral <[email protected]>

* update CHANGELOG.md

Signed-off-by: Lukas Kral <[email protected]>

Signed-off-by: Lukas Kral <[email protected]>
  • Loading branch information
im-konge authored Nov 28, 2022
1 parent 5dfbc25 commit 211a6da
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Fixed bug about missing OAuth password grants configuration
* Dependency updates (Vert.x 4.3.5)
* Dependency updates (snakeYAML [CVE-2022-41854](https://nvd.nist.gov/vuln/detail/CVE-2022-41854))
* Add Oauth metrics into the `jmx_metrics_config.yaml`

### Changes, deprecations and removals

Expand Down
64 changes: 63 additions & 1 deletion src/main/resources/jmx_metrics_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,66 @@ rules:
type: GAUGE
labels:
type: "$2"
clientId: "$3"
clientId: "$3"
# OAuth Metrics
# WARNING: Make sure that the ordering of the attributes is the same as in MBean names
- pattern: "strimzi.oauth<type=(.+), context=(.+), kind=(.+), host=\"(.+)\", path=\"(.+)\", (.+)=(.+), (.+)=(.+), (.+)=(.+)><>(count|totalTimeMs):"
name: "strimzi_oauth_$1_$12"
type: COUNTER
labels:
context: "$2"
kind: "$3"
host: "$4"
path: "$5"
"$6": "$7"
"$8": "$9"
"$10": "$11"
- pattern: "strimzi.oauth<type=(.+), context=(.+), kind=(.+), host=\"(.+)\", path=\"(.+)\", (.+)=(.+), (.+)=(.+)><>(count|totalTimeMs):"
name: "strimzi_oauth_$1_$10"
type: COUNTER
labels:
context: "$2"
kind: "$3"
host: "$4"
path: "$5"
"$6": "$7"
"$8": "$9"
- pattern: "strimzi.oauth<type=(.+), context=(.+), kind=(.+), host=\"(.+)\", path=\"(.+)\", (.+)=(.+)><>(count|totalTimeMs):"
name: "strimzi_oauth_$1_$8"
type: COUNTER
labels:
context: "$2"
kind: "$3"
host: "$4"
path: "$5"
"$6": "$7"
- pattern: "strimzi.oauth<type=(.+), context=(.+), kind=(.+), host=\"(.+)\", path=\"(.+)\", (.+)=(.+), (.+)=(.+), (.+)=(.+)><>(.+):"
name: "strimzi_oauth_$1_$12"
type: GAUGE
labels:
context: "$2"
kind: "$3"
host: "$4"
path: "$5"
"$6": "$7"
"$8": "$9"
"$10": "$11"
- pattern: "strimzi.oauth<type=(.+), context=(.+), kind=(.+), host=\"(.+)\", path=\"(.+)\", (.+)=(.+), (.+)=(.+)><>(.+):"
name: "strimzi_oauth_$1_$10"
type: GAUGE
labels:
context: "$2"
kind: "$3"
host: "$4"
path: "$5"
"$6": "$7"
"$8": "$9"
- pattern: "strimzi.oauth<type=(.+), context=(.+), kind=(.+), host=\"(.+)\", path=\"(.+)\", (.+)=(.+)><>(.+):"
name: "strimzi_oauth_$1_$8"
type: GAUGE
labels:
context: "$2"
kind: "$3"
host: "$4"
path: "$5"
"$6": "$7"

0 comments on commit 211a6da

Please sign in to comment.