-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Export image data as Prometheus metrics #2793
Comments
I am not opposed to these idea but could you define the metrics? What's new or filtered depends on the workload and I am not sure we want to publish that per workload. |
Hi, publishing these metrics per workload can be to much. Maybe it's possible to only publish the following metrics:
To reduce the amount of exported metrics, it would also possible to only export one metric |
Flux v1 is in maintenance mode now, and is not adding any new features unless they are critical. This is a really interesting use case and I encourage you to check out the Notification Controller in Flux v2, as well as the new metrics that are available. I am honestly not sure if this has been addressed by Flux v2, though I wouldn't think so from a brief reading and surface understanding of what you're trying to do. I think the developers would be receptive to a feature request, especially if you are willing to contribute a PR. I would also encourage you to open a discussion on the new repo if you are considering making a change. I don't know the status of your Flux deploys, but if you've been following our development efforts then of course we hope you are able to upgrade, here's more info on how to find support with that: https://fluxcd.io/support/ As Flux contrib efforts have been focused on Flux v2, the Flux project has moved to a new repo, fluxcd/flux2 In the interest of reducing the number of open issues not directly related to supporting Flux v1 in maintenance mode, and respecting you may have moved on already, I will go ahead and close out this issue for now. If you have a use case for Flux that isn't covered well in the new Flux v2 (which is a total rewrite), we definitely want to hear about it! Thanks again for your contribution. |
Describe the feature
Flux already handles automatic updates of new version very nice. For some third party images which are running in a cluster it could be possible to disable automation. By default Flux also checks these images for new version and expose the data via the
/api/flux/v6/images
endpoint.It would be nice to also expose these data as Prometheus metrics, so a user can create notification for new image versions. This is helpful for third party images where a user disabled the automation, but wants to stay updated for new versions.
What would the new user story look like?
The user can scrape the metrics via the already existing
/metrics
endpoint. The exported metrics can look as follows:The metrics can be scraped by Prometheus and a user can create rules and send notifications via Alertmanager, when for example
flux_new_filtered_images_total
is larger than0
.If this sound like a useful feature to you, I can also try to come up with a PR.
The text was updated successfully, but these errors were encountered: