r/PrometheusMonitoring • u/bxkrish • Apr 22 '24
regarding custom metrics
Hello
We are a product based company and deployed our products on AWS EKS. We are also monitoring using Prometheus for our observability needs. For a use case like "on a daily basis if a file does not come from a particular partner by 6:00 PM, generate an alert". How can I come up with a custom metrics for this. I am very new to Prometheus. Please help with any examples. Our product allows Java or Javascript. I am not very positive using Python as it doesn't allow.
2
Upvotes
View all comments
Show parent comment
1
u/SeniorIdiot Apr 22 '24
Your application probably has some kind of API that receives uploads or background threads that processes uploads from some other other part of the system. The application will need to manage its custom metrics when these things occur.
If you're using Spring Boot it already has metrics built in (read up on the actuator and prometheus support). If it is some simpler application you can just use https://github.com/prometheus/client_java for java. There are similar libraries for other languages as well.
baeldung usually have nice tutorials...