PromLens - Installing from source project
Click on this link
to select and download a version of Promlens that works for your machine architecture:
PromLens - Unzipping the source project
After downloading a binary, here is shown a Mac OSX version 0.3.0, you can unzip the PromLens
binary:
$ tar -xzvf promlens-0.3.0.darwin-amd64.tar.gz
x promlens-0.3.0.darwin-amd64/
x promlens-0.3.0.darwin-amd64/NOTICE
x promlens-0.3.0.darwin-amd64/LICENSE
x promlens-0.3.0.darwin-amd64/promlens
PromLens - Running from source project
To run the PromLens binary and not conflict with the default port of 8080, we need to use a flag.
In this lab we are using 9090 for Prometheus and 8080 for our services demo, so let's use 8081
for PromLens as follows:
$ cd promlens-0.3.0.darwin-amd64
$ ./promlens --web.listen-address localhost:8081
(Note: might need to approve the file in security settings if it fails to start)
PromLens - Configuring the defaults
When you open the link http://localhost:8081
you'll see it is not setup to
query our Prometheus metrics data instance, so we need to adjust the link to point to
http://localhost:9090
as shown:
PromLens - Defaulting to our Prometheus
That was just to show you that it's possible to direct your PromLens instance at any data collection,
but for now we want this to be defaulting to our Prometheus metrics collection. To achieve this,
restart the PromLens instance with the following flags:
$ ./promlens --web.listen-address localhost:8081 --web.default-prometheus-url "http://localhost:9090"
PromLens - This completes installation from source
Next up, we need to verify the installation is working and get started on learning advanced
PromQL:
PromLens - Installing from source project Click on this link to select and download a version of Promlens that works for your machine architecture: