-
Notifications
You must be signed in to change notification settings - Fork 203
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
agent crashes if kafka_exporter fails to connect to kafka #403
Comments
Thanks for reporting @7840vz. That's indeed an undesired behavior and I suspect it might happen in other integrations. In this case, I was able to reproduce it and it's either that it an issue that has to be fixed upstream or it's solved in a version that we are not using. Do you see the same behavior if you run the exporter manually? |
Sorry, I haven't tried to use exporter separately. If I run exporter separately and it does the same behaviour, I can at least setup exporter's container or systemd service to always restart after crash, and it ok, since exporter doesn't do anything else. Here it wouldn't help, as I need agent's other integrations/scrapes to be working, while kafka is not available.... |
I have manually checked other integrations if they have similar behavior but doesn't seem to be the case (which is good). I'm pretty sure that including last kafka changes this probably would get fixed. The work to do that is ongoing and can be tracked here #464 |
This issue has not had any activity in the past 30 days, so the |
I double checked and the problem happens upstream: the exporter basically crashes if kafka_exporter can't connect to a kafka broker. @7840vz i'd suggest to raise the issue to the original exporter to see if they are up for a fix. |
I had the same issue when attempting to connect to caddy via The error message - |
Hi there 👋 On April 9, 2024, Grafana Labs announced Grafana Alloy, the spirital successor to Grafana Agent and the final form of Grafana Agent flow mode. As a result, Grafana Agent has been deprecated and will only be receiving bug and security fixes until its end-of-life around November 1, 2025. To make things easier for maintainers, we're in the process of migrating all issues tagged variant/flow to the Grafana Alloy repository to have a single home for tracking issues. This issue is likely something we'll want to address in both Grafana Alloy and Grafana Agent, so just because it's being moved doesn't mean we won't address the issue in Grafana Agent :) |
What's wrong?
Agent stops immediately if agent fails to connect to kafka on start.
I think this is not right behavior.
Because config is valid, and it is just networking issue, other metrics/integrations/log collector should continue working while kafka_integration should try to reconnect instead of killing the agent.
Steps to reproduce
Add config like this:
System information
Linux
Software version
v0.34.3
Configuration
No response
Logs
The text was updated successfully, but these errors were encountered: