Merge ~valentinviennot/ubuntu-docker-images:update-prometheus-readme into ~ubuntu-docker-images/ubuntu-docker-images/+git/prometheus:edge

Proposed by Valentin Viennot
Status: Merged
Merged at revision: 6cbe2e3412db91f0e740a9335c3de3f14fcb4dac
Proposed branch: ~valentinviennot/ubuntu-docker-images:update-prometheus-readme
Merge into: ~ubuntu-docker-images/ubuntu-docker-images/+git/prometheus:edge
Diff against target: 53 lines (+8/-13)
1 file modified
oci/README.md (+8/-13)
Reviewer Review Type Date Requested Status
Lucas Kanashiro Approve
Richard Harding (community) Needs Fixing
Sergio Durigan Junior Pending
Review via email: mp+394083@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

There is a small fix needed. Check the inline comment.

review: Needs Fixing
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Another fix needed.

Revision history for this message
Richard Harding (rharding) :
review: Needs Fixing
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

The TZ config is on our radar. I am approving this MP.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/oci/README.md b/oci/README.md
index 5679e90..80794c6 100644
--- a/oci/README.md
+++ b/oci/README.md
@@ -6,7 +6,7 @@ Prometheus is a systems and service monitoring system. It collects metrics from
66
7## Tags7## Tags
88
9* `2.20.1`, `2.20`, `2`, `beta` - **/!\ this is a beta release**9* `2.20.1-focal`, `2.20.1`, `2.20-focal`, `2.20`, `2-focal`, `2`, `focal`, `beta` - **/!\ this is a beta release**
1010
11## Architectures supported11## Architectures supported
1212
@@ -17,25 +17,20 @@ Prometheus is a systems and service monitoring system. It collects metrics from
17### Docker CLI17### Docker CLI
1818
19```sh19```sh
20$ docker run --name prometheus -e TZ=UTC -d squeakywheel/prometheus:edge20$ docker run -d --name prometheus -p 30090:9090 -e TZ=Europe/London squeakywheel/prometheus:edge
21```21```
2222
23Since containers are ephemeral, you may want to use persistent data rather than initializing a new database for each newly launched container. To do this, you can use docker volumes:23Access your Prometheus instance at [`localhost:30090`](http://localhost:30090/).
24
25```sh
26$ docker run --name prometheus -v /path/to/persisted/data:/prometheus -e TZ=UTC -d squeakywheel/prometheus:edge
27```
28
29**Important note**: the directory you will be using to persist the data needs to belong to `nogroup:nobody`. You can run `chown nogroup:nobody <path_to_persist_data>` before launching your container.
3024
31#### Parameters25#### Parameters
3226
33| Parameter | Description |27| Parameter | Description |
34|---|---|28|---|---|
35| `-e TZ=UTC` | Timezone. |29| `-e TZ=UTC` | Timezone. |
36| `-v /path/to/persisted/data:/prometheus` | Pass the directory used to persist the data. |30| `-p 30090:9090` | Expose Prometheus server on `localhost:30090`. |
37| `-v /path/to/prometheus/config/file/prometheus.yml:/etc/prometheus/prometheus.yml` | Pass a custom config file. |31| `-v /path/to/persisted/data:/prometheus` | Persist data instead of initializing a new database for each newly launched container. **Important note**: the directory you will be using to persist the data needs to belong to `nogroup:nobody`. You can run `chown nogroup:nobody <path_to_persist_data>` before launching your container. |
38| `-v /path/to/prometheus/config/file/alerts.yml:/etc/prometheus/alerts.yml` | Pass a custom alerts config file. |32| `-v /path/to/prometheus.yml:/etc/prometheus/prometheus.yml` | Pass a custom config file (download this [example file](https://git.launchpad.net/~canonical-server/ubuntu-server-oci/+git/prometheus/plain/oci/examples/config/prometheus.yml)). |
33| `-v /path/to/alerts.yml:/etc/prometheus/alerts.yml` | Pass a custom alerts config file (download this [example file](https://git.launchpad.net/~canonical-server/ubuntu-server-oci/+git/prometheus/plain/oci/examples/config/alerts.yml)). |
3934
4035
41#### Testing/Debugging36#### Testing/Debugging
@@ -146,7 +141,7 @@ spec:
146$ microk8s kubectl apply -f prometheus-deployment.yml141$ microk8s kubectl apply -f prometheus-deployment.yml
147```142```
148143
149You will now be able to connect to the Prometheus on `http://localhost:30090`.144You will now be able to connect to the Prometheus on [`http://localhost:30090`](http://localhost:30090).
150145
151## Bugs and Features request146## Bugs and Features request
152147

Subscribers

People subscribed via source and target branches