Skip to content

Commit

Permalink
Merge branch 'release/0.0.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed Sep 12, 2022
2 parents 8190390 + 43dd74a commit d5bc6e1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
Export your favorite GitHub repositories to Prometheus

* Use it _as a service_: See https://gh.skuzzle.de for instructions
* Deploy it _on-premise_: `docker pull ghcr.io/skuzzle/gh-prom-exporter/gh-prom-exporter:0.0.12`
* Deploy it _on-premise_: `docker pull ghcr.io/skuzzle/gh-prom-exporter/gh-prom-exporter:0.0.13`

## On-Premise deployment with docker
This application can easily be run as a docker container in whatever environment you like:

```
docker run -p 8080:8080 \
-e WEB_ALLOWANONYMOUSSCRAPE=true \
ghcr.io/skuzzle/gh-prom-exporter/gh-prom-exporter:0.0.12
ghcr.io/skuzzle/gh-prom-exporter/gh-prom-exporter:0.0.13
```

With _anonymous scraping_ allowed, you can now easily view the scrape results directly in the browser by navigating to
Expand All @@ -38,7 +38,7 @@ scrape_configs:
In case you want to enforce authenticated scrapes only, use this configuration instead:
```
docker run -p 8080:8080 \
ghcr.io/skuzzle/gh-prom-exporter/gh-prom-exporter:0.0.12
ghcr.io/skuzzle/gh-prom-exporter/gh-prom-exporter:0.0.13
```

Scraping now requires a GitHub access token, otherwise the service will respond with 401/Unauthorized.
Expand Down
7 changes: 4 additions & 3 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

[![Coverage Status](https://coveralls.io/repos/github/skuzzle/gh-prom-exporter/badge.svg?branch=master)](https://coveralls.io/github/skuzzle/gh-prom-exporter?branch=master) [![Twitter Follow](https://img.shields.io/twitter/follow/skuzzleOSS.svg?style=social)](https://twitter.com/skuzzleOSS)

* Upgrade to Spring-Boot 2.7.2 (coming from 2.7.1)
* Log whole stack trace when a potential abuse was detected
* Upgrade to Spring-Boot 2.7.3 (coming from 2.7.2)

```
docker pull ghcr.io/skuzzle/gh-prom-exporter/gh-prom-exporter:0.0.12
```
docker pull ghcr.io/skuzzle/gh-prom-exporter/gh-prom-exporter:0.0.13
```
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>de.skuzzle.ghpromexporter</groupId>
<artifactId>gh-prom-exporter</artifactId>
<version>0.0.12</version>
<version>0.0.13</version>

<name>gh-prom-exporter</name>
<description>Export GitHub repository metrics in prometheus format</description>
Expand All @@ -36,7 +36,7 @@
<docker.registry.name>ghcr.io</docker.registry.name>
<docker.image.name>${docker.registry.name}/${github.user}/${github.name}/${project.artifactId}</docker.image.name>

<spring-boot.version>2.7.2</spring-boot.version>
<spring-boot.version>2.7.3</spring-boot.version>
<spring-cloud.version>2021.0.3</spring-cloud.version>
<guava.version>31.0.1-jre</guava.version>
<github-api.version>1.135</github-api.version>
Expand Down
5 changes: 3 additions & 2 deletions readme/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

[![Coverage Status](https://coveralls.io/repos/github/${github.user}/${github.name}/badge.svg?branch=${github.main-branch})](https://coveralls.io/github/${github.user}/${github.name}?branch=${github.main-branch}) [![Twitter Follow](https://img.shields.io/twitter/follow/skuzzleOSS.svg?style=social)](https://twitter.com/skuzzleOSS)

* Upgrade to Spring-Boot 2.7.2 (coming from 2.7.1)
* Log whole stack trace when a potential abuse was detected
* Upgrade to Spring-Boot 2.7.3 (coming from 2.7.2)

```
docker pull ${docker.image.name}:${project.version}
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private boolean abuseLimitExceeded(InetAddress origin, int actualAbuses) {
* @param origin The origin IP.
*/
void recordFailedCall(Throwable e, InetAddress origin) {
log.warn("Abuse recorded for {}: {}", origin, e.getMessage());
log.warn("Abuse recorded for {}: {}", origin, e.getMessage(), e);
abusers.put(origin, _0IfNull(abusers.getIfPresent(origin)) + 1);
}

Expand Down

0 comments on commit d5bc6e1

Please sign in to comment.