Discussion:
[Sks-devel] SKS Statistcs
Теплов М.Ю.
2018-02-02 12:49:01 UTC
Permalink
Colleagues! Is there method to get sks server statistics (key count
etc..) other then http request? I want to graph statistics using Cacti,
so i need get this info quite often.
Valentin Sundermann
2018-02-03 10:31:06 UTC
Permalink
Hey,
Is there method to get sks server statistics (key count etc..) other
then http request? I want to graph statistics using Cacti, so i need get
this info quite often.
As far as I know there isn't any way to get machine readable statistics
out of an SKS instance other than requesting the stats page and parsing
these information.

If you're interested in already parsed data, you can have a look at
https://apps.vsund.de/skstat/status. I originally wrote this to make
fancy graphs and statistics but never finished. It's still collecting
data and providing them as JSON (useful for monitoring or statistics).

If anyone reading this plans to depend on the interfaces (such as the
CSV download or JSON), please leave me a message. I might change the
interfaces when I pick up the work on this app. And also leave me a
message if you have feedback, criticism or wishes for this app.

Thanks & best regards,
Valentin
Kristian Fiskerstrand
2018-02-03 11:03:16 UTC
Permalink
Post by Valentin Sundermann
Hey,
Is there method to get sks server statistics (key count etc..) other
then http request? I want to graph statistics using Cacti, so i need
get
this info quite often.
As far as I know there isn't any way to get machine readable statistics
out of an SKS instance other than requesting the stats page and parsing
these information.
If you're interested in already parsed data, you can have a look at
https://apps.vsund.de/skstat/status. I originally wrote this to make
fancy graphs and statistics but never finished. It's still collecting
data and providing them as JSON (useful for monitoring or statistics).
If anyone reading this plans to depend on the interfaces (such as the
CSV download or JSON), please leave me a message. I might change the
interfaces when I pick up the work on this app. And also leave me a
message if you have feedback, criticism or wishes for this app.
Thanks & best regards,
Valentin
You can also look at the munin implementation at https://git.sumptuouscapital.com/?p=munin-sks.git;a=summary

Keep in mind stats by default are updated once a day and by convention hourly through system signals
--
----------------------------
Kristian Fiskerstrand
Blog: https://blog.sumptuouscapital.com
Twitter: @krifisk
----------------------------
Public OpenPGP certificate at hkp://pool.sks-keyservers.net
fpr:94CB AFDD 3034 5109 5618 35AA 0B7F 8B60 E3ED FAE3
Valentin Sundermann
2018-02-03 11:18:39 UTC
Permalink
Forgot to mention that I developed a TypeScript library for getting
statistics: https://github.com/ntzwrk/sks-lib
There are some regular expressions you might want to have a look at.
Loading...