You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! No need to apologize, this is a completely valid question!
This library provides decorators for your Flask managed endpoints, e.g. the @metrics.counter will count the number of times your /newaliment has been called. If you want to keep track of a different counter and manage it yourself, you could get a Counter from the underlying library like this (double-check if I haven't messed up the syntax) :
Hi,
Im very new to Flask and Python in general.
I would like to expose metrics of a simple app I created.
The thing is I don't understand how to increment the value of a Counter for example..
I initialize my counter but how can I increment it by "1" when an aliment is added in my database please ?
Thanks for your help and excuse my stupid question.
The text was updated successfully, but these errors were encountered: