Skip to content

Commit be96eeb

Browse files
authored
Merge pull request #20 from Shayan-Ghani/readme-changelog
Readme changelog
2 parents 963fb8f + c158c19 commit be96eeb

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,14 @@ Version : 1.1.1
1919
- `cxp_disk_io_read_bytes_total`: Total number of bytes read from disk
2020
- `cxp_disk_io_write_bytes_total`: Total number of bytes written to disk.
2121
- `cxp_network_rx_bytes_total`: Total number of bytes received over the network
22-
- `cxp_network_tx_bytes_total`: Total number of bytes transmitted over the network
22+
- `cxp_network_tx_bytes_total`: Total number of bytes transmitted over the network
23+
24+
# ChangeLog for CXP
25+
26+
Version : 1.1.2-1.1.4
27+
28+
## Key points
29+
- added Github actions deployment option
30+
- this version makes the code more flexible against vulnerability dependency risks PRs.
31+
32+
**check out README.MD, Deploy with Github Actions to make use of the new changes.**

README.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ A resource-friendly, highly efficient, and minimal Prometheus exporter to track
88
3. [Step-by-Step Guide](#-step-by-step-guide)
99
1. [Before You start](#before-you-start)
1010
2. [Getting started](#getting-started)
11+
- [Deploy with Github Actions](#-deploy-with-github-actions)
1112
- [Deploy with Docker](#-deploy-with-docker)
1213
- [Deploy without Docker](#-cant-use-docker-ok-then-)
1314
- [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).
3536

3637
### Getting started
3738

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+
3855
#### 🐳 Deploy with Docker
39-
- clone and enter the repository using the following commands:
56+
- clone and checkout to the repository using the following commands:
4057
```bash
4158
git clone https://github.com/Shayan-Ghani/Container-exporter.git
4259
cd Container-Exporter
@@ -53,7 +70,6 @@ see a sample of the metrics page in [here](./extra/metrics.txt).
5370
# build from base with Dockerfile
5471
docker-compose -f container-exporter-local.yml up --build -d
5572
```
56-
*alternatively, run `docker-compose -f container-exporter-local.yml up --build -d` to build from Dockerfile*
5773

5874
#### 🐍 Can't use Docker? Ok then :
5975
```bash
@@ -83,12 +99,10 @@ Replace `<PID>` with the pid of ./start.sh script.
8399

84100
#### 🚢 Run With A Custom Port:
85101
```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> &
89103
```
90104

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.
92106

93107
### 🔥 Add CXP to Prometheus
94108
- 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,
128142

129143
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!
130144

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

Comments
 (0)