-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export images as Prometheus metrics #28
Comments
@ArjonBu thanks for the feature suggestion. To clarify, are you requesting a metrics endpoint on the Anchore service? Or a flag that can be provided to kai such that the output of the images matches something that can be imported into Prometheus? |
@dakaneye a metrics endpoint on KAI which can be scrapped by Prometheus. This metrics endpoint should show the same info that KAI sends to Anchore (image, namespace of the image, etc...) |
@ArjonBu Thanks for suggesting the feature! I have submitted the request to PM for review |
@ArjonBu, I'm not quite sure I understand the specific suggestion. Is the ask for a metric value for each image? For example a metric label "centos:latest" with integer value 1 indicating that one image with that tag is running, and another metric "debian:latest" with 3, for 3 images running in the namespace with that tag. Prometheus metrics are typically numeric, whereas KAI reports a list of names that can change on each invocation, so the metrics, if keyed by the image name or digest, would be dynamic. If that is ok then I understand the ask. Just looking for what you would want to graph in Grafana, for example. That would help clarify. Thanks! |
The metric would have labels for the deployment name (if possible), image tag, namespace and cluster name with the value 1. |
What would you like to be added:
Add a metrics endpoint to expose currently running images as Prometheus metrics
Why is this needed:
Nice to have. We could use this information for other purposes outside Anchore.
The text was updated successfully, but these errors were encountered: