Skip to content

Commit

Permalink
Merge pull request #10 from Cloudzero/readme-update
Browse files Browse the repository at this point in the history
Readme improvements
  • Loading branch information
josephbarnett authored Jul 11, 2024
2 parents 2c1e928 + 0920b96 commit 036a0c4
Show file tree
Hide file tree
Showing 8 changed files with 101 additions and 43 deletions.
7 changes: 3 additions & 4 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Remember to refer to the available targets in the Makefile for other development

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

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

**Once run the following occurs:**

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

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

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

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

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.

That's it, Happy coding!
63 changes: 51 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,56 @@
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
![GitHub release](https://img.shields.io/github/release/cloudzero/template-cloudzero-open-source.svg)

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).
The `Cloud Agent Validator` is a simple CLI utility that performs various validation checks and send the results as telemetry to the CloudZero API.

## Table of Contents
- [Testing](./TESTING.md)
- [Contributing](#contributing)
- [Support + Feedback](#support--feedback)
- [Vulnerability Reporting](#vulnerability-reporting)
- [What is CloudZero?](#what-is-cloudzero)
- [License](#license)
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.

## Contributing
<img src="./docs/assets/deployment.png" alt="deployment" width="700">

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.

## ⚡ Getting Started

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!

### Installation

If you are using docker, the easiest way to get started by running the following command:
```sh
docker run -it --rm ghcr.io/cloudzero/cloudzero-agent-validator/cloudzero-agent-validator:latest cloudzero-agent-validator config generate
```

### Generate a configuration file

```sh
mkdir config
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
```
> You can now open `./config/myconfig.yml` and edit values as necessary for your cluster.

### Run a command locally (not in-pod)

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:

```sh
echo $CZ_API_KEY > config/credentials_file
```

Replace the value `credentials_file: /etc/config/prometheus/secrets/value` with `credentials_file: /config/credentials_file` in `config/myconfig.yml`

Now validate the configuration file:
```
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
```

Then run a test to validate the API Token:

```sh
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
```

## 🤝 How to Contribute

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

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

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

## Vulnerability Reporting
## 🛡️ Vulnerability Reporting

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

## What is CloudZero?
## ☁️ What is CloudZero?

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

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

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

## License
## 📜 License

This project is licenced under the Apache 2.0 [LICENSE](LICENSE).
6 changes: 1 addition & 5 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,4 @@ currently being supported with security updates.

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
Please do not report security vulnerabilities on the public GitHub issue tracker. Email [security@cloudzero.com](mailto:security@cloudzero.com) instead.
Binary file added docs/assets/deployment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 036a0c4

Please sign in to comment.