-
-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose stats via REST API #183
Comments
Some kind of "fancy" web client with nice tables and diagrams or just text like console output? |
Initially just getting it back in json format would be cool. Then using that as input into fancy graphs and whatnot. |
+1 for json extract of stats that UI can poll through ajax asynch requests. See my api enhancement idea in the discussions |
To honest, I'm not sure if the current stats implementation is really useful:
I'm thinking about to remove internal in-memory stats calculation. Some ideas:
What do you think? Suggestions/Ideas are welcome |
For a first step there needs to be an easy API call to get to the list of recent queries that were allowed/denied - and an API call that can either whitelist denied entry or blacklist allowed entry. Stats (volume, top reqestors, top domains) is relevant, but not essential. |
Worth reviewing and analyzing telnet-based API calls by pihole: |
There is currently no possibility to create a black or whitelist on-the-fly. Blocky reads white and blacklist from text files and can't write new entries (since the file can be readonly because it will be downloaded). To allow list modification within blocky, some kind of database must be introduced or this will be done in some another application |
How about keeping the in-memory key-value cache of whitelists/blacklists with an option of a triggered dump (and read) of lists to/from a chosen DB provider (Redis/Elastisearch...) The same could apply to the log stream - keep in-memory short-term buffer with a regular dump to a chosen provider (Telegraf, Logstash...). Want no logs due to privacy concerns? Configure no log provider and nothing is preserved! Is this a deviation too far from the current direction? |
It sounds good, multiple sources for blacklists(file local, http download, database,...). But there is still no ui to create and edit list entries. Do you know some 3rd party tool which would provide some generic ui to achieve that? Otherwise some ui in blocky (or other tool) must be implemented. |
Or use only local files (as already available) but add a routine to watch and reload them on change (?) |
The issue #258 (currently WIP) stores (optional) all queries (request, response, clientIP etc) in the database. This would allow to define reports (e.g. in grafana) based on actual queried domain. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
Allow for viewing the stats via the http interface (make it togglable in the configuration)
The text was updated successfully, but these errors were encountered: