简体   繁体   中英

Difference between Prometheus Adapter and Prometheus Operator

as the title suggests, I can't find any difference between Prometheus Adapter and Prometheus Operator for monitoring in kubernetes on the net.

Can anyone tell me the difference? Or if there are particular use cases in which to use one or the other?

Thanks in advance.

Those are completely different things. Prometheus Operator is a tool created by CoreOS to simplify deployment and management of Prometheus instances in K8s. Using Prometheus Operator you can very easily deploy Prometheus, Alertmanager, Prometheus alert rules and Service Monitors.

Prometheus Adapter is required for using Custom Metrics API in K8s. It is used primarily for Horizontal Pod Autoscaler to scale based on metrics retrieved from Prometheus. For example, you can create metrics inside of your application and collect them using Prometheus and then you can scale based on those metrics which is really good, because by default K8s is able to scale based only on raw metrics of CPU and memory usage which is not suitable in many cases.

So actually those two things can nicely complement each other.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM