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

Make scraping Kubernetes API from default Agent installation optional #192

Closed
rfratto opened this issue Sep 11, 2020 · 4 comments
Closed
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. keepalive Never close from staleness

Comments

@rfratto
Copy link
Member

rfratto commented Sep 11, 2020

The default Kubernetes manifest for the Agent makes too many assumptions about what the users might want to scrape. In particular, it immediately scrapes the Kubernetes API, which is the source of a significant amount of active series (at least 30K per API server).

This should be made optional, defaulting to not scraping the Kubernetes API.

For those looking into contributing this themselves, the change must happen within the Tanka environment used to generate the manifest.

@stale
Copy link

stale bot commented Oct 11, 2020

This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Issue/PR mark as stale due lack of activity label Oct 11, 2020
@stale stale bot closed this as completed Oct 18, 2020
@rfratto rfratto added the keepalive Never close from staleness label Oct 18, 2020
@rfratto rfratto reopened this Oct 18, 2020
@stale stale bot removed the stale Issue/PR mark as stale due lack of activity label Oct 18, 2020
@MrSaints
Copy link

+1 for this.

We decided to give Grafana Cloud a try, but the default instructions for installing the Agent on Kubernetes captures 20k+ metrics. This instantly hits a 429 (rate limit) status code, and exceeds what the Pro plan offers. From running the agent for about less than a minute, we already have a projected monthly spend of $300+ which doesn't seem right at all. And this is on a sandbox cluster with very little workload.

@rfratto
Copy link
Member Author

rfratto commented Jan 24, 2021

we already have a projected monthly spend of $300+ which doesn't seem right at all. And this is on a sandbox cluster with very little workload.

Yeah, sorry about this 😞 I would personally agree that a small cluster shouldn't cost $300+ to monitor. We're working on our support for Kubernetes over the next few months and improving this will be a major part of that.

If you're looking for a quick hacky workaround, you can scale deployments/grafana-agent-deployment to 0 replicas, which will only disable the Kubernetes API job. Just be aware if you run the default installation script again, it'll be scaled back up to 1 replica.

@rfratto rfratto changed the title Remove kubernetes API scraping from default Agent installation Make scraping Kubernetes API from default Agent installation optional Jan 24, 2021
@rfratto
Copy link
Member Author

rfratto commented Feb 10, 2021

Closed by #384

@rfratto rfratto closed this as completed Feb 10, 2021
@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 24, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 24, 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. keepalive Never close from staleness
Projects
None yet
Development

No branches or pull requests

2 participants