Prometheus: Introduction & Getting Started
Prometheus is an open-source monitoring and alerting toolkit designed for reliability and scalability. It is widely used for collecting metrics and powering observability in cloud-native environments.
Why Use Prometheus?
- Collect and store time-series metrics
- Powerful query language (PromQL)
- Integrates with Grafana and alerting systems
How Prometheus Works
- Scrapes metrics from targets via HTTP endpoints
- Stores data in a time-series database
- Supports service discovery and dynamic environments
Quick Start Example
- Run Prometheus (Docker):
- Access the UI:
- Open
http://localhost:9090
in your browser - Add a scrape target (edit
prometheus.yml
): - Reload Prometheus config:
- Use the UI or send a SIGHUP to the container