Skip to content

Commit 0be05d3

Browse files
committed
improve readme
1 parent 2c1e928 commit 0be05d3

File tree

7 files changed

+100
-38
lines changed

7 files changed

+100
-38
lines changed

DEVELOPMENT.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Remember to refer to the available targets in the Makefile for other development
122122

123123
Publishing a new release can be accomplished by running the `Manual Prepare Release` workflow.
124124

125-
![](./assets/release-1.png)
125+
![](./docs/assets/release-1.png)
126126

127127
**Once run the following occurs:**
128128

@@ -131,15 +131,14 @@ Publishing a new release can be accomplished by running the `Manual Prepare Rele
131131
3. A new `pre-release` is created, with the `change log` for changes since the last release.
132132

133133
Next we can visit the release page, and locate the `pre-release` and `click the edit icon`:
134-
![](./assets/release-2.png)
134+
![](./docs/assets/release-2.png)
135135

136136
Finally - we will publish the `draft-release`. Make sure you:
137137
1. Remove the `draft` checkbox
138138
2. Update _`Set as pre-release`_ to **`Set as the latest release`**
139139

140-
![](./assets/release-3.png)
140+
![](./docs/assets/release-3.png)
141141

142142
When this is done, it will cause an automated release of teh `docker image` for the release value, and `latest` to be created in GHCR.
143143

144144
That's it, Happy coding!
145-

README.md

Lines changed: 51 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,56 @@
55
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
66
![GitHub release](https://img.shields.io/github/release/cloudzero/template-cloudzero-open-source.svg)
77

8-
This repository contains a utility application designed to run verification checks as part of the deployment of the [cloudzero-agent helm chart](https://github.com/Cloudzero/cloudzero-charts).
8+
The `Cloud Agent Validator` is a simple CLI utility which performs various validation checks and send the results as telemetry to the CloudZero API.
99

10-
## Table of Contents
11-
- [Testing](./TESTING.md)
12-
- [Contributing](#contributing)
13-
- [Support + Feedback](#support--feedback)
14-
- [Vulnerability Reporting](#vulnerability-reporting)
15-
- [What is CloudZero?](#what-is-cloudzero)
16-
- [License](#license)
10+
The `Cloud Agent Validator` is a CLI utility designed to perform various validation checks and send the results as telemetry to the CloudZero API. It is intended to be used as part of the [pod lifecycle hooks](https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/) in the [cloudzero-agent helm chart](https://github.com/Cloudzero/cloudzero-charts). During deployment, the validator runs checks and reports the lifecycle stage and test results to the API.
1711

18-
## Contributing
12+
<img src="./docs/assets/deployment.png" alt="deployment" width="700">
13+
14+
This utility provides valuable information such as the `lifecycle stage`, enabling CloudZero to proactively engage with customers if an agent is experiencing issues reporting metrics. It also captures the versions of the chart and Prometheus agent, facilitating issue reproduction. Additionally, it reports check status results and error messages for failing checks, allowing Customer Success teams to quickly identify the root cause of any problems.
15+
16+
## ⚡ Getting Started
17+
18+
The easiest way to get started it by using the [cloudzero-agent helm chart](https://github.com/Cloudzero/cloudzero-charts). However if you'd like run the validator locally - this is also possible!
19+
20+
### Installation
21+
22+
If you are using docker, the easiest way to get started by running the following command:
23+
```sh
24+
docker run -it --rm ghcr.io/cloudzero/cloudzero-agent-validator/cloudzero-agent-validator:latest cloudzero-agent-validator config generate
25+
```
26+
27+
### Generate a configuration file
28+
29+
```sh
30+
mkdir config
31+
docker run -it --rm -v ./config:/config ghcr.io/cloudzero/cloudzero-agent-validator/cloudzero-agent-validator:latest cloudzero-agent-validator config generate -f /config/myconfig.yml --account 123456789 --cluster my-cluster-name --region us-east-1
32+
```
33+
> You can not open `./config/myconfig.yml` and edit values as necessary for your cluster.
34+
35+
36+
### Run a command locally (not in-pod)
37+
38+
In this example we are setting the conifguration value `credentials_file` to include our production CloudZero API Key. Run the following to create the file:
39+
40+
```sh
41+
echo $CZ_API_KEY > config/credentials_file
42+
```
43+
44+
Replace the value `credentials_file: /etc/config/prometheus/secrets/value` with `credentials_file: /config/credentials_file` in `config/myconfig.yml`
45+
46+
Now validate the configuration file:
47+
```
48+
docker run -it --rm -v ./config:/config ghcr.io/cloudzero/cloudzero-agent-validator/cloudzero-agent-validator:latest cloudzero-agent-validator config validate -f /config/myconfig.yml
49+
```
50+
51+
Then run a test to validate the API Token:
52+
53+
```sh
54+
docker run -it --rm -v ./config:/config ghcr.io/cloudzero/cloudzero-agent-validator/cloudzero-agent-validator:latest cloudzero-agent-validator diagnose run -f /config/myconfig.yml -check api_key_valid
55+
```
56+
57+
## 🤝 How to Contribute
1958

2059
We appreciate feedback and contribution to this repo! Before you get started, please see the following:
2160

@@ -25,11 +64,11 @@ We appreciate feedback and contribution to this repo! Before you get started, pl
2564

2665
Contact support@cloudzero.com for usage, questions, specific cases. See the [CloudZero Docs](https://docs.cloudzero.com/) for general information on CloudZero.
2766

28-
## Vulnerability Reporting
67+
## 🛡️ Vulnerability Reporting
2968

3069
Please do not report security vulnerabilities on the public GitHub issue tracker. Email [security@cloudzero.com](mailto:security@cloudzero.com) instead.
3170

32-
## What is CloudZero?
71+
## ☁️ What is CloudZero?
3372

3473
CloudZero is the only cloud cost intelligence platform that puts engineering in control by connecting technical decisions to business results.:
3574

@@ -41,6 +80,6 @@ CloudZero is the only cloud cost intelligence platform that puts engineering in
4180

4281
Learn more about [CloudZero](https://www.cloudzero.com/) on our website [www.cloudzero.com](https://www.cloudzero.com/)
4382

44-
## License
83+
## 📜 License
4584

4685
This project is licenced under the Apache 2.0 [LICENSE](LICENSE).

docs/assets/deployment.png

209 KB
Loading

0 commit comments

Comments
 (0)