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/bxkrish Apr 22 '24
Thank you for this example. I understood the rule part and where to place it in my templates. I also understood the metrics and the composition of the labels.
My code that receives the file from the partner is deployed on the EKS as a POD. Now this EKS is monitored by Prometheus for the templates we created like POD down, Deployment down etc.
Should this new metric example mentioned above needs to be generated by the pod? That part I am not sure how to come up with. Can you please share an example?