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
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.
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.
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
> 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`
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
19
58
20
59
We appreciate feedback and contribution to this repo! Before you get started, please see the following:
21
60
@@ -25,11 +64,11 @@ We appreciate feedback and contribution to this repo! Before you get started, pl
25
64
26
65
Contact support@cloudzero.com for usage, questions, specific cases. See the [CloudZero Docs](https://docs.cloudzero.com/) for general information on CloudZero.
27
66
28
-
## Vulnerability Reporting
67
+
## 🛡️ Vulnerability Reporting
29
68
30
69
Please do not report security vulnerabilities on the public GitHub issue tracker. Email [security@cloudzero.com](mailto:security@cloudzero.com) instead.
31
70
32
-
## What is CloudZero?
71
+
## ☁️ What is CloudZero?
33
72
34
73
CloudZero is the only cloud cost intelligence platform that puts engineering in control by connecting technical decisions to business results.:
35
74
@@ -41,6 +80,6 @@ CloudZero is the only cloud cost intelligence platform that puts engineering in
41
80
42
81
Learn more about [CloudZero](https://www.cloudzero.com/) on our website [www.cloudzero.com](https://www.cloudzero.com/)
43
82
44
-
## License
83
+
## 📜 License
45
84
46
85
This project is licenced under the Apache 2.0 [LICENSE](LICENSE).
0 commit comments