Skip to content

Commit bcca8e3

Browse files
committed
update docs
1 parent c574db5 commit bcca8e3

File tree

2 files changed

+35
-9
lines changed

2 files changed

+35
-9
lines changed

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,29 @@
66
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/jetstack/version-checker)
77

88
version-checker is a Kubernetes utility for observing the current versions of
9-
images running in the cluster, as well as the latest available upstream. These
10-
checks get exposed as Prometheus metrics to be viewed on a dashboard, or _soft_
11-
alert cluster operators.
9+
images running in the cluster, as well as the latest available upstream. Additionally,
10+
it monitors the Kubernetes cluster version against the latest available releases
11+
using official Kubernetes release channels. These checks get exposed as Prometheus
12+
metrics to be viewed on a dashboard, or _soft_ alert cluster operators.
13+
14+
## Features
15+
16+
- **Container Image Version Checking**: Monitor and compare container image versions running in the cluster against their latest upstream versions
17+
- **Kubernetes Version Monitoring**: Track your cluster's Kubernetes version against the latest available releases from official Kubernetes channels
18+
- **Prometheus Metrics Integration**: Export all version information as Prometheus metrics for monitoring and alerting
19+
- **Flexible Channel Selection**: Configure which Kubernetes release channel to track (stable, latest, etc.)
1220

1321
---
1422

1523
## Why Use version-checker?
1624

17-
- **Improved Security**: Ensures images are up-to-date, reducing the risk of using vulnerable or compromised versions.
18-
- **Enhanced Visibility**: Provides a clear overview of all running container versions across clusters.
19-
- **Operational Efficiency**: Automates image tracking and reduces manual intervention in version management.
20-
- **Compliance and Policy**: Enforcement: Helps maintain version consistency and adherence to organizational policies.
25+
- **Improved Security**: Ensures images and Kubernetes clusters are up-to-date, reducing the risk of using vulnerable or compromised versions.
26+
- **Enhanced Visibility**: Provides a clear overview of all running container versions and cluster versions across clusters.
27+
- **Operational Efficiency**: Automates image and Kubernetes version tracking and reduces manual intervention in version management.
28+
- **Compliance and Policy Enforcement**: Helps maintain version consistency and adherence to organizational policies for both applications and infrastructure.
2129
- **Incremental Upgrades**: Facilitates frequent, incremental updates to reduce the risk of large, disruptive upgrades.
2230
- **Add-On Compatibility**: Ensures compatibility with the latest versions of Kubernetes add-ons and dependencies.
31+
- **Proactive Cluster Management**: Stay informed about Kubernetes security updates and new features through automated version monitoring.
2332

2433
---
2534

@@ -45,6 +54,7 @@ These registries support authentication.
4554

4655
- [Installation Guide](docs/installation.md)
4756
- [Metrics](docs/metrics.md)
57+
- [New Features](docs/new_features.md)
4858

4959
---
5060

docs/metrics.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,32 @@
22

33
By default, version-checker exposes the following Prometheus metrics on `0.0.0.0:8080/metrics`:
44

5+
## Container Image Metrics
6+
57
- `version_checker_is_latest_version`: Indicates whether the container in use is using the latest upstream registry version.
68
- `version_checker_last_checked`: Timestamp when the image was last checked.
79
- `version_checker_image_lookup_duration`: Duration of the image version check.
810
- `version_checker_image_failures_total`: Total of errors encountered during image version checks.
911

12+
## Kubernetes Version Metrics
13+
14+
- `version_checker_is_latest_kube_version`: Indicates whether the cluster is running the latest version from the configured Kubernetes release channel.
15+
- Labels: `current_version`, `latest_version`, `channel`
16+
- Value `1`: Cluster is up-to-date
17+
- Value `0`: Update available
18+
1019
---
1120

12-
## Example Prometheus Query
21+
## Example Prometheus Queries
1322

23+
### Check container image versions
1424
```sh
1525
QUERY="version_checker_is_latest_version"
1626
curl -s --get --data-urlencode query=$QUERY <PROMETHEUS_URL>
17-
```
27+
```
28+
29+
### Check Kubernetes cluster version
30+
```sh
31+
QUERY="version_checker_is_latest_kube_version"
32+
curl -s --get --data-urlencode query=$QUERY <PROMETHEUS_URL>
33+
```

0 commit comments

Comments
 (0)