This repository has been archived by the owner on Feb 3, 2025. It is now read-only.
[FEATURE]: Create Pod Monitors and Service Monitors based on pod and service annotations #34
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/feature
Categorizes issue or PR as related to a new feature.
Is your feature request related to a problem? Please describe.
Managing and scaling monitoring configurations for Kubernetes workloads can become cumbersome, especially when dealing with a large number of services and pods. Manually defining PodMonitor and ServiceMonitor resources in Prometheus Operator for each application introduces overhead and is prone to errors. Automating this process based on annotations simplifies the configuration process and ensures that monitoring can dynamically adapt as pods and services are created or updated.
Describe the solution you'd like.
Enable Scribe to automatically create
PodMonitor
andServiceMonitor
resources based on specific annotations present on pods and services.Proposed Workflow:
prometheus.io/scrape: "true"
with optional parameters likeprometheus.io/port
andprometheus.io/path
.PodMonitor
andServiceMonitor
resources.PodMonitor
orServiceMonitor
resources if the annotations are removed or the associated resource is deleted.Note
This feature should be only enabled if the Prometheus resources are installed and available on the cluster.
It can be enabled at any point in the lifecycle of cluster, so the check should be performed on reconciliation of the resource.
This can be checked using the following strategy:
Describe alternatives you've considered.
Additional Information
No response
The text was updated successfully, but these errors were encountered: