Difference between revisions of "Prometheus installation"

From wikieduonline
Jump to navigation Jump to search
 
(18 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 +
https://prometheus.io/docs/prometheus/latest/installation/
 +
 
* [[Linux]]:
 
* [[Linux]]:
** <code>Ubuntu: [[apt install]] prometheus</code>
+
** <code>Ubuntu: [[apt install prometheus -y]]</code>
 
**  [[How To Install Prometheus in Linux from binaries]]
 
**  [[How To Install Prometheus in Linux from binaries]]
  
 
* [[macOS]]:  
 
* [[macOS]]:  
** <code>[[brew install]] prometheus && [[brew services start]] prometheus</code>
+
** <code>[[brew install prometheus]] && [[brew services start prometheus]]</code>
 
** <code>brew install [[node_exporter]]</code>. Connect to: http://localhost:9101/metrics
 
** <code>brew install [[node_exporter]]</code>. Connect to: http://localhost:9101/metrics
  
 
* Using [[Docker]] containers:
 
* Using [[Docker]] containers:
** <code>[[docker pull]] prom/prometheus && [[docker run]] -p [[9090]]:9090 prom/prometheus</code><ref>https://prometheus.io/docs/prometheus/latest/installation/</ref> and connect to http://localhost:9090/
+
** <code>[[docker run -p]] [[9090]]:9090 prom/prometheus</code><ref>https://prometheus.io/docs/prometheus/latest/installation/</ref> and connect to http://localhost:9090/
 
** <code>docker pull prom/[[node-exporter]]</code> although it's not recommended to deploy it as a Docker container because it requires access to the host system<ref>https://github.com/prometheus/node_exporter</ref>
 
** <code>docker pull prom/[[node-exporter]]</code> although it's not recommended to deploy it as a Docker container because it requires access to the host system<ref>https://github.com/prometheus/node_exporter</ref>
  
 +
* Helm (Beta): [[helm install prometheus]]
 +
** <code>[[helm repo add prometheus-community]] https://prometheus-community.github.io/helm-charts</code>
 +
** <code>[[helm repo update]]</code>
 +
** <code>[[helm install RELEASE_NAME prometheus-community/kube-prometheus-stack]]</code>
 +
 +
 +
Connecting:
 +
* http://localhost:9090
  
 +
== Related ==
 +
* <code>[[helm search repo prometheus-community]]</code>
 +
* <code>[[pip install prometheus-client]]</code>
 +
* <code>[[/var/log/prometheus/]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 17:20, 6 July 2023

Advertising: