diff options
author | mms <michal@sapka.me> | 2023-11-10 22:14:51 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2023-11-10 22:14:51 +0100 |
commit | 0ae9e128fd57927bc7375e850293c6bdd15e1d4e (patch) | |
tree | eef5a04d5fb59899ca2952af55decb6a5cb0bfc4 | |
parent | 279290ec23920a57570e60e5a629ec20b14774c4 (diff) |
feat: more stats
-rw-r--r-- | content/site/info.md | 24 | ||||
-rw-r--r-- | layouts/shortcodes/httpd_stat.html | 8 | ||||
-rw-r--r-- | layouts/shortcodes/pf_stat.html | 28 | ||||
-rw-r--r-- | layouts/shortcodes/site_stat.html | 9 |
4 files changed, 29 insertions, 40 deletions
diff --git a/content/site/info.md b/content/site/info.md index ae23b6e..0ef215e 100644 --- a/content/site/info.md +++ b/content/site/info.md @@ -30,12 +30,28 @@ All content on this site is licensed under [Creative Commons Attribution 4.0 Int Source code is open and available on my [VCS hub](https://vcs.sapka.me/michal-sapka-me/log.html) (I don't use proprietary forges, like Github). +## Site stats -## Stats (for nerds) +{{<site_stat "httpd-uniq-ips-responses.png" "Httpd unique IPs">}} + +## Web server stats (for nerds) + +Graphs generated using [rrdtool (1)](https://oss.oetiker.ch/rrdtool/) + +{{<site_stat "httpd-responses.png" "Httpd responses">}} +{{<site_stat "httpd-html-responses.png" "Httpd responsess for HTML files">}} +{{<site_stat "httpd-images-responses.png" "Httpd responses for image files">}} +{{<site_stat "httpd-xml-responses.png" "Httpd ressponses for XML files">}} + +## Firewall stats (also for nerds) Firewall graphs generated using [pfstat (8)](https://www.benzedrine.ch/pfstat.html). -All other graphs generated using [rrdtool (1)](https://oss.oetiker.ch/rrdtool/) -{{<httpd_stat>}} -{{<pf_stat>}} +{{<site_stat "pfstat.jpg" "Pf stats">}} +{{<site_stat "pfstat-packets.jpg" "Pf packets stats">}} +{{<site_stat "pfstat-states.jpg" "Pf states tats">}} +{{<site_stat "pfstat-errors.jpg" "Pf error tats">}} + +Thanks for being here! + diff --git a/layouts/shortcodes/httpd_stat.html b/layouts/shortcodes/httpd_stat.html deleted file mode 100644 index 7350f38..0000000 --- a/layouts/shortcodes/httpd_stat.html +++ /dev/null @@ -1,8 +0,0 @@ -<figure> - <a href="https://michal.sapka.me/site-stats/httpd-responses.png" alt="Httpd responses" target="_blank"> - <img src="https://michal.sapka.me/site-stats/httpd-responses.png"> - </a> - <figcaption>Httpd responses</figcaption> -</figure> - - diff --git a/layouts/shortcodes/pf_stat.html b/layouts/shortcodes/pf_stat.html deleted file mode 100644 index dbcdb0f..0000000 --- a/layouts/shortcodes/pf_stat.html +++ /dev/null @@ -1,28 +0,0 @@ -<figure> - <a href="https://michal.sapka.me/site-stats/pfstat.jpg" alt="Firewall general stats" target="_blank"> - <img src="https://michal.sapka.me/site-stats/pfstat.jpg"> - </a> - <figcaption>Firewall general stats</figcaption> -</figure> - -<figure> - <a href="https://michal.sapka.me/site-stats/pfstat-packets.jpg" alt="Firewall packets stats" target="_blank"> - <img src="https://michal.sapka.me/site-stats/pfstat-packets.jpg"> - </a> - <figcaption>Firewall packets stats</figcaption> -</figure> - -<figure> - <a href="https://michal.sapka.me/site-stats/pfstat-states.jpg" alt="" target="_blank"> - <img src="https://michal.sapka.me/site-stats/pfstat-states.jpg"> - </a> - <figcaption>Firewall states stats</figcaption> -</figure> - -<figure> - <a href="https://michal.sapka.me/site-stats/pfstat-error.jpg" alt="Firewall error stats" target="_blank"> - <img src="https://michal.sapka.me/site-stats/pfstat-errors.jpg"> - </a> - <figcaption>Firewall error stats</figcaption> -</figure> - diff --git a/layouts/shortcodes/site_stat.html b/layouts/shortcodes/site_stat.html new file mode 100644 index 0000000..35f4f3f --- /dev/null +++ b/layouts/shortcodes/site_stat.html @@ -0,0 +1,9 @@ +{{- $graph := .Get 0 }} +{{- $alt := .Get 1 }} + +<figure> + <figcaption>{{$alt}}</figcaption> + <a href="https://michal.sapka.me/site-stats/{{$graph}}" target="_blank"> + <img width="980" height="300" loading="lazy" alt="{{$alt}}" src="https://michal.sapka.me/site-stats/{{$graph}}"> + </a> +</figure> |