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

Fix static pods missing in the discovery.kubelet output #5645

Closed
wants to merge 51 commits into from
Closed

Fix static pods missing in the discovery.kubelet output #5645

wants to merge 51 commits into from

Conversation

masonmei
Copy link
Contributor

@masonmei masonmei commented Oct 30, 2023

PR Description

Update the buildPodTargetGroup function in discovery.kubelet to hand containers that has no pod defined. This is useful for logs collecting with files in local.

image

Which issue(s) this PR fixes

Fixes #5644

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@masonmei masonmei requested a review from a team as a code owner October 30, 2023 11:59
@CLAassistant
Copy link

CLAassistant commented Oct 30, 2023

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
23 out of 24 committers have signed the CLA.

✅ masonmei
✅ wildum
✅ rfratto
✅ ptodev
✅ schmikei
✅ thampiotr
✅ clayton-cornell
✅ hainenber
✅ tpaschalis
✅ erikbaranowski
✅ marctc
✅ rlankfo
✅ captncraig
✅ jkroepke
✅ petethepig
✅ spartan0x117
✅ StefanKurek
✅ harsiddhdave44
✅ joshuapare
✅ mcanevet
✅ thepalbi
✅ rootmout
✅ nicolai-hornung-bl
❌ github-actions[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@masonmei masonmei changed the title Fix static pods missing in the discovery.kubelet output #5644 Fix static pods missing in the discovery.kubelet output Oct 30, 2023
wildum and others added 7 commits October 30, 2023 16:06
* component/prometheus: fix panic in interceptor when child isn't set

This commit fixes a panic in prometheus.Interceptor where an interceptor
which doesn't forward samples to another appendable panics when
appending data.

Co-authored-by: Edward Welch <[email protected]>

* loki.source.kubernetes: improve detection of rolled log files

Versions of Kubernetes that do not contain kubernetes/kubernetes#115702
will fail to detect rolled log files, causing the API to stop sending
logs to the agent for processing.

To work around this, this commit intorduces a rolling average calculator
to determine the average delta between log entries per target. If 3x the
normal delta time has elapsed since the last entry, the tailer is
restarted.

False positives here are acceptable, but false negatives mean that log
lines may not appear for an extended period of time until the rolling
detection succeeds.

Closes #5040

Co-authored-by: Edward Welch <[email protected]>

* loki.source.kubernetes: support clustering

Add support for loki.source.kubernetes to distribute targets using
clustering.

Closes #4502

Co-authored-by: Edward Welch <[email protected]>

* loki.source.podlogs: support clustering

Add support for loki.source.podlogs to distribute targets using
clustering.

* service/cluster: add common block for clustering arguments

* remove irrelevant TODO comment

#5623 (comment)

---------

Co-authored-by: Edward Welch <[email protected]>
* Clarify data collection

* Clarify data collection done onlly in Static mode

* Update links and add missing data collection

* Fix broken link
* update oracledb-exporter to latest

* retriggering drone CI
…5634)

* Add an "exclude_event_message" argument to loki.source.windowsevent

* Add a note with exact commit hash of Loki.

---------

Co-authored-by: Paschalis Tsilias <[email protected]>
Co-authored-by: Paschalis Tsilias <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
Copy link
Member

@rfratto rfratto left a comment

Choose a reason for hiding this comment

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

Makes sense to me!

Can you add this as an enhancement to the CHANGELOG.md at the root of the repository?

