Compare commits

...

7 commits
2.0.0 ... main

Author SHA1 Message Date
beb356e75f
chore: remove github actions
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
2025-06-27 21:31:22 +02:00
cafd964700
chore: fix renovate preset location
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
2025-06-27 11:39:46 +02:00
9277ad3afc
chore: fix repo urls in pom.xml
All checks were successful
ci/woodpecker/pr/verify Pipeline was successful
ci/woodpecker/pr/versions/4 Pipeline was successful
ci/woodpecker/pr/versions/1 Pipeline was successful
ci/woodpecker/pr/versions/2 Pipeline was successful
ci/woodpecker/pr/versions/5 Pipeline was successful
ci/woodpecker/pr/versions/3 Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
2025-06-26 21:52:37 +02:00
ad4604e5a8
chore(deps): update dependency net.revelc.code.formatter:formatter-maven-plugin from 2.26.0 to 2.27.0
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
ci/woodpecker/pr/verify Pipeline was successful
ci/woodpecker/pr/versions/4 Pipeline was successful
ci/woodpecker/pr/versions/1 Pipeline was successful
ci/woodpecker/pr/versions/5 Pipeline was successful
ci/woodpecker/pr/versions/3 Pipeline was successful
ci/woodpecker/pr/versions/2 Pipeline was successful
2025-06-26 03:03:26 +00:00
4c5e97e0de
Add Github README.
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
2025-06-25 20:40:15 +02:00
efb009aaef
Rename to kokuwaio/keycloak-event-metrics
All checks were successful
ci/woodpecker/push/dockerhub Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
2025-06-25 19:50:16 +02:00
964bc98518
[maven-release-plugin] prepare for next development iteration
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
2025-06-25 14:15:39 +00:00
10 changed files with 46 additions and 108 deletions

14
.github/README.md vendored Normal file
View 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).
[![maven](https://img.shields.io/maven-central/v/io.kokuwa.keycloak/keycloak-event-metrics.svg?label=maven)](https://central.sonatype.com/artifact/io.kokuwa.keycloak/keycloak-event-metrics)
[![pulls](https://img.shields.io/docker/pulls/kokuwaio/keycloak-event-metrics)](https://hub.docker.com/r/kokuwaio/keycloak-event-metrics)
[![size](https://img.shields.io/docker/image-size/kokuwaio/keycloak-event-metrics)](https://hub.docker.com/r/kokuwaio/keycloak-event-metrics)
[![dockerfile](https://img.shields.io/badge/source-Dockerfile%20-blue)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/Dockerfile)
[![license](https://img.shields.io/badge/license-EUPL%201.2-blue)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/LICENSE)
[![issues](https://img.shields.io/gitea/issues/open/kokuwaio/keycloak-event-metrics?gitea_url=https%3A%2F%2Fgit.kokuwa.io)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/issues)
[![prs](https://img.shields.io/gitea/pull-requests/open/kokuwaio/keycloak-event-metrics?gitea_url=https%3A%2F%2Fgit.kokuwa.io)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/pulls)
[![build](https://ci.kokuwa.io/api/badges/kokuwaio/keycloak-event-metrics/status.svg)](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)

View file

@ -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 }}

View file

@ -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

View file

@ -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]

View file

@ -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}

View file

@ -1,6 +1,6 @@
when:
instance: ci.kokuwa.io
repo: keycloak/keycloak-event-metrics
repo: kokuwaio/keycloak-event-metrics
event: deployment
branch: main

View file

@ -13,7 +13,3 @@ rules:
quoted-strings:
quote-type: double
required: only-when-needed
# allow everything on keys
truthy:
check-keys: false

View file

@ -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).
[![Maven Central](https://img.shields.io/maven-central/v/io.kokuwa.keycloak/keycloak-event-metrics.svg?label=Maven%20Central)](https://central.sonatype.com/search?namespace=io.kokuwa.keycloak&q=keycloak-event-metrics)
[![maven](https://img.shields.io/maven-central/v/io.kokuwa.keycloak/keycloak-event-metrics.svg?label=maven)](https://central.sonatype.com/artifact/io.kokuwa.keycloak/keycloak-event-metrics)
[![pulls](https://img.shields.io/docker/pulls/kokuwaio/keycloak-event-metrics)](https://hub.docker.com/r/kokuwaio/keycloak-event-metrics)
[![size](https://img.shields.io/docker/image-size/kokuwaio/keycloak-event-metrics)](https://hub.docker.com/r/kokuwaio/keycloak-event-metrics)
[![dockerfile](https://img.shields.io/badge/source-Dockerfile%20-blue)](https://git.kokuwa.io/keycloak/keycloak-event-metrics/src/branch/main/Dockerfile)
[![license](https://img.shields.io/badge/License-EUPL%201.2-blue)](https://git.kokuwa.io/keycloak/keycloak-event-metrics/src/branch/main/LICENSE)
[![prs](https://img.shields.io/gitea/pull-requests/open/keycloak/keycloak-event-metrics?gitea_url=https%3A%2F%2Fgit.kokuwa.io)](https://git.kokuwa.io/keycloak/keycloak-event-metrics/pulls)
[![issues](https://img.shields.io/gitea/issues/open/keycloak/keycloak-event-metrics?gitea_url=https%3A%2F%2Fgit.kokuwa.io)](https://git.kokuwa.io/keycloak/keycloak-event-metrics/issues)
[![build](https://ci.kokuwa.io/api/badges/keycloak/keycloak-event-metrics/status.svg)](https://ci.kokuwa.io/repos/keycloak/keycloak-event-metrics/)
[![dockerfile](https://img.shields.io/badge/source-Dockerfile%20-blue)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/Dockerfile)
[![license](https://img.shields.io/badge/license-EUPL%201.2-blue)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/LICENSE)
[![issues](https://img.shields.io/gitea/issues/open/kokuwaio/keycloak-event-metrics?gitea_url=https%3A%2F%2Fgit.kokuwa.io)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/issues)
[![prs](https://img.shields.io/gitea/pull-requests/open/kokuwaio/keycloak-event-metrics?gitea_url=https%3A%2F%2Fgit.kokuwa.io)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/pulls)
[![build](https://ci.kokuwa.io/api/badges/kokuwaio/keycloak-event-metrics/status.svg)](https://ci.kokuwa.io/repos/kokuwaio/keycloak-event-metrics/)
## Why?

23
pom.xml
View file

@ -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>

View file

@ -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
}