You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-7Lines changed: 21 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ A resource-friendly, highly efficient, and minimal Prometheus exporter to track
8
8
3.[Step-by-Step Guide](#-step-by-step-guide)
9
9
1.[Before You start](#before-you-start)
10
10
2.[Getting started](#getting-started)
11
+
-[Deploy with Github Actions](#-deploy-with-github-actions)
11
12
-[Deploy with Docker](#-deploy-with-docker)
12
13
-[Deploy without Docker](#-cant-use-docker-ok-then-)
13
14
-[Run with a Custom Port](#-run-with-a-custom-port)
@@ -35,8 +36,24 @@ see a sample of the metrics page in [here](./extra/metrics.txt).
35
36
36
37
### Getting started
37
38
39
+
#### ⚙️ Deploy with Github Actions
40
+
- fork the repository.
41
+
- go to the fork repository and switch to `Action` tab.
42
+
- click the `I understand my workflows, go ahead and enable them` button.
43
+
- now you have access to all of the workflows, **however make sure you change the secrets listed below accordingly**:
44
+
1.`secretes.DOCKER_TOKEN` : the personal access token docker hub of your(or your organization) account.
45
+
2.`secretes.GHCR_TOKEN` : github classic access token with (packages read:write permissions) or just simply use `${{github.token}}`. [help](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
46
+
47
+
*here's how workflows work:*
48
+
- on push to `master` the project will be `built`, `deployed` and `released`.
49
+
*since deploying to your servers requires runner configuration it must be triggered manually, you can modify its behavior on `cd.yml` workflow.*
50
+
- on push to any branch **except for**`master` code will be `built` and `healthchecked`
51
+
- on pr the project will be `healthchecked` and `built`.
52
+
53
+
*double check the required variables and secrets to prevent any unexpected failures*
54
+
38
55
#### 🐳 Deploy with Docker
39
-
- clone and enter the repository using the following commands:
56
+
- clone and checkout to the repository using the following commands:
@@ -53,7 +70,6 @@ see a sample of the metrics page in [here](./extra/metrics.txt).
53
70
# build from base with Dockerfile
54
71
docker-compose -f container-exporter-local.yml up --build -d
55
72
```
56
-
*alternatively, run `docker-compose -f container-exporter-local.yml up --build -d` to build from Dockerfile*
57
73
58
74
#### 🐍 Can't use Docker? Ok then :
59
75
```bash
@@ -83,12 +99,10 @@ Replace `<PID>` with the pid of ./start.sh script.
83
99
84
100
#### 🚢 Run With A Custom Port:
85
101
```bash
86
-
./start.sh <your custome port>&
87
-
# or
88
-
CONTAINER_EXPORTER_PORT=<your custom port> docker-compose -f container-exporter.yml up -d
102
+
./start.sh <your custome port>&
89
103
```
90
104
91
-
Change `<your custom port>` with a port of your choice and **make sure you change the port mapping in docker-compose accordingly.**
105
+
Change `<your custom port>` with a port of your choice.
92
106
93
107
### 🔥 Add CXP to Prometheus
94
108
- Edit your `prometheus.yml` file and add the address of container-exporter in scrape_configs:
@@ -128,4 +142,4 @@ Welcome to CXP! This project is currently in an experimental yet stable version,
128
142
129
143
Feel free to contribute in any wacacy you can. If you come across a bug or have a suggestion, please don't hesitate to file an issue. Your input is valuable and helps us improve CXP for everyone; Therefore, add any desired function or feature to TO DO section. We appreciate your contribution to making CXP even better! If you have any questions or need assistance, feel free to reach out. Thank you!
130
144
131
-
- If you want to add metrics to cxp, make sure the naming convention is conformed to. (`container_metric_name`)
145
+
- If you want to add metrics to cxp, make sure the naming convention is conformed to. (`cxp_metric_name`)
0 commit comments