Skip to content

Commit

Permalink
Massive docs and tests update
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wall <pete.wall@grafana.com>
  • Loading branch information
petewall committed Oct 4, 2024
1 parent 93786b4 commit 2698986
Show file tree
Hide file tree
Showing 56 changed files with 459 additions and 88 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ build:

.PHONY: test
test: build
helm repo update
set -e && \
for chart in $(FEATURE_CHARTS); do \
make -C charts/$$chart test; \
Expand Down
2 changes: 2 additions & 0 deletions charts/feature-annotation-autodiscovery/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: v2
name: k8s-monitoring-feature-annotation-autodiscovery
description: Gathers metrics automatically based on Kubernetes Pod and Service annotations
icon: https://raw.githubusercontent.com/grafana/grafana/main/public/img/grafana_icon.svg
sources:
- https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/feature-annotation-autodiscovery
version: 1.0.0
appVersion: 1.0.0
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/feature-annotation-autodiscovery/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ build: README.md Chart.lock values.schema.json
.PHONY: test
test: build
helm lint .
ct lint --lint-conf ../../.configs/lintconf.yaml --check-version-increment=false --charts .
ct lint --lint-conf ../../.configs/lintconf.yaml --check-version-increment=false --helm-dependency-extra-args=--skip-refresh --charts .
ifdef HAS_HELM_UNITTEST
helm unittest .
else
Expand Down
29 changes: 25 additions & 4 deletions charts/feature-annotation-autodiscovery/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
<!--
(NOTE: Do not edit README.md directly. It is a generated file!)
( To make changes, please modify README.md.gotmpl and run `helm-docs`)
-->

# k8s-monitoring-feature-annotation-autodiscovery

![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)

Gathers metrics automatically based on Kubernetes Pod and Service annotations

The annotation-based autodiscovery feature makes it very simple to add scrape targets. With this feature enabled, any

Check warning on line 11 in charts/feature-annotation-autodiscovery/README.md

View workflow job for this annotation

GitHub Actions / runner / alex

[alex] reported by reviewdog 🐶 `simple` may be insensitive, try not to use it simple retext-equality Raw Output: 11:58-11:64 warning `simple` may be insensitive, try not to use it simple retext-equality
Kubernetes Pods or Services with the `k8s.grafana.com/scrape` annotation set to `true` will be automatically discovered
and scraped by the collector. There are several other annotations that can be used to customize the behavior of the
scrape configuration, such as:

* `k8s.grafana.com/job`: The value to use for the `job` label.
* `k8s.grafana.com/instance`: The value to use for the `instance` label.
* `k8s.grafana.com/metrics.path`: The path to scrape for metrics. Defaults to `/metrics`.
* `k8s.grafana.com/metrics.portNumber`: The port on the Pod or Service to scrape for metrics. This is used to target a specific port by its number, rather than all ports.
* `k8s.grafana.com/metrics.portName`: The named port on the Pod or Service to scrape for metrics. This is used to target a specific port by its name, rather than all ports.
* `k8s.grafana.com/metrics.scheme`: The scheme to use when scraping metrics. Defaults to `http`.
* `k8s.grafana.com/metrics.scrapeInterval`: The scrape interval to use when scraping metrics. Defaults to `60s`.

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| petewall | <pete.wall@grafana.com> | |
<!-- markdownlint-disable no-bare-urls -->
<!-- markdownlint-disable list-marker-space -->
## Source Code

* <https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/feature-annotation-autodiscovery>
<!-- markdownlint-enable list-marker-space -->
<!-- markdownlint-enable no-bare-urls -->

## Values

Expand Down Expand Up @@ -60,6 +84,3 @@ Gathers metrics automatically based on Kubernetes Pod and Service annotations
|-----|------|---------|-------------|
| global.maxCacheSize | int | `100000` | Sets the max_cache_size for every prometheus.relabel component. ([docs](https://grafana.com/docs/alloy/latest/reference/components/prometheus.relabel/#arguments)) This should be at least 2x-5x your largest scrape target or samples appended rate. |
| global.scrapeInterval | string | `"60s"` | How frequently to scrape metrics. |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
32 changes: 32 additions & 0 deletions charts/feature-annotation-autodiscovery/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!--
(NOTE: Do not edit README.md directly. It is a generated file!)
( To make changes, please modify README.md.gotmpl and run `helm-docs`)
-->

{{ template "chart.header" . }}
{{ template "chart.deprecationWarning" . }}
{{ template "chart.badgesSection" . }}
{{ template "chart.description" . }}
{{ template "chart.homepageLine" . }}

The annotation-based autodiscovery feature makes it very simple to add scrape targets. With this feature enabled, any
Kubernetes Pods or Services with the `k8s.grafana.com/scrape` annotation set to `true` will be automatically discovered
and scraped by the collector. There are several other annotations that can be used to customize the behavior of the
scrape configuration, such as:

* `k8s.grafana.com/job`: The value to use for the `job` label.
* `k8s.grafana.com/instance`: The value to use for the `instance` label.
* `k8s.grafana.com/metrics.path`: The path to scrape for metrics. Defaults to `/metrics`.
* `k8s.grafana.com/metrics.portNumber`: The port on the Pod or Service to scrape for metrics. This is used to target a specific port by its number, rather than all ports.
* `k8s.grafana.com/metrics.portName`: The named port on the Pod or Service to scrape for metrics. This is used to target a specific port by its name, rather than all ports.
* `k8s.grafana.com/metrics.scheme`: The scheme to use when scraping metrics. Defaults to `http`.
* `k8s.grafana.com/metrics.scrapeInterval`: The scrape interval to use when scraping metrics. Defaults to `60s`.

{{ template "chart.maintainersSection" . }}
<!-- markdownlint-disable no-bare-urls -->
<!-- markdownlint-disable list-marker-space -->
{{ template "chart.sourcesSection" . }}
<!-- markdownlint-enable list-marker-space -->
<!-- markdownlint-enable no-bare-urls -->
{{ template "chart.requirementsSection" . }}
{{ template "chart.valuesSection" . }}
2 changes: 2 additions & 0 deletions charts/feature-application-observability/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: v2
name: k8s-monitoring-feature-application-observability
description: Gathers application data
icon: https://raw.githubusercontent.com/grafana/grafana/main/public/img/grafana_icon.svg
sources:
- https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/feature-application-observability
version: 1.0.0
appVersion: 1.0.0
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/feature-application-observability/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ build: README.md Chart.lock values.schema.json
.PHONY: test
test: build
helm lint .
ct lint --lint-conf ../../.configs/lintconf.yaml --check-version-increment=false --charts .
ct lint --lint-conf ../../.configs/lintconf.yaml --check-version-increment=false --helm-dependency-extra-args=--skip-refresh --charts .
ifdef HAS_HELM_UNITTEST
helm unittest .
else
Expand Down
19 changes: 15 additions & 4 deletions charts/feature-application-observability/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
<!--
(NOTE: Do not edit README.md directly. It is a generated file!)
( To make changes, please modify README.md.gotmpl and run `helm-docs`)
-->

# k8s-monitoring-feature-application-observability

![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)

Gathers application data

The Application Observability feature enables the collection of application telemetry data. Enabling this feature
requires enabling one or more receivers where data will be sent from the application.

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| petewall | <pete.wall@grafana.com> | |
<!-- markdownlint-disable no-bare-urls -->
<!-- markdownlint-disable list-marker-space -->
## Source Code

* <https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/feature-application-observability>
<!-- markdownlint-enable list-marker-space -->
<!-- markdownlint-enable no-bare-urls -->

## Values

Expand Down Expand Up @@ -74,6 +88,3 @@ Gathers application data
| traces.enabled | bool | `true` | |
| traces.filters | object | `{"span":[],"spanevent":[]}` | Apply a filter to traces received via the OTLP or OTLP HTTP receivers. ([docs](https://grafana.com/docs/alloy/latest/reference/components/otelcol.processor.filter/)) |
| traces.transforms | object | `{"resource":[],"span":[],"spanevent":[]}` | Apply a transformation to traces received via the OTLP or OTLP HTTP receivers. ([docs](https://grafana.com/docs/alloy/latest/reference/components/otelcol.processor.transform/)) |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
22 changes: 22 additions & 0 deletions charts/feature-application-observability/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!--
(NOTE: Do not edit README.md directly. It is a generated file!)
( To make changes, please modify README.md.gotmpl and run `helm-docs`)
-->

{{ template "chart.header" . }}
{{ template "chart.deprecationWarning" . }}
{{ template "chart.badgesSection" . }}
{{ template "chart.description" . }}
{{ template "chart.homepageLine" . }}

The Application Observability feature enables the collection of application telemetry data. Enabling this feature
requires enabling one or more receivers where data will be sent from the application.

{{ template "chart.maintainersSection" . }}
<!-- markdownlint-disable no-bare-urls -->
<!-- markdownlint-disable list-marker-space -->
{{ template "chart.sourcesSection" . }}
<!-- markdownlint-enable list-marker-space -->
<!-- markdownlint-enable no-bare-urls -->
{{ template "chart.requirementsSection" . }}
{{ template "chart.valuesSection" . }}
2 changes: 2 additions & 0 deletions charts/feature-cluster-events/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: v2
name: k8s-monitoring-feature-cluster-events
description: Gathers Kubernetes Events
icon: https://raw.githubusercontent.com/grafana/grafana/main/public/img/grafana_icon.svg
sources:
- https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/feature-cluster-events
version: 1.0.0
appVersion: 1.0.0
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/feature-cluster-events/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ build: README.md Chart.lock values.schema.json
.PHONY: test
test: build
helm lint .
ct lint --lint-conf ../../.configs/lintconf.yaml --check-version-increment=false --charts .
ct lint --lint-conf ../../.configs/lintconf.yaml --check-version-increment=false --helm-dependency-extra-args=--skip-refresh --charts .
ifdef HAS_HELM_UNITTEST
helm unittest .
else
Expand Down
19 changes: 15 additions & 4 deletions charts/feature-cluster-events/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
<!--
(NOTE: Do not edit README.md directly. It is a generated file!)
( To make changes, please modify README.md.gotmpl and run `helm-docs`)
-->

# k8s-monitoring-feature-cluster-events

![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)

Gathers Kubernetes Events

The Cluster Events feature enables the collection of Kubernetes events from the cluster. Events are captured as logs and
are annotated with additional metadata to make them easier to search and filter.

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| petewall | <pete.wall@grafana.com> | |
<!-- markdownlint-disable no-bare-urls -->
<!-- markdownlint-disable list-marker-space -->
## Source Code

* <https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/feature-cluster-events>
<!-- markdownlint-enable list-marker-space -->
<!-- markdownlint-enable no-bare-urls -->

## Values

Expand All @@ -31,6 +45,3 @@ Gathers Kubernetes Events
|-----|------|---------|-------------|
| logFormat | string | `"logfmt"` | Log format used to forward cluster events. Allowed values: `logfmt` (default), `json`. |
| namespaces | list | `[]` | List of namespaces to watch for events (`[]` means all namespaces) |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
22 changes: 22 additions & 0 deletions charts/feature-cluster-events/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!--
(NOTE: Do not edit README.md directly. It is a generated file!)
( To make changes, please modify README.md.gotmpl and run `helm-docs`)
-->

{{ template "chart.header" . }}
{{ template "chart.deprecationWarning" . }}
{{ template "chart.badgesSection" . }}
{{ template "chart.description" . }}
{{ template "chart.homepageLine" . }}

The Cluster Events feature enables the collection of Kubernetes events from the cluster. Events are captured as logs and
are annotated with additional metadata to make them easier to search and filter.

{{ template "chart.maintainersSection" . }}
<!-- markdownlint-disable no-bare-urls -->
<!-- markdownlint-disable list-marker-space -->
{{ template "chart.sourcesSection" . }}
<!-- markdownlint-enable list-marker-space -->
<!-- markdownlint-enable no-bare-urls -->
{{ template "chart.requirementsSection" . }}
{{ template "chart.valuesSection" . }}
2 changes: 2 additions & 0 deletions charts/feature-cluster-metrics/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: v2
name: k8s-monitoring-feature-cluster-metrics
description: Gathers Kubernetes Cluster metrics
icon: https://raw.githubusercontent.com/grafana/grafana/main/public/img/grafana_icon.svg
sources:
- https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/feature-cluster-metrics
version: 1.0.0
appVersion: 1.0.0
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/feature-cluster-metrics/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ build: README.md Chart.lock values.schema.json
.PHONY: test
test: build
helm lint .
ct lint --config .ct.yaml --lint-conf ../../.configs/lintconf.yaml --check-version-increment=false --charts .
ct lint --lint-conf ../../.configs/lintconf.yaml --check-version-increment=false --helm-dependency-extra-args=--skip-refresh --charts .
ifdef HAS_HELM_UNITTEST
helm unittest .
else
Expand Down
6 changes: 6 additions & 0 deletions charts/feature-cluster-metrics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ action on the metric list, including filtering based on label or other actions.
| petewall | <pete.wall@grafana.com> | |

<!-- markdownlint-disable no-bare-urls -->
<!-- markdownlint-disable list-marker-space -->
## Source Code

* <https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/feature-cluster-metrics>
<!-- markdownlint-enable list-marker-space -->

## Requirements

| Repository | Name | Version |
Expand Down
4 changes: 3 additions & 1 deletion charts/feature-cluster-metrics/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ action on the metric list, including filtering based on label or other actions.

{{ template "chart.maintainersSection" . }}

<!-- markdownlint-disable no-bare-urls -->
<!-- markdownlint-disable list-marker-space -->
{{ template "chart.sourcesSection" . }}
<!-- markdownlint-enable list-marker-space -->

<!-- markdownlint-disable no-bare-urls -->
{{ template "chart.requirementsSection" . }}
<!-- markdownlint-enable no-bare-urls -->

Expand Down
2 changes: 2 additions & 0 deletions charts/feature-frontend-observability/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: v2
name: k8s-monitoring-feature-frontend-observability
description: Gathers frontend data
icon: https://raw.githubusercontent.com/grafana/grafana/main/public/img/grafana_icon.svg
sources:
- https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/feature-frontend-observability
version: 1.0.0
appVersion: 1.0.0
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/feature-frontend-observability/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ build: README.md Chart.lock values.schema.json
.PHONY: test
test: build
helm lint .
ct lint --lint-conf ../../.configs/lintconf.yaml --check-version-increment=false --charts .
ct lint --lint-conf ../../.configs/lintconf.yaml --check-version-increment=false --helm-dependency-extra-args=--skip-refresh --charts .
ifdef HAS_HELM_UNITTEST
helm unittest .
else
Expand Down
19 changes: 15 additions & 4 deletions charts/feature-frontend-observability/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
<!--
(NOTE: Do not edit README.md directly. It is a generated file!)
( To make changes, please modify README.md.gotmpl and run `helm-docs`)
-->

# k8s-monitoring-feature-frontend-observability

![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)

Gathers frontend data

The Frontend Observability feature enables the collection of telemetry data from Frontend Applications, instrumented by
[Grafana Faro](https://github.com/grafana/faro-web-sdk).

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| petewall | <pete.wall@grafana.com> | |
<!-- markdownlint-disable no-bare-urls -->
<!-- markdownlint-disable list-marker-space -->
## Source Code

* <https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/feature-frontend-observability>
<!-- markdownlint-enable list-marker-space -->
<!-- markdownlint-enable no-bare-urls -->

## Values

Expand All @@ -19,6 +33,3 @@ Gathers frontend data
| fullnameOverride | string | `""` | Full name override |
| nameOverride | string | `""` | Name override |
| port | int | `12347` | Port to listen for HTTP traffic on. |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
22 changes: 22 additions & 0 deletions charts/feature-frontend-observability/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!--
(NOTE: Do not edit README.md directly. It is a generated file!)
( To make changes, please modify README.md.gotmpl and run `helm-docs`)
-->

{{ template "chart.header" . }}
{{ template "chart.deprecationWarning" . }}
{{ template "chart.badgesSection" . }}
{{ template "chart.description" . }}
{{ template "chart.homepageLine" . }}

The Frontend Observability feature enables the collection of telemetry data from Frontend Applications, instrumented by
[Grafana Faro](https://github.com/grafana/faro-web-sdk).

{{ template "chart.maintainersSection" . }}
<!-- markdownlint-disable no-bare-urls -->
<!-- markdownlint-disable list-marker-space -->
{{ template "chart.sourcesSection" . }}
<!-- markdownlint-enable list-marker-space -->
<!-- markdownlint-enable no-bare-urls -->
{{ template "chart.requirementsSection" . }}
{{ template "chart.valuesSection" . }}
2 changes: 2 additions & 0 deletions charts/feature-integrations/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: v2
name: k8s-monitoring-feature-integrations
description: Service integrations
icon: https://raw.githubusercontent.com/grafana/grafana/main/public/img/grafana_icon.svg
sources:
- https://github.com/grafana/k8s-monitoring-helm/tree/main/charts/feature-integrations
version: 1.0.0
appVersion: 1.0.0
maintainers:
Expand Down
Loading

0 comments on commit 2698986

Please sign in to comment.