This commit is contained in:
parent
b022ebdc33
commit
192391f52c
@ -8,6 +8,10 @@ I use the wonderful caddy server just everywhere. There are two things that i di
|
|||||||
|
|
||||||
The other point is: i run a little [gitea](https://about.gitea.com/) instance for some little projects on a small vserver from hetzner. some weeks ago i got prometheus alerts for cpu and memory exhaustion. i checked logs and everything and found out that i got a victim of this stupid fucked up ai craweler shit. so i start to check my caddy logs if i discover high load on my server and add the user agents to my `Caddyfile`. i thought it would be nice to find a top list of scraper bots that gets by my caddy server. so this exporter also adds the user agents as prometheus labels.
|
The other point is: i run a little [gitea](https://about.gitea.com/) instance for some little projects on a small vserver from hetzner. some weeks ago i got prometheus alerts for cpu and memory exhaustion. i checked logs and everything and found out that i got a victim of this stupid fucked up ai craweler shit. so i start to check my caddy logs if i discover high load on my server and add the user agents to my `Caddyfile`. i thought it would be nice to find a top list of scraper bots that gets by my caddy server. so this exporter also adds the user agents as prometheus labels.
|
||||||
|
|
||||||
|
Here metrics after running the exporter for a few minutes:
|
||||||
|
|
||||||
|
![README](./README.png)
|
||||||
|
|
||||||
Happily, all the stuff we need is available through the standard json logs 🥳🎉, we tail them and create metrics out of them.
|
Happily, all the stuff we need is available through the standard json logs 🥳🎉, we tail them and create metrics out of them.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
BIN
README.png
Normal file
BIN
README.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 170 KiB |
Loading…
Reference in New Issue
Block a user