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

[v1.6] Format with prettier #2767

Closed
wants to merge 145 commits into from
Closed

[v1.6] Format with prettier #2767

wants to merge 145 commits into from

Conversation

jdbaldry
Copy link
Member

Consistent formatting improves readability and makes it easier for tools to transform the source.

The general human understanding of Markdown has some ambiguities so it's possible this PR will break some documentation presentation because the formatter follows the CommonMark specification.
Elminating this ambiguity provides more consistent behavior and makes it easier for future readers to understand your Markdown.

Consistent formatting is also necessary to provide meaningful diffs in future automated PRs.
If you would like to benefit from automated improvements made by the Docs Platform team, you must adopt prettier in your local development and enforce it in CI.

If you would like help running prettier in CI, reach out in the #docs-platform Slack channel.

Created-By: reverse-changes
Repository: grafana/alloy
Website-Pull-Request: https://github.com/grafana/website/pull/24071

mattdurham and others added 30 commits January 9, 2025 10:13
* update changelog for rc

* update changelog for rc
* update version

* Fix changelog
Example shows `loki.source.kafka "local"` pointing to `loki.relabel.kafka.receiver`. This leads to no new label being added. Correct example should have the kafka source pointing directly to `loki.write.local.receiver`
* feat(helm): add the ability to deploy extra manifest files

* docs(helm): run helm-docs

* ci(helm): add tests
* add tls to wal

* add alloy config

* update version

* Add support for TLS doc.

* Add changelog.

* fix import order

* add support and doc for round robin.

* fix conversion

* Update docs/sources/reference/components/prometheus/prometheus.write.queue.md

Co-authored-by: Clayton Cornell <[email protected]>

* Add test

* fix merge

* Update internal/component/prometheus/write/queue/types.go

Co-authored-by: William Dumont <[email protected]>

---------

Co-authored-by: Clayton Cornell <[email protected]>
Co-authored-by: William Dumont <[email protected]>
…2203)

* Work on adding auth so far

* Cleanup

* Made a ton of progress

* Fix test fails?

* Refactor

* Add auth blocks to implementing extensions

* Refactor to use feature flag

* Comments

* Cleanup

* Spacing

* Update docs

* Update CHANGELOG

* Last auth extension missing

* We also need grpc auth

* Fix opencensus docs

* Fix extra comment

* Update comment with findings

* Properly fix merge conflict

* Save file

* Spelling error

* That has been released now

* Add auth support to influxdb receiver

* Fix failing auth test/MAIL

* Comment cleanup

* MAIL for documentation

* docs MAIL

* MAIL

* Move from Auth to Authentication
* fix examples filter and transform processors

* remove unecessary docs about escaping strings and backticks
…port multiple allowlists per rule (#2320)

* Fix partial masking bug and support new allowlist format

* Add docs and changelog

* Update docs

* Add comments

* Add comments

* Minor docs update

* Add more tests

* Change criteria for partial redaction

* Changes to partial masking rules

* Fix comment location

* Clarify usage of secret types

* Clarify usage of secret types

* Update docs/sources/reference/components/loki/loki.secretfilter.md

Co-authored-by: Clayton Cornell <[email protected]>

* Suggestions

* Suggestions

---------

Co-authored-by: Clayton Cornell <[email protected]>
* Fix only run on fork guard

The previous guard fails because `github.repository` resolves to the base repository on `pull_request` events.

* Fix syntax
* Fix issue where alloy_prometheus_relabel_metrics_processed was not being incremented.

* Add unit tests
* Update WAL to version that supports v2.

* Update WAL to version that supports v2.

* Add samples check.
* First pass at cleanup, pretty tables, sort lists

* Sort content, add badge

* Fix link

* Set link URL correctly

* Still fxing link targets

* One more tidy pass
)

Report unhealthy in case of errors when starting up the collectors or
of any collector is stopped during operations.
* Update database obserability topic

* Correct full stop
* Add json format support for log export via faro receiver

Update docs

* Fix docs links

* Fix rebase issue

Fix chan size

* Fix the flaky failure
Add instance label to SchemaTable and QuerySample collectors.
* Add livedebugging support for prometheus.remote_write

* Fix typo

* Update changelog.md
…nt (#2439)

The `query_sample` collector for now attempts to detect if a query is
truncated in a multi-line comment (those between `/*` and `*/`).

This is a best-effort attempt to avoid skipping queries that might be
truncated in the middle of a trailing comment that is not closed, but
the first part of the query is still valid.
This refactors the label parsing, so we reuse the upstream code, which
is part of the pyroscope/api module, since
grafana/pyroscope#3848.
…ng schema. (#2443)

MySQL returns different column count for SHOW CREATE VIEW (2 columns) when compared to SHOW CREATE TABLE (4 columns).
This change adds conditional logic to handle both cases so that we can extract the schema of a view without generating an error.
database_observability: log schema name in query samples

Capture and log schema name in query samples fetched from mysql.
thampiotr and others added 28 commits February 13, 2025 16:46
* dash prototyping fixes

* add env file support

* restore
* fix(pyroscope.scrape): windows tests path
* Add parralelism block.

* fix attr

* Update to include context cancelled logic.

* Update CHANGELOG.md

Co-authored-by: Piotr <[email protected]>

* Update docs/sources/reference/components/prometheus/prometheus.write.queue.md

Co-authored-by: Piotr <[email protected]>

* Update docs/sources/reference/components/prometheus/prometheus.write.queue.md

Co-authored-by: Piotr <[email protected]>

* Update docs/sources/reference/components/prometheus/prometheus.write.queue.md

Co-authored-by: Piotr <[email protected]>

* Update to include better naming from walqueue.

* Reword verbiage.

* Fix naming in test.

* Update docs/sources/reference/components/prometheus/prometheus.write.queue.md

Co-authored-by: Clayton Cornell <[email protected]>

* Update docs/sources/reference/components/prometheus/prometheus.write.queue.md

Co-authored-by: Clayton Cornell <[email protected]>

* Update docs/sources/reference/components/prometheus/prometheus.write.queue.md

Co-authored-by: Clayton Cornell <[email protected]>

* pr feedbackh

* Merge suggestions and committed.

* Update docs/sources/reference/components/prometheus/prometheus.write.queue.md

Co-authored-by: Clayton Cornell <[email protected]>

* Update docs/sources/reference/components/prometheus/prometheus.write.queue.md

Co-authored-by: Clayton Cornell <[email protected]>

* Update docs/sources/reference/components/prometheus/prometheus.write.queue.md

Co-authored-by: Clayton Cornell <[email protected]>

---------

Co-authored-by: Piotr <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
* Bump alloy-remote-config to v0.0.10

Signed-off-by: Paschalis Tsilias <[email protected]>

* Update ConnectRPC client to use new field name, and enable GET requests

Signed-off-by: Paschalis Tsilias <[email protected]>

* Trigger CI

Signed-off-by: Paschalis Tsilias <[email protected]>

---------

Signed-off-by: Paschalis Tsilias <[email protected]>
* update the stability level of remotecfg to generally available

Signed-off-by: Erik Baranowski <[email protected]>

* Update docs/sources/reference/config-blocks/remotecfg.md

Co-authored-by: Clayton Cornell <[email protected]>

---------

Signed-off-by: Erik Baranowski <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
* Update the Linux version support

* Update FreeBSD info

* Update wording for lifecycle
…2716)

Statements like `insert into table values (...)` were logging an error
even though the tables were correctly parsed.
* Initial implementation of cumulativetodelta

* Apply suggestions from code review

Co-authored-by: Clayton Cornell <[email protected]>

* Fix cumulativetodelta stage in docs

* Make the metrics and match_type fields optional in the include/exclude blocks

* Another experimental to public preview fix

* Apply suggestions from code review

Co-authored-by: Clayton Cornell <[email protected]>

* Add cumulativetodelta tests

---------

Co-authored-by: Clayton Cornell <[email protected]>
* move context retrieval undex mutex lock in concurrent eval

* changelog

* change unlock logic

* add test

* typo
* Add support merging snmp config files

* Update changelog

* Add merge test

* update v2 integration

* Updat converter

* Add error

* Fix typo

* Update docs/sources/reference/components/prometheus/prometheus.exporter.snmp.md

Co-authored-by: William Dumont <[email protected]>

* Update docs/sources/reference/components/prometheus/prometheus.exporter.snmp.md

Co-authored-by: William Dumont <[email protected]>

* Refactor LoadSNMPConfig

* Update component test

* Update snmp tests

* Add integration test

* Drop irrelevant comment

* Update tests

* Update converter to v2

* Update internal/static/integrations/snmp_exporter/snmp_exporter_test.go

Co-authored-by: William Dumont <[email protected]>

* Update internal/static/integrations/snmp_exporter/snmp_exporter_test.go

Co-authored-by: William Dumont <[email protected]>

* Update docs/sources/reference/components/prometheus/prometheus.exporter.snmp.md

Co-authored-by: Clayton Cornell <[email protected]>

---------

Co-authored-by: William Dumont <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
Seems like queue block name is incorrect in documentatin. Based on code it actually sending_queue.
database_observability: rename region label to provider_region

Rename label `region` to something a bit less generic.

Co-authored-by: MattNolf <[email protected]>

---------

Co-authored-by: MattNolf <[email protected]>
* Add otelcol filelogreceiver

* Commit changelog and fix converter

* generate docs

* fix feature gate test

* Fix converter test

* Fix refactor typo

* address PR feedback

* Apply suggestions from code review

Co-authored-by: Clayton Cornell <[email protected]>

* Fix diags file

* Fix diags again

* Tweaks to docs

---------

Co-authored-by: Clayton Cornell <[email protected]>
Attempt to fix the error of missing `.image-tag` file in the updater
step of the publish workflow by mounting the file in the container
of the updater step at the workdir path.
…t_tools. (#2746)

The "updater" container has its own app-specific key in Vault which can be used for authentication to private repos.
This prevents the "Login to DockerHub" step from confusing the image tag name. At the moment the containers are incorrectly named "v1.7.0-devel-wip".
* Add mut.Unlock() calls before returning errors

* Update CHANGELOG
Move the sqlparser functions from query_sample to a new file. This
should allow swapping the parser for a different implementation,
if needed. We're still tied to types from the underlying library,
but I think it's fine for now.

Tests are moved around while maintaining the same coverage percentage.
Now the query_sample tests are more focussed on testing the collector
logic rather than the parsing of sql queries.
* put windowsevent stage in loki process doc back

* Update docs/sources/reference/components/loki/loki.process.md

Co-authored-by: Clayton Cornell <[email protected]>

* Update docs/sources/reference/components/loki/loki.process.md

Co-authored-by: Clayton Cornell <[email protected]>

* Update docs/sources/reference/components/loki/loki.process.md

Co-authored-by: Clayton Cornell <[email protected]>

* Update docs/sources/reference/components/loki/loki.process.md

Co-authored-by: Clayton Cornell <[email protected]>

* Update docs/sources/reference/components/loki/loki.process.md

Co-authored-by: Clayton Cornell <[email protected]>

* Update docs/sources/reference/components/loki/loki.process.md

Co-authored-by: Clayton Cornell <[email protected]>

* Update docs/sources/reference/components/loki/loki.process.md

Co-authored-by: Clayton Cornell <[email protected]>

* Update docs/sources/reference/components/loki/loki.process.md

Co-authored-by: Clayton Cornell <[email protected]>

* Update docs/sources/reference/components/loki/loki.process.md

Co-authored-by: Clayton Cornell <[email protected]>

* fix doc

---------

Co-authored-by: Clayton Cornell <[email protected]>
* Initial update to otel and a few exporters

* go modules all work

* starting to clean up build

* fix a few more errors

* Remove mongodb tls config that is not supported, update some exporters

* Update to better version of loki, fix mongo docs

* Address updates to resourcedetectionprocessor from #35936

* Fix ec2 resource detection convert function and tests

* Add metric_types filtering to cumulativetodelta, see 33673

* Support resource detection for gce managed instance group details, see 36142

* Add two additional vcenter metrics, default disabled, see 37257

* Add s3 sending queue and remove nonfunctional encoding, see 37274

* Support cloud.account.id for eks resourcedetection, see 37179

* Add kubeadm resource detector, see 35116

* Clean up gomod, update zipkinreceiver to 119

* Add changelog entry

* add configtls argument for curve_preferences, see 12174

* Update otel curve_preferences to match other curve_preferences documentation in alloy

* Add sending_queue blocking and otlphttp compression_params, see 10467 and 12090

* Remove accidentally committed filelog receiver code

* Fix test extension factories

* Attempt to update loki

* Fix otlp tests

* Update StringifyKind function

* update node exporter

* fix filelog receiver

* fix relabel test

* fix loki process tests

* update node_exporter to latest

* fix go.sum

* fix aws firehose test

* update node exporter refs

* update loki ref to alloy fork

* Update catchpoint exporter reference.

* update node_exporter to latest

* Update vmware exporter after merge of promcommon update

* Update gomod after postgres exporter promcommon update merge

* Update node_exporter reference to use refactor_collectors branch after promcommon update merged

* Update CHANGELOG.md

Co-authored-by: Paulin Todev <[email protected]>

* Update changelog for awss3 exporter breaking change

* Apply suggestions from code review

Co-authored-by: Clayton Cornell <[email protected]>

* Update docs/sources/reference/components/otelcol/otelcol.processor.resourcedetection.md

Co-authored-by: Clayton Cornell <[email protected]>

---------

Co-authored-by: William Dumont <[email protected]>
Co-authored-by: Piotr <[email protected]>
Co-authored-by: Paulin Todev <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
@jdbaldry jdbaldry added the type/docs Docs Squad label across all Grafana Labs repos label Feb 19, 2025
@jdbaldry jdbaldry closed this Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/docs Docs Squad label across all Grafana Labs repos
Projects
None yet
Development

Successfully merging this pull request may close these issues.