Reputation: 9761
I have a need to monitor some jobs in Kubernetes.
I see two differents ways to monitor with the Operator: PodMonitor vs Service Monitor.
What would you recommend when it comes to monitoring jobs ?
Upvotes: 1
Views: 758
Reputation: 6040
By nature, jobs do not have services. Instead, they generate temporary pods to run a job. This doesn't fit well into a service-based discovery of Prometheus. Thus I recommend using a PodMonitor
for Jobs.
Upvotes: 1