Giter VIP home page Giter VIP logo

Comments (6)

lvelvee avatar lvelvee commented on August 22, 2024 1

Thank you very much for your reply, I'm very interested in this project, I've only read some code so far because api/views.py is too long and some parts are a bit verbose. Please forgive me if there are some parts I didn't read carefully.

I guess what we are missing is a dashboard to view or manage apprise call logs, nginx logs do do that but obviously not easy to manage.

On the other hand, apprise calls can fail and we need these logs to troubleshoot problems. Adding a retry mechanism to include a queue seems to run counter to the lightweight design.

Maybe I need to reconsider it ....

from apprise-api.

lvelvee avatar lvelvee commented on August 22, 2024

Any plans to add persistent profiles and send records?

from apprise-api.

caronc avatar caronc commented on August 22, 2024

Sorry for the delays. It's not that I'm ignoring you. I just haven't had time to have a further look into this. Hopefully on the weekend that will change.

Any plans to add persistent profiles and send records?

Persistent storage already exists. But I guess you mean enabling Django Auth and hide them behind accounts?

As per the logs, this is doable but I would think Python logging to disk might not be as efficient as maybe just letting nginx write to the same persistent storage location as the //config maybe instead? That way it's just available to the administrator?

from apprise-api.

caronc avatar caronc commented on August 22, 2024

No need to reconsider; I love feedback.

I just need to think about it a bit more. The problem is that there already is logging in place but it's at the web hosting level. I get that you'd like to gather more usage statistics i think...

  • query made
  • how many services were notified
  • when and using which key
  • how many failed, etc

This is the kind of useful stuff that would go into a database or some key/value store (nosql) solution. With a backend, then you can also add user authentication, etc. Quiet honestly even a message broker would be useful so that the notifications are sent/handled after your POST request (not during).

I'll ponder just the logging idea; but with the current design; i can't think of a simple way to do it (without starting the steps identified above). Consider that there could be concurrent hits for notification to be sent as well. So just writing to a view-able log file (retrievable through a Django view) would involve semaphore/mutex (locking) etc which may not be the most ideal approach.

Those are just my thoughts out loud though... 🙂

from apprise-api.

lvelvee avatar lvelvee commented on August 22, 2024

Thanks a lot @caronc , it's really not necessary to integrate too much in apprise-api, but providing data for prometheus seems to work, I'll try it sometime.😊

from apprise-api.

caronc avatar caronc commented on August 22, 2024

This request aligns with #143

from apprise-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.