Compare commits
7 commits
Author | SHA1 | Date | |
---|---|---|---|
beb356e75f | |||
cafd964700 | |||
9277ad3afc | |||
ad4604e5a8 | |||
4c5e97e0de | |||
efb009aaef | |||
964bc98518 |
10 changed files with 46 additions and 108 deletions
14
.github/README.md
vendored
Normal file
14
.github/README.md
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Keycloak Metrics
|
||||
|
||||
Provides metrics for Keycloak user/admin events and user/client/session count. Tested on Keycloak [22-26](.woodpecker/verify.yaml#L7-L11).
|
||||
|
||||
[](https://central.sonatype.com/artifact/io.kokuwa.keycloak/keycloak-event-metrics)
|
||||
[](https://hub.docker.com/r/kokuwaio/keycloak-event-metrics)
|
||||
[](https://hub.docker.com/r/kokuwaio/keycloak-event-metrics)
|
||||
[](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/Dockerfile)
|
||||
[](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/LICENSE)
|
||||
[](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/issues)
|
||||
[](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/pulls)
|
||||
[](https://ci.kokuwa.io/repos/kokuwaio/keycloak-event-metrics/)
|
||||
|
||||
For more documention see: [git.kokuwa.io/kokuwaio/keycloak-event-metrics](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics)
|
42
.github/workflows/build.yaml
vendored
42
.github/workflows/build.yaml
vendored
|
@ -1,42 +0,0 @@
|
|||
name: Verify
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
- push:
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
- uses: actions/setup-java@main
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 17
|
||||
cache: maven
|
||||
- run: mvn verify
|
||||
|
||||
versions:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
version:
|
||||
- 22.0.5
|
||||
- 23.0.7
|
||||
- 24.0.5
|
||||
- 25.0.6
|
||||
- 26.2.5
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
- uses: actions/setup-java@main
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 17
|
||||
cache: maven
|
||||
- run: mvn verify -Dversion.org.keycloak.test=${{ matrix.version }}
|
23
.github/workflows/lint.yaml
vendored
23
.github/workflows/lint.yaml
vendored
|
@ -1,23 +0,0 @@
|
|||
name: Lint
|
||||
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
- uses: docker://kokuwaio/renovate-config-validator
|
||||
|
||||
markdownlint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
- uses: docker://kokuwaio/markdownlint
|
||||
|
||||
yamllint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@main
|
||||
- uses: docker://kokuwaio/yamllint
|
|
@ -1,9 +1,9 @@
|
|||
when:
|
||||
instance: ci.kokuwa.io
|
||||
repo: keycloak/keycloak-event-metrics
|
||||
repo: kokuwaio/keycloak-event-metrics
|
||||
event: [manual, push]
|
||||
branch: main
|
||||
path: [.woodpecker/deploy.yaml, Dockerfile, pom.xml, src/main/**]
|
||||
path: [.woodpecker/deploy.yaml, README.md, Dockerfile, pom.xml, src/main/**]
|
||||
|
||||
services:
|
||||
- name: dockerd
|
||||
|
@ -48,3 +48,14 @@ steps:
|
|||
org.opencontainers.image.licenses: EUPL-1.2
|
||||
org.opencontainers.image.ref.name: kokuwaio/keycloak-event-metrics
|
||||
org.opencontainers.image.version: snapshot
|
||||
|
||||
dockerhub:
|
||||
image: kokuwaio/dockerhub-metadata
|
||||
settings:
|
||||
repository: kokuwaio/keycloak-event-metrics
|
||||
description-short: Provides metrics for Keycloak user/admin events and user/client/session count.
|
||||
categories: monitoring-and-observability
|
||||
username: {from_secret: dockerhub_username}
|
||||
password: {from_secret: dockerhub_password}
|
||||
when:
|
||||
path: [README.md]
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
when:
|
||||
instance: ci.kokuwa.io
|
||||
repo: keycloak/keycloak-event-metrics
|
||||
event: [manual, push]
|
||||
branch: main
|
||||
path: [.woodpecker/dockerhub.yaml, README.md]
|
||||
|
||||
steps:
|
||||
|
||||
metadata:
|
||||
image: kokuwaio/dockerhub-metadata
|
||||
settings:
|
||||
repository: kokuwaio/keycloak-event-metrics
|
||||
description-short: Provides metrics for Keycloak user/admin events and user/client/session count.
|
||||
categories: monitoring-and-observability
|
||||
username: {from_secret: dockerhub_username}
|
||||
password: {from_secret: dockerhub_password}
|
|
@ -1,6 +1,6 @@
|
|||
when:
|
||||
instance: ci.kokuwa.io
|
||||
repo: keycloak/keycloak-event-metrics
|
||||
repo: kokuwaio/keycloak-event-metrics
|
||||
event: deployment
|
||||
branch: main
|
||||
|
||||
|
|
|
@ -13,7 +13,3 @@ rules:
|
|||
quoted-strings:
|
||||
quote-type: double
|
||||
required: only-when-needed
|
||||
|
||||
# allow everything on keys
|
||||
truthy:
|
||||
check-keys: false
|
||||
|
|
12
README.md
12
README.md
|
@ -2,14 +2,14 @@
|
|||
|
||||
Provides metrics for Keycloak user/admin events and user/client/session count. Tested on Keycloak [22-26](.woodpecker/verify.yaml#L7-L11).
|
||||
|
||||
[](https://central.sonatype.com/search?namespace=io.kokuwa.keycloak&q=keycloak-event-metrics)
|
||||
[](https://central.sonatype.com/artifact/io.kokuwa.keycloak/keycloak-event-metrics)
|
||||
[](https://hub.docker.com/r/kokuwaio/keycloak-event-metrics)
|
||||
[](https://hub.docker.com/r/kokuwaio/keycloak-event-metrics)
|
||||
[](https://git.kokuwa.io/keycloak/keycloak-event-metrics/src/branch/main/Dockerfile)
|
||||
[](https://git.kokuwa.io/keycloak/keycloak-event-metrics/src/branch/main/LICENSE)
|
||||
[](https://git.kokuwa.io/keycloak/keycloak-event-metrics/pulls)
|
||||
[](https://git.kokuwa.io/keycloak/keycloak-event-metrics/issues)
|
||||
[](https://ci.kokuwa.io/repos/keycloak/keycloak-event-metrics/)
|
||||
[](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/Dockerfile)
|
||||
[](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/LICENSE)
|
||||
[](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/issues)
|
||||
[](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/pulls)
|
||||
[](https://ci.kokuwa.io/repos/kokuwaio/keycloak-event-metrics/)
|
||||
|
||||
## Why?
|
||||
|
||||
|
|
23
pom.xml
23
pom.xml
|
@ -4,11 +4,11 @@
|
|||
|
||||
<groupId>io.kokuwa.keycloak</groupId>
|
||||
<artifactId>keycloak-event-metrics</artifactId>
|
||||
<version>2.0.0</version>
|
||||
<version>2.0.1-SNAPSHOT</version>
|
||||
|
||||
<name>Keycloak Metrics</name>
|
||||
<description>Provides metrics for Keycloak user/admin events</description>
|
||||
<url>https://git.kokuwa.io/keycloak/keycloak-event-metrics</url>
|
||||
<url>https://git.kokuwa.io/kokuwaio/keycloak-event-metrics</url>
|
||||
<inceptionYear>2023</inceptionYear>
|
||||
<organization>
|
||||
<name>Kokuwa.io</name>
|
||||
|
@ -33,18 +33,18 @@
|
|||
</developers>
|
||||
|
||||
<scm>
|
||||
<url>https://git.kokuwa.io/keycloak/keycloak-event-metrics</url>
|
||||
<connection>scm:git:https://git.kokuwa.io/keycloak/keycloak-event-metrics.git</connection>
|
||||
<developerConnection>scm:git:https://git.kokuwa.io/keycloak/keycloak-event-metrics.git</developerConnection>
|
||||
<tag>2.0.0</tag>
|
||||
<url>https://git.kokuwa.io/kokuwaio/keycloak-event-metrics</url>
|
||||
<connection>scm:git:https://git.kokuwa.io/kokuwaio/keycloak-event-metrics.git</connection>
|
||||
<developerConnection>scm:git:https://git.kokuwa.io/kokuwaio/keycloak-event-metrics.git</developerConnection>
|
||||
<tag>HEAD</tag>
|
||||
</scm>
|
||||
<issueManagement>
|
||||
<system>forgejo</system>
|
||||
<url>https://git.kokuwa.io/keycloak/keycloak-event-metrics/issues</url>
|
||||
<url>https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/issues</url>
|
||||
</issueManagement>
|
||||
<ciManagement>
|
||||
<system>woodpecker</system>
|
||||
<url>https://ci.kokuwa.io/repos/keycloak/keycloak-event-metrics</url>
|
||||
<url>https://ci.kokuwa.io/repos/kokuwaio/keycloak-event-metrics</url>
|
||||
</ciManagement>
|
||||
<distributionManagement>
|
||||
<snapshotRepository>
|
||||
|
@ -59,7 +59,7 @@
|
|||
<!-- =============================== Build =============================== -->
|
||||
<!-- ===================================================================== -->
|
||||
|
||||
<project.build.outputTimestamp>2025-06-25T14:15:09Z</project.build.outputTimestamp>
|
||||
<project.build.outputTimestamp>2025-06-25T14:15:39Z</project.build.outputTimestamp>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.build.propertiesEncoding>ISO-8859-1</project.build.propertiesEncoding>
|
||||
|
||||
|
@ -301,7 +301,7 @@
|
|||
<plugin>
|
||||
<groupId>net.revelc.code.formatter</groupId>
|
||||
<artifactId>formatter-maven-plugin</artifactId>
|
||||
<version>2.26.0</version>
|
||||
<version>2.27.0</version>
|
||||
<configuration>
|
||||
<configFile>${formatter.configFile}</configFile>
|
||||
</configuration>
|
||||
|
@ -454,7 +454,7 @@
|
|||
<build>
|
||||
<plugins>
|
||||
|
||||
<!-- add source/javadoc for downstream projects -->
|
||||
<!-- add source/javadoc -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
|
@ -506,7 +506,6 @@
|
|||
<artifactId>central-publishing-maven-plugin</artifactId>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<skipPublishing>true</skipPublishing>
|
||||
<publishingServerId>sonatype.org</publishingServerId>
|
||||
<autoPublish>true</autoPublish>
|
||||
<waitUntil>published</waitUntil>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["local>infrastructure/renovate-config", ":reviewer(stephan.schnabel)"],
|
||||
"extends": ["local>kokuwaio/renovate-config", ":reviewer(stephan.schnabel)"],
|
||||
"pinDigests": false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue