Files
wekan/docs/Features/Stats.md
T
Lauri Ojansivu 7e1f9e89eb Docs: every feature topic in one folder under docs/Features, each with README.md as its main page.
- The General/ level is gone: its 109 files moved up into the folders of the
  same name, and its topic table is the "Shared topics" section of
  Features.md.
- Accessibility is one folder, docs/Features/Accessibility/, with the Admin
  Panel's accessibility page in it.
- Every folder's main page is README.md (110 X/X.md pages renamed with git mv,
  five merged with an existing README.md, 26 index pages added for folders
  that had none), so a folder opened on GitHub shows its page.
- The 73 "# Moved" forwarding pages are deleted, with the folders that held
  only them; every link that went to one goes to its final page.
- docs/Features/README.md has the website's "Features in WeKan" overview,
  each feature linking to its page here.

1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose,
snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when
General/ or a "# Moved" page comes back, a folder has no README.md, or a
relative link in the docs or README.md does not resolve.

Thanks to xet7 !
2026-11-24 20:02:06 +02:00

61 lines
3.1 KiB
Markdown

# Stats
## What it is
Stats means exporting WeKan activity and statistics out of WeKan, so they can be
shown on dashboards and analysed with other tools. WeKan itself has no stats
exporter of its own here: these are companion tools that read the WeKan
database, plus the built-in [Metrics](Metrics.md) endpoint for live counts.
## Read more
- [Dashboard (computing)](https://en.wikipedia.org/wiki/Dashboard_(computing)),
[Logstash](https://en.wikipedia.org/wiki/Logstash) and
[Elasticsearch](https://en.wikipedia.org/wiki/Elasticsearch) on Wikipedia, and
the [Elastic Stack (ELK)](https://www.elastic.co/elastic-stack).
- [Daily export of WeKan changes as JSON to Logstash and ElasticSearch / Kibana (ELK)](https://github.com/wekan/wekan-logstash)
- [Statistics Python script for a WeKan dashboard](https://github.com/wekan/wekan-stats)
- [Console, file, and Zulip logger on database changes](https://github.com/wekan/wekan/pull/1010),
with a [fix to replace console.log with the winston logger](https://github.com/wekan/wekan/pull/1033)
## How to use it
1. For live numbers that a monitoring system scrapes, use [Metrics](Metrics.md).
2. For a daily export to ELK, install
[wekan-logstash](https://github.com/wekan/wekan-logstash) next to the database
and follow its README.
3. For a dashboard of statistics, run
[wekan-stats](https://github.com/wekan/wekan-stats) against the database and
follow its README.
4. For an export of single boards, use the [REST API](../API/REST-API.md).
## How the numbers are calculated
The numbers are computed by the external tools above, not by WeKan; see their
own READMEs. The numbers WeKan computes itself are described in
[Metrics](Metrics.md).
## How it works in WeKan
The tools above read the WeKan MongoDB collections directly; nothing in this
repository runs them. The console, file and Zulip logger of pull request 1010
and its winston change of pull request 1033 were reverted in November 2017
(see the commits below), so current WeKan has no such logger; for logs see
[Logs](Troubleshooting/Logs.md).
## Related
- [Metrics](Metrics.md) — Prometheus metrics endpoint.
- [Logs](Troubleshooting/Logs.md)
- [REST API](../API/REST-API.md)
## Commits
- [Revert the database change logger](https://github.com/wekan/wekan/commit/e28f3692ca9cbf760c524c531e8ca955e4d78521)
- [Fix the logger when LOGGERS is empty](https://github.com/wekan/wekan/commit/b03c9b987959d35324295c7cb49b5c6904ebda43)
- [Enable the logger by default](https://github.com/wekan/wekan/commit/7f8f6bf3dbe4348907085968cd28ec19f69b5384)
- [Move the cleanup, logstash and stats repositories to the WeKan organization](https://github.com/wekan/wekan/commit/4c62b3260506017f7a3cc5c7b6db9051fb694be6)
- [Link the WeKan changes to Logstash export](https://github.com/wekan/wekan/commit/cd70076af2b0d34c2fb4a0ef52c02c8f9da28a69)
- [Replace console.log with the winston logger](https://github.com/wekan/wekan/commit/548172949aaaea054f203d5fdc3286c90c5ae8e1)
- [Console, file and Zulip logger on database changes](https://github.com/wekan/wekan/commit/00a357cd7067cf5c8b055deacfe2e9bc28b06c5e)