-
Notifications
You must be signed in to change notification settings - Fork 190
Add environment field in the logs to filter logs based on the environment in Dgrep and Kusto #4481
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
base: master
Are you sure you want to change the base?
Conversation
f5bbbc1 to
8974ae3
Compare
mociarain
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I understand it, the ultimate outcome of this will be a mix of prod and staging logs in where we only expect production. I'm not delighted with this but given this is the way HCP is going and the lift needed from MSFT to add Geneva accounts we've decided to mix them. My only request is that we have a way to make this EnvironmentType the first column returned from Kusto by default so people will see this.
If we can't do this I think we need to change our approach
01b4db3 to
26df537
Compare
… and fluentbit), and metrics to enable filtering and analysis by environment
48a3964 to
3fb3893
Compare
Which issue this PR addresses:
Fixes: https://issues.redhat.com/browse/ARO-14708
What this PR does / why we need it:
This PR is to add new extra dimesion Environment to the metrics to include or exclude the metrics in the Geneva Monitors. Also to include new environment field in the logs to filter the logs in Kusto or Dgrep. This change enables us to use the production Logging Account in Geneva to push logs and metrics and filter the logs easily between Prod and stg environment.
Test plan for issue:
Need to Test the changes in INT and Staging Environment First. Make sure that we are able to see the environment in the metrics and also new envitonment field in the logs.
Is there any documentation that needs to be updated for this PR?
N/A
How do you know this will function as expected in production?
The Metrics and logs should contain the Environment field in the Geneva Logs and Metrics.