-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Feature : Add Prometheus metrics #3535
Comments
I think the best to integrate third party apps is using the Wekan API. |
Yes. For those counts, you would add REST API code to |
Related #1308 |
Yes, maybe I can directly use the API. But I would like some advices because it would be nice to have an API endpoint to get all private boards. Right now, |
You should add new API endpoint that does |
🤔 I'm not sure to understand. You mean I should create a |
Yes. Somewhere here: With this kind of MongoDB database counting query:
|
Ok I see, thanks I'll take a look and submit a PR ! |
You can build Wekan, test code changes, and send pull request like similar like here: But with only your code changes, no need to add any plugin. |
Fixed at #3556 |
Wow, without authentication? Those that mass scan Internet would get a lot of details. I prefer no. |
WeKan already has Matomo Web Analytics integration, is that not enough? |
@xet7,
|
Yes allowed IP address list for metrics is OK. |
Just FYI I made a little python script to act as a Prometheus exporter, which use the Wekan API. it is hosted here but IIRC this is a private Gitlab instance. If you need it I may provide you a gist. |
Please provide gist. Thanks! |
You can find a copy of the code here https://gist.github.com/pichouk/2040c30127bec7a561d31d646c4571a7 I'm not sure it will be very helpful because this is just a simple Python script running (in Docker) on the same server than the Wekan instance. This is not great software 😂 |
It's very helpful. There are many Python scripts for WeKan already, this is great addition. Thanks! |
I added wiki page about what Python code there is for WeKan: |
@xet7 |
Environment variable usually is less code to add, it's OK. |
Hi,
I'm currently hosting a Wekan instance for several organisations, and I wonder if we can add a Prometheus endpoint to get some metrics from Wekan, for example :
Prometheus is really the leading monitoring solution, and a lot of online softwares have integrated Prometheus exporter (or plugins that does the job).
I guess it should not be too complicated as it consists of exposing a simple plain text file under
/metrics
, as described in Prometheus documentation. This page is generated regularly based on database query.I'm not a Javascript developer (nor a developer actually), but I may try to implement an opt-in Prometheus exporter feature if it sounds interesting for other people. Or at least help to describe/design the feature.
The text was updated successfully, but these errors were encountered: