LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

prometheus

Metrics collection and monitoring toolkit

TLDR

Start Prometheus
$ prometheus --config.file=[prometheus.yml]
copy
Start with storage path
$ prometheus --config.file=[prometheus.yml] --storage.tsdb.path=[/data]
copy
Specify retention
$ prometheus --storage.tsdb.retention.time=[15d]
copy
Enable web admin API
$ prometheus --web.enable-admin-api
copy

SYNOPSIS

prometheus [options]

DESCRIPTION

Prometheus is a monitoring and alerting toolkit that collects metrics from configured targets, stores them, and makes them available for querying and alerting.

PARAMETERS

--config.file file

Configuration file.
--storage.tsdb.path path
Data storage directory.
--storage.tsdb.retention.time duration
Data retention period.
--web.listen-address addr
Listen address.
--web.enable-admin-api
Enable admin endpoints.
--log.level level
Log verbosity.

EXAMPLES

$ # Start with config
prometheus --config.file=prometheus.yml

# Custom port
prometheus --web.listen-address=":9191" \
  --config.file=prometheus.yml

# With retention
prometheus --storage.tsdb.retention.time=30d \
  --config.file=prometheus.yml
copy

CONFIGURATION

$ global:
  scrape_interval: 15s

scrape_configs:
  - job_name: 'prometheus'
    static_configs:
      - targets: ['localhost:9090']
copy

INSTALL

sudo apt install prometheus
copy
sudo dnf install prometheus
copy
sudo pacman -S prometheus
copy
sudo apk add prometheus
copy
brew install prometheus
copy
nix profile install nixpkgs#prometheus
copy

CAVEATS

Requires configuration file. Default port 9090. Use with Grafana for visualization.

HISTORY

Prometheus was created at SoundCloud starting in 2012 and joined the CNCF in 2016 as the second hosted project.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid