|Initial release||24 November 2012|
v2.36.2 / 20 June 2022
|Type||Time series database|
|License||Apache License 2.0|
Prometheus is a free software application used for event monitoring and alerting. It records real-time metrics in a time series database (allowing for high dimensionality) built using a HTTP pull model, with flexible queries and real-time alerting. The project is written in Go and licensed under the Apache 2 License, with source code available on GitHub, and is a graduated project of the Cloud Native Computing Foundation, along with Kubernetes and Envoy.
Prometheus was developed at SoundCloud starting in 2012, when the company discovered that its existing metrics and monitoring solutions (using StatsD and Graphite) were not sufficient for their needs. Specifically, they identified needs that Prometheus was built to meet including: a multi-dimensional data model, operational simplicity, scalable data collection, and a powerful query language, all in a single tool. The project was open-source from the beginning and began to be used by Boxever and Docker users as well, despite not being explicitly announced. Prometheus was inspired by the monitoring tool Borgmon used at Google.
In May 2016, the Cloud Native Computing Foundation accepted Prometheus as its second incubated project, after Kubernetes. The blog post announcing this stated that the tool was in use at many companies including DigitalOcean, Ericsson, CoreOS, Weaveworks, Red Hat, and Google.
In August 2018, the Cloud Native Computing Foundation announced that the Prometheus project had graduated.
A typical monitoring platform with Prometheus is composed of multiple tools:
- Multiple exporters typically run on the monitored host to export local metrics.
- Prometheus to centralize and store the metrics.
- Alertmanager to trigger alerts based on those metrics.
- Grafana to produce dashboards.
- PromQL is the query language used to create dashboards and alerts.
Data storage format
Prometheus data is stored in the form of metrics, with each metric having a name that is used for referencing and querying it. Each metric can be drilled down by an arbitrary number of key=value pairs (labels). Labels can include information on the data source (which server the data is coming from) and other application-specific breakdown information such as the HTTP status code (for metrics related to HTTP responses), query method (GET versus POST), endpoint, etc. The ability to specify an arbitrary list of labels and to query based on these in real time is why Prometheus' data model is called multi-dimensional.
Prometheus collects data in the form of time series. The time series are built through a pull model: the Prometheus server queries a list of data sources (sometimes called exporters) at a specific polling frequency. Each of the data sources serves the current values of the metrics for that data source at the endpoint queried by Prometheus. The Prometheus server then aggregates data across the data sources. Prometheus has a number of mechanisms to automatically discover resources that should be used as data sources.
Prometheus provides its own query language PromQL (Prometheus Query Language) that lets users select and aggregate data. PromQL is specifically adjusted to work in convention with a Time-Series Database and therefore provides time-related query functionalities. Examples include the rate() function, the instant vector and the range vector which can provide many samples for each queried time series. Prometheus has four clearly defined metric types around which the PromQL components revolve. The four types are
Alerts and monitoring
Configuration for alerts can be specified in Prometheus which specifies a condition that needs to be maintained for a specific duration in order for an alert to trigger. When alerts trigger, they are forwarded to the Alertmanager service. Alertmanager can include logic to silence alerts and also to forward them to email, Slack, or notification services such as PagerDuty. Some other messaging systems like Microsoft Teams could be configured using the Alertmanager Webhook Receiver as a mechanism for external integrations. also Prometheus Alerts can be used to receive alerts directly on android devices even without the requirement of any targets configuration in Alert Manager.
Prometheus is not intended as a dashboarding solution. Although it can be used to graph specific queries, it is not a full-fledged dashboarding solution and needs to be hooked up with Grafana to generate dashboards; this has been cited as a disadvantage due to the additional setup complexity.
Prometheus favors white-box monitoring. Applications are encouraged to publish (export) internal metrics to be collected periodically by Prometheus. Some exporters and agents for various applications are available to provide metrics. Prometheus supports some monitoring and administration protocols to allow interoperability for transitioning: Graphite, StatsD, SNMP, JMX, and CollectD.
Prometheus focuses on the availability of the platform and basic operations. The metrics are typically stored for a few weeks. For long-term storage, the metrics can be streamed to remote storage solutions.
Standardization into OpenMetrics
There is an effort to promote Prometheus exposition format into a standard known as OpenMetrics. Some products adopted the format: InfluxData's TICK suite, InfluxDB, Google Cloud Platform, and DataDog.
Prometheus was first used in-house at SoundCloud, where it was developed, for monitoring their systems. The Cloud Native Computing Foundation has a number of case studies of other companies using Prometheus. These include digital hosting service DigitalOcean, digital festival DreamHack, and email and contact migration service ShuttleCloud. Separately, Pandora Radio has mentioned using Prometheus to monitor its data pipeline.
- Check MK
- Ganglia (software)
- Comparison of network monitoring systems
- List of systems management systems
- Latest release at Github
- "Overview". prometheus.io.
- James Turnbull (12 June 2018). Monitoring with Prometheus. Turnbull Press. ISBN 978-0-9888202-8-9.
- "Prometheus: From metrics to insight. Power your metrics and alerting with a leading open-source monitoring solution". Retrieved December 26, 2018.
- "Prometheus". GitHub. Retrieved December 26, 2018.
- Evans, Kristen (August 9, 2018). "Cloud Native Computing Foundation Announces Prometheus Graduation". Retrieved December 26, 2018.
- Brian Brazil (9 July 2018). Prometheus: Up & Running: Infrastructure and Application Performance Monitoring. O'Reilly Media. p. 3. ISBN 978-1-4920-3409-4.
- Volz, Julius; Rabenstein, Björn (January 26, 2015). "Prometheus: Monitoring at SoundCloud". SoundCloud.
- "Monitor Docker Containers with Prometheus". 5π Consulting. January 26, 2015.
- Murphy, Niall; Beyer, Betsy; Jones, Chris; Petoff, Jennifer (2016). Site Reliability Engineering:How Google Runs Production Systems. O'Reilly Media. ISBN 978-1491929124.
Even though Borgmon remains internal to Google, the idea of treating time-series data as a data source for generating alerts is now accessible to everyone through those open source tools like Prometheus ...
- Volz, Julius (4 September 2017). "PromCon 2017: Conference Recap" – via YouTube.
I joined SoundCloud back in 2012 coming from Google...we didn't yet have any monitoring tools that that works with this kind of dynamic environment. We were kind of missing the way Google did its monitoring for its own internal cluster scheduler and we were very inspired by that and finally decided to build our own open-source solution.
- "Cloud Native Computing Foundation Accepts Prometheus as Second Hosted Project". Cloud Native Computing Foundation. May 9, 2016. Retrieved December 26, 2018.
- "Prometheus 1.0 Is Here". Cloud Native Computing Foundation. July 18, 2016. Retrieved December 26, 2018.
- "New Features in Prometheus 2.0.0". Robust Perception. November 8, 2017. Retrieved December 26, 2018.
- "Alertmanager". GitHub. 17 May 2022.
- "Data model". Prometheus. Retrieved December 26, 2018.
- "Integrations - Prometheus". prometheus.io.
- "Prometheus: Collects metrics, provides alerting and graphs web UI". March 18, 2017. Retrieved December 26, 2018.
- "Querying Prometheus". Retrieved November 4, 2019.
- Dubey, Abhishek (March 25, 2018). "AlertManager Integration with Prometheus". Retrieved December 26, 2018.
- Danuka, Praneeth (March 8, 2020). "Alerting for Cloud-native Applications with Prometheus". Retrieved October 18, 2020.
- "Integrations | Prometheus".
- "Prometheus alerts - Apps on Google Play".
- Ryckbosch, Frederick (July 28, 2017). "Prometheus monitoring: Pros and cons". Retrieved December 26, 2018.
- Prometheus. "Instrumentation - Prometheus". prometheus.io.
- "Exporters". prometheus.io.
- Prometheus. "Prometheus - Monitoring system & time series database". prometheus.io.
- "OpenMetrics". GitHub. 2018-11-13.
- "Telegraf from InfluxData". GitHub. 2018-12-25.
- "Announcing Stackdriver Kubernetes Monitoring".
- Evans, Kristen (February 28, 2017). "Prometheus User Profile: How DigitalOcean Uses Prometheus". Cloud Native Computing Foundation. Retrieved December 26, 2018.
- Evans, Kristen (August 24, 2016). "Prometheus User Profile: Monitoring the World's Largest Digital Festival – DreamHack". Cloud Native Computing Foundation. Retrieved December 26, 2018.
- Evans, Kirsten (May 17, 2017). "Prometheus User Profile: ShuttleCloud Explains Why Prometheus Is Good for Your Small Startup". Cloud Native Computing Foundation. Retrieved December 26, 2018.
- Haidrey, Ace (March 15, 2018). "Apache Airflow at Pandora". Engineering at Pandora. Retrieved December 26, 2018.
- "GitLab Prometheus metrics". Retrieved December 26, 2018.
- "GitLab 9.0 released with Subgroups and Deploy Boards". GitLab. 2017-03-22.
- Russ, McKendrick (2015-12-15). Monitoring Docker : monitor your Docker containers and their apps using various native and third-party tools with the help of this exclusive guide!. Birmingham, UK. ISBN 9781785885501. OCLC 933610431.
- JOSEPH., HECK (2018). KUBERNETES FOR DEVELOPERS use kubernetes to develop, test, and deploy your applications with the help of containers;use kubernetes to develop. [S.l.]: PACKT PUBLISHING. ISBN 978-1788830607. OCLC 1031909876.
- Cite book|title=Designing distributed systems : patterns and paradigms for scalable, reliable services|author=Burns, Brendan|isbn=9781491983614|edition=First|location=Sebastopol, CA|oclc=1023861580|date = 2018-02-20}}
- Martin., Helmich (2017). Cloud Native programming with Golang Develop microservice-based high performance web apps for the cloud with Go. Andrawos, Mina., Snoeck, Jelmer. Birmingham: Packt Publishing. ISBN 9781787127968. OCLC 1020029257.
- Alok, Shrivastwa (2018-02-23). Hybrid cloud for architects : build robust hybrid cloud solutions using AWS and OpenStack. Birmingham, UK. ISBN 9781788627986. OCLC 1028641698.
- Kaewkasi, Chanwit (2016). Native Docker Clustering with Swarm. ISBN 978-1786469755.