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

Switch fetching of fluentd alert YAML file to lookup map #72

Merged
merged 3 commits into from
Nov 11, 2022

Conversation

simu
Copy link
Member

@simu simu commented Nov 10, 2022

We need to specify different locations of the fluentd alerts YAML file in the upstream repository based on the logging stack release, as the file got moved to files/collector/fluentd_prometheus_alerts.yaml for release 5.5.

We implement this as a lookup map in the component class. Because we don't have a way to implement a fallback value for keys which aren't present in the lookup map, this change removes out-of-the-box support for future logging stack versions.

Fixes #69

Checklist

  • PR contains a single logical change (to build a better changelog).
  • Update the documentation.
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.
  • Link this PR to related issues or PRs.

@simu simu added the bug Something isn't working label Nov 10, 2022
@simu simu force-pushed the fix/collector-rules-release-5.5 branch from 18d01e7 to 1569cb9 Compare November 10, 2022 14:58
@simu simu force-pushed the feat/param-version branch 2 times, most recently from f4de671 to 7aa32df Compare November 10, 2022 15:01
@simu simu force-pushed the fix/collector-rules-release-5.5 branch from 1569cb9 to b513aff Compare November 10, 2022 15:02
@simu simu linked an issue Nov 10, 2022 that may be closed by this pull request
@simu simu force-pushed the feat/param-version branch 2 times, most recently from 834f103 to 2f8356a Compare November 10, 2022 15:57
@simu simu force-pushed the fix/collector-rules-release-5.5 branch from b513aff to 5af9568 Compare November 10, 2022 15:59
Base automatically changed from feat/param-version to master November 11, 2022 08:47
We need to specify different locations of the fluentd alerts YAML file
in the upstream repository based on the logging stack release, as the
file got moved to `files/collector/fluentd_prometheus_alerts.yaml` for
release 5.5.

We implement this as a lookup map in the component class. Because we
don't have a way to implement a fallback value for keys which aren't
present in the lookup map, this change removes out-of-the-box support
for future logging stack versions.
@simu simu force-pushed the fix/collector-rules-release-5.5 branch from 3bbe8dd to 9f67c21 Compare November 11, 2022 08:48
@simu simu requested a review from bastjan November 11, 2022 08:48
Rendered from template version: main (86f5428)
@simu simu force-pushed the fix/collector-rules-release-5.5 branch from 9f67c21 to d74504b Compare November 11, 2022 08:51
@simu simu merged commit 97d9a40 into master Nov 11, 2022
@simu simu deleted the fix/collector-rules-release-5.5 branch November 11, 2022 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Component fails to retrieve collector rules for logging >= release-5.5
2 participants