Skip to content

Commit

Permalink
Update the readme to include monitoring
Browse files Browse the repository at this point in the history
Signed-off-by: Aviv Litman <[email protected]>
  • Loading branch information
avlitman authored and Aviv Litman committed Oct 2, 2023
1 parent d21ed64 commit 44d5843
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
21 changes: 18 additions & 3 deletions testdata/go/v3/monitoring/memcached-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# memcached-operator
// TODO(user): Add simple overview of use/purpose
# memcached-operator (with monitoring)
A Go-based Operator framework that has the goal to install, deploy, monitor and manage [Memcached](https://hub.docker.com/_/memcached) on the cluster.

## Description
// TODO(user): An in-depth paragraph about your project and overview of use
This project is based on the testdata operator and will deploy the operator with the recommended structure and tooling for metrics, alerts, runbooks and all that is needed for monitoring with Prometheus, in order to help developers start implementing monitoring and provide them with tooling, examples and best practices.

## Getting Started
You’ll need a Kubernetes cluster to run against. You can use [KIND](https://sigs.k8s.io/kind) to get a local cluster for testing, or run against a remote cluster.
Expand Down Expand Up @@ -41,6 +41,21 @@ UnDeploy the controller from the cluster:
make undeploy
```

## Monitoring
**NOTE:** This operator follows the [Operator Observability Best Practices](https://sdk.operatorframework.io/docs/best-practices/observability-best-practices/).

### Metrics
#### Metrics Tests
Metrics should include tests that verify that they exist and that their value is correct. See "test/e2e".
#### Metrics Documentation
The metrics documentation (see "docs/monitoring/metrics.md") is auto-generated by the utility tool "monitoring/metricsdocs".

### Alerts
#### Alerts Runbooks
Each alert can include a `runbook_url` annotation and an alert runbook that describes it. See "monitoring/alerts.go" and "docs/monitoring/runbooks".
#### Alerts Tests
Alerts should include E2E Testing and unit tests. See "test/e2e" and "monitoring/prom-rule-ci/prom-rules-tests.yaml".

## Contributing
// TODO(user): Add detailed information on how you would like others to contribute to this project

Expand Down
21 changes: 18 additions & 3 deletions testdata/go/v4-alpha/monitoring/memcached-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# memcached-operator
// TODO(user): Add simple overview of use/purpose
# memcached-operator (with monitoring)
A Go-based Operator framework that has the goal to install, deploy, monitor and manage [Memcached](https://hub.docker.com/_/memcached) on the cluster.

## Description
// TODO(user): An in-depth paragraph about your project and overview of use
This project is based on the testdata operator and will deploy the operator with the recommended structure and tooling for metrics, alerts, runbooks and all that is needed for monitoring with Prometheus, in order to help developers start implementing monitoring and provide them with tooling, examples and best practices.

## Getting Started
You’ll need a Kubernetes cluster to run against. You can use [KIND](https://sigs.k8s.io/kind) to get a local cluster for testing, or run against a remote cluster.
Expand Down Expand Up @@ -41,6 +41,21 @@ UnDeploy the controller from the cluster:
make undeploy
```

## Monitoring
**NOTE:** This operator follows the [Operator Observability Best Practices](https://sdk.operatorframework.io/docs/best-practices/observability-best-practices/).

### Metrics
#### Metrics Tests
Metrics should include tests that verify that they exist and that their value is correct. See "test/e2e".
#### Metrics Documentation
The metrics documentation (see "docs/monitoring/metrics.md") is auto-generated by the utility tool "monitoring/metricsdocs".

### Alerts
#### Alerts Runbooks
Each alert can include a `runbook_url` annotation and an alert runbook that describes it. See "monitoring/alerts.go" and "docs/monitoring/runbooks".
#### Alerts Tests
Alerts should include E2E Testing and unit tests. See "test/e2e" and "monitoring/prom-rule-ci/prom-rules-tests.yaml".

## Contributing
// TODO(user): Add detailed information on how you would like others to contribute to this project

Expand Down

0 comments on commit 44d5843

Please sign in to comment.