-
Notifications
You must be signed in to change notification settings - Fork 486
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
Unable to Convert a Static Mode Logs Config to Flow Mode Automatically #5447
Comments
This is kinda odd but if you add Here's the output after I did that
Hope this help you |
@erikbaranowski I'm not sure this should be an error:
IMO it's not necessarily a problem that the WAL directory a user specified before won't carry over, and that they'll need to follow up with a flag. While I'm here, these feel off to me too:
I'm not sure this should be a warning, since there's no action the user might need to take. Maybe this should be info level. |
@rfratto I addressed some of the diagnostic concerns in a PR that was merged to main #5505. @SeamusGrafana I am looking at the provided config and am tracking down a couple things. I know this wasn't in the original ask but I want to call this out. The The
|
I've opened #5546 to fix the main issue with missing Added a test case that illustrates how the config in the repro instructions will look like after the fix: https://github.com/grafana/agent/pull/5546/files#diff-c188124e35b3f04832c940570a36b7a3a4499c9ac88a9d042072ff537813b117 |
What's wrong?
I am trying to convert some of my Static Mode configs to Flow Configs, using the
convert
command.In this instance, I found that one of my Scrape Jobs was missing from the converted configuration.
In the Static Mode Config, I have a Logs Scrape Job of
job_name: integrations/mysql
but this is not included in the output.I tried commenting out a few lines (like the expression), incase this was an issue, but it still did not generate and I cant see why.
While I can manually convert the config easily, the purpose was to test the convert tool (so I could compare to my manual config to see what differences there was).
Steps to reproduce
Create a Static Mode Config with the YAML below.
Convert it to Flow Mode with the
convert
option, and also including the-b
option to bypass thewal_directory
issue for MetricsCheck output River file to see if the Logs Scrape Job is included.
System information
Linux
Software version
v0.37.1
Configuration
Static Config;
Flow Mode Converted Config Output;
Logs
The text was updated successfully, but these errors were encountered: