-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more docs, examples, and tests. (#765)
* Add details to the test chart Signed-off-by: Pete Wall <pete.wall@grafana.com> * Fix profiling feature and add an integration test for it. Signed-off-by: Pete Wall <pete.wall@grafana.com> * Allow tenantids to be numbers Signed-off-by: Pete Wall <pete.wall@grafana.com> * Fix profiling and update cluster config to use custom clusters Signed-off-by: Pete Wall <pete.wall@grafana.com> * Fix test chart to actually check the result Signed-off-by: Pete Wall <pete.wall@grafana.com> * More test fixes Signed-off-by: Pete Wall <pete.wall@grafana.com> * Remove settings that actually make it harder Signed-off-by: Pete Wall <pete.wall@grafana.com> * Fix cluster name Signed-off-by: Pete Wall <pete.wall@grafana.com> * More test fixing Signed-off-by: Pete Wall <pete.wall@grafana.com> * Fixing tests Signed-off-by: Pete Wall <pete.wall@grafana.com> * simplify the loki deployment to speed up tests Signed-off-by: Pete Wall <pete.wall@grafana.com> * More work on loki chart Signed-off-by: Pete Wall <pete.wall@grafana.com> * Working on docuemntation and examples Signed-off-by: Pete Wall <pete.wall@grafana.com> * Get int tests working Signed-off-by: Pete Wall <pete.wall@grafana.com> * Massive docs and tests update Signed-off-by: Pete Wall <pete.wall@grafana.com> * Add helm repos Signed-off-by: Pete Wall <pete.wall@grafana.com> * Use GITHUB_OUTPUT instead of env Signed-off-by: Pete Wall <pete.wall@grafana.com> * Making linters even happier Signed-off-by: Pete Wall <pete.wall@grafana.com> --------- Signed-off-by: Pete Wall <pete.wall@grafana.com>
- Loading branch information
Showing
147 changed files
with
7,966 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,41 @@ | ||
--- | ||
deploymentMode: SingleBinary | ||
loki: | ||
commonConfig: | ||
replication_factor: 1 | ||
storage: | ||
type: 'filesystem' | ||
schemaConfig: | ||
configs: | ||
- from: 2024-04-01 | ||
- from: "2024-01-01" | ||
store: tsdb | ||
object_store: s3 | ||
schema: v13 | ||
index: | ||
prefix: loki_index_ | ||
period: 24h | ||
ingester: | ||
chunk_encoding: snappy | ||
querier: | ||
# Default is 4, if you have enough memory and CPU you can increase, reduce if OOMing | ||
max_concurrent: 2 | ||
|
||
test: | ||
enabled: false | ||
|
||
lokiCanary: | ||
enabled: false | ||
|
||
gateway: | ||
basicAuth: | ||
enabled: true | ||
username: loki | ||
password: lokipassword | ||
service: | ||
port: 8080 | ||
|
||
deploymentMode: SingleBinary | ||
object_store: filesystem # we're storing on filesystem so there's no real persistence here. | ||
schema: v13 | ||
singleBinary: | ||
replicas: 1 | ||
# resources: | ||
# limits: | ||
# cpu: 3 | ||
# memory: 4Gi | ||
# requests: | ||
# cpu: 2 | ||
# memory: 2Gi | ||
# extraEnv: | ||
# # Keep a little bit lower than memory limits | ||
# - name: GOMEMLIMIT | ||
# value: 3750MiB | ||
|
||
# Enable minio for storage | ||
minio: | ||
enabled: true | ||
|
||
# Zero out replica counts of other deployment modes | ||
backend: | ||
replicas: 0 | ||
read: | ||
replicas: 0 | ||
backend: | ||
replicas: 0 | ||
write: | ||
replicas: 0 | ||
|
||
ingester: | ||
replicas: 0 | ||
querier: | ||
replicas: 0 | ||
queryFrontend: | ||
replicas: 0 | ||
queryScheduler: | ||
replicas: 0 | ||
distributor: | ||
replicas: 0 | ||
compactor: | ||
replicas: 0 | ||
indexGateway: | ||
replicas: 0 | ||
bloomCompactor: | ||
replicas: 0 | ||
bloomGateway: | ||
replicas: 0 | ||
chunksCache: | ||
enabled: false | ||
resultsCache: | ||
enabled: false | ||
chunksCache: | ||
lokiCanary: | ||
enabled: false | ||
test: | ||
enabled: false | ||
|
||
monitoring: | ||
selfMonitoring: | ||
enabled: false | ||
grafanaAgent: | ||
installOperator: false | ||
serviceMonitor: | ||
gateway: | ||
basicAuth: | ||
enabled: true | ||
# This actually isn't recommended by Loki, the default is 15s for a reason, but we don't want to upset | ||
# our DPM test calculations. | ||
interval: 1m | ||
username: loki | ||
password: lokipassword | ||
service: | ||
port: 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.