Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update Kubernetes terminology in setup/install/helm/reference.md #12234

Closed

Conversation

edsoncelio
Copy link
Contributor

@edsoncelio edsoncelio commented Mar 16, 2024

What this PR does / why we need it:
Update docs to use the correct Kubernetes terminology.
https://grafana.com/docs/writers-toolkit/write/style-guide/capitalization-punctuation/#kubernetes-objects

Which issue(s) this PR fixes:
Fixes #11944

Special notes for your reviewer:
Command to check using vale:

vale --filter='.Name =="Grafana.Kubernetes"' docs/sources/setup/install/helm/reference.md

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • CHANGELOG.md updated
    • If the change is worth mentioning in the release notes, add add-to-release-notes label
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • For Helm chart changes bump the Helm chart version in production/helm/loki/Chart.yaml and update production/helm/loki/CHANGELOG.md and production/helm/loki/README.md. Example PR
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR

@edsoncelio edsoncelio requested a review from a team as a code owner March 16, 2024 18:41
@github-actions github-actions bot added the type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories label Mar 16, 2024
Copy link
Member

@jdbaldry jdbaldry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this contribution and for reading through our style guide!

It's great to have the style guide propagating through our docs, the consistency will surely make them easier to read :)

I'll let the Loki technical writer double check the changes.

@edsoncelio
Copy link
Contributor Author

Thank you for this contribution and for reading through our style guide!

It's great to have the style guide propagating through our docs, the consistency will surely make them easier to read :)

I'll let the Loki technical writer double check the changes.
Thanks!

I'm in doubt in this PR because looks like this file is generated automatically (or almost that) running a command instead of manually created.

Based on that error:
Please generate Helm Chart reference by running 'make -C docs sources/setup/install/helm/reference.md'

@JStickler
Copy link
Contributor

JStickler commented Mar 19, 2024

@edsoncelio Did you edit this file directly? Or was this change automatically generated? The Helm reference should be updated in production/helm/loki/reference.md.gotmlp. There's a note to that effect at line 11 of the docs/sources/setup/install/helm/reference.md file, you might have missed it.

Also any Helm changes (even documentation) requires that you bump the Helm chart version in production/helm/loki/Chart.yaml and update production/helm/loki/CHANGELOG.md and production/helm/loki/README.md. Example PR

@edsoncelio
Copy link
Contributor Author

@edsoncelio Did you edit this file directly? Or was this change automatically generated? The Helm reference should be updated in production/helm/loki/reference.md.gotmlp. There's a note to that effect at line 11 of the docs/sources/setup/install/helm/reference.md file, you might have missed it.

Also any Helm changes (even documentation) requires that you bump the Helm chart version in production/helm/loki/Chart.yaml and update production/helm/loki/CHANGELOG.md and production/helm/loki/README.md. Example PR

Hi!
I've edited it directly.
Thanks for clarifying I missed the note.
I'll update the PR during the week :)

@JStickler
Copy link
Contributor

Thanks. And don't be surprised if you have to update the Helm version more than once. It depends on how many Helm updates we have on any given day.

ashwanthgoli and others added 21 commits March 21, 2024 21:24
Every time when reading a bloom page into memory, a new byte slice with the size of the decoded page was allocated.

This PR changes bloom page decoder to use a byte slice from the `BlockPool`. The caller (`LazyBloomIter` of the block querier) is responsible for closing the page whenever a new one is loaded, so the byte slice is put back to its pool. 

Additionally, this PR changes the max bucket of the `BlockPool` byte slice pool to 64MB so that pages bigger than 16MB are correctly put back to the pool, since [slices exceeding the capacity of the largest bucket are not put back](https://github.com/grafana/loki/blob/main/vendor/github.com/prometheus/prometheus/util/pool/pool.go#L74-L87).

---
Signed-off-by: Christian Haudum <[email protected]>
**What this PR does / why we need it**:
This change allows the retrieval of the `TenantConfig` or the `DefaultConfig`. It also defines an interface instead of a tenant config function which makes it a little easier to grok the code.

Eventually this will enable us to introduce GEL specific configurations.

**Checklist**
- [ ] Reviewed the [`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md) guide (**required**)
- [ ] Documentation added
- [x] Tests updated
- [ ] `CHANGELOG.md` updated
  - [ ] If the change is worth mentioning in the release notes, add `add-to-release-notes` label
- [ ] Changes that require user attention or interaction to upgrade are documented in `docs/sources/setup/upgrade/_index.md`
- [ ] For Helm chart changes bump the Helm chart version in `production/helm/loki/Chart.yaml` and update `production/helm/loki/CHANGELOG.md` and `production/helm/loki/README.md`. [Example PR](grafana@d10549e)
- [ ] If the change is deprecating or removing a configuration option, update the `deprecated-config.yaml` and `deleted-config.yaml` files respectively in the `tools/deprecated-config-checker` directory. [Example PR](grafana@0d4416a)
The blocks cache is an in-memory cache that represents the single source of truth of what blocks are available on the file system and manages their end-of-life behaviour.

There is a follow-up branch to wire up the new cache, based on this branch. 

Signed-off-by: Christian Haudum <[email protected]>
ashwanthgoli and others added 17 commits March 21, 2024 21:24
Co-authored-by: loki-gh-app[bot] <160051081+loki-gh-app[bot]@users.noreply.github.com>
Co-authored-by: Trevor Whitney <[email protected]>
This PR updates the Prometheus dependency in Loki and Promtail. The PR is required so that we can also update Grafana Agent to the latest Prometheus. Unfortunately, Promtail and Loki share the same go.mod file.
A concurrency of 10 per worker seems to be too high for a reasonable 8GiB memory limit on bloom gateways. So this PR makes the concurrency configurable and uses a default of 4.

Memory usage of loading block pages into memory therefore being:

```
worker_concurrency x block_query_concurrency x max_block_page_size x 2
```

With current defaults:

```
4 x 4 x 32MiB x 2 = 1GiB
```

Signed-off-by: Christian Haudum <[email protected]>
@edsoncelio
Copy link
Contributor Author

I'll close this PR and open a new with the updated branch :)

@edsoncelio edsoncelio closed this Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm sig/operator size/S type/docs Issues related to technical documentation; the Docs Squad uses this label across many repositories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use correct Kubernetes terminology throughout documentation