dependabot bot and others added 17 commits October 31, 2023 17:19
)

Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](aquasecurity/trivy-action@fbd1636...b77b85c)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…s metrics (#5632)

* Add example with metrics

* Update docs/sources/flow/reference/components/otelcol.processor.k8sattributes.md

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

---------

Co-authored-by: Clayton Cornell <[email protected]>
* Use raw strings for regexes in docs

* Update note in beginning of doc

---------

Co-authored-by: Clayton Cornell <[email protected]>
* feat(comp/otelcol): component to filter OTEL telemetry

---------

Signed-off-by: hainenber <[email protected]>
Co-authored-by: Paulin Todev <[email protected]>
Co-authored-by: Clayton Cornell <[email protected]>
* initial wiring agent integration for integration-next

Signed-off-by: erikbaranowski <[email protected]>

---------

Signed-off-by: erikbaranowski <[email protected]>
* Update `make docs` procedure

* Use single PR for all updates

Signed-off-by: Jack Baldry <[email protected]>

---------

Signed-off-by: Jack Baldry <[email protected]>
Co-authored-by: grafanabot <[email protected]>
Co-authored-by: Jack Baldry <[email protected]>
* NSIS: Add /CONFIG and /DISABLEREPORTING flag

* Code review feedback

* /DISABLEPROFILING

* Update docs/sources/flow/setup/install/windows.md

---------

Co-authored-by: mattdurham <[email protected]>
We now use project automation to add issues and don't need a Github
Action for it anymore.
Bumps [helm/chart-testing-action](https://github.com/helm/chart-testing-action) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/helm/chart-testing-action/releases)
- [Commits](helm/chart-testing-action@v2.3.1...v2.4.0)

---
updated-dependencies:
- dependency-name: helm/chart-testing-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot bot and others added 4 commits November 2, 2023 15:47
…5513)

* build(deps): bump @babel/traverse from 7.21.5 to 7.23.2 in /web/ui

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.5 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix example config

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Robert Fratto <[email protected]>
* wire up apache exporter for static integrations-next converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up azure exporter for integrations-next static converter

Signed-off-by: erikbaranowski <[email protected]>

---------

Signed-off-by: erikbaranowski <[email protected]>
…/ui (#5573)

Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 18.2.4 to 18.2.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: "@types/react-dom"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
joshuapare and others added 14 commits November 2, 2023 16:50
Signed-off-by: hainenber <[email protected]>
Co-authored-by: William Dumont <[email protected]>
Co-authored-by: Paulin Todev <[email protected]>
Co-authored-by: Paschalis Tsilias <[email protected]>
Bumps [github.com/hashicorp/vault/api/auth/gcp](https://github.com/hashicorp/vault) from 0.2.0 to 0.5.0.
- [Release notes](https://github.com/hashicorp/vault/releases)
- [Changelog](https://github.com/hashicorp/vault/blob/main/CHANGELOG-v0.md)
- [Commits](hashicorp/vault@v0.2.0...v0.5.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/vault/api/auth/gcp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…() (#5704)

The prometheus.remote_write basic_auth username is a string type and the agent will non start if the username is provided directly as a secret out of remote.kubernetes.secret.

Co-authored-by: Clayton Cornell <[email protected]>
* Update `make docs` procedure

* Use versioned action to update `make-docs` procedure

https://github.com/grafana/writers-toolkit/blob/main/update-make-docs/action.yml

Signed-off-by: Jack Baldry <[email protected]>

---------

Signed-off-by: Jack Baldry <[email protected]>
Co-authored-by: grafanabot <[email protected]>
Co-authored-by: Jack Baldry <[email protected]>
* wire up blackbox exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up cadvisor integration v2 for converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up cloudwatch exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up consul exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up dnsmasq exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up elasticsearch exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up gcp exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up github exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up kafka exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up memcached exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up mongodb exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up mssql exporter for integrations v2 exporter

Signed-off-by: erikbaranowski <[email protected]>

* wire up mysql exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up node exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up oracledb exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up postgres exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up process exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up redis exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up snmp exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up snowflake exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up squid exporter for integration v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up statsd exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* wire up windows exporter for integrations v2 converter

Signed-off-by: erikbaranowski <[email protected]>

* fix up windows test after running it in local windows

---------

Signed-off-by: erikbaranowski <[email protected]>
@masonmei masonmei requested review from a team, clayton-cornell and jdbaldry as code owners November 7, 2023 05:41
@tpaschalis
Copy link
Member

Hey @masonmei! I think something might have gone wrong during a recent rebase; can you re-check?

@masonmei masonmei closed this by deleting the head repository Nov 8, 2023
@masonmei
Copy link
Contributor Author

masonmei commented Nov 8, 2023

Sure, I have dropped this pull and open a new one #5735

@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Feb 21, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

static pods missing in the discovery.kubelet output