prometheus-pve-sd/docs/content/setup/pip.md

23 lines
582 B
Markdown
Raw Permalink Normal View History

2021-06-14 07:45:19 +00:00
---
title: Using pip
---
```Shell
2021-06-14 07:45:19 +00:00
# From PyPI as unprivileged user
$ pip install prometheus-pve-sd --user
# .. or as root
$ sudo pip install prometheus-pve-sd
# From Wheel file
$ pip install https://github.com/thegeeklab/prometheus-pve-sd/releases/download/v0.1.0/prometheus_pve_sd-0.1.0-py3-none-any.whl
```
Start the service:
```Shell
prometheus-pve-sd -vv --loop-delay 900 -o /etc/prometheus/pve.json
```
After configuring and starting the service, Prometheus need to be [configured](/usage/getting-started/#prometheus-configuration) to use the external service discovery.