Skip to content

Conversation

@mhsreddy
Copy link
Collaborator

@mhsreddy mhsreddy commented Nov 24, 2025

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.

@mhsreddy mhsreddy force-pushed the mhsreddy/add-environment-logging branch from f5bbbc1 to 8974ae3 Compare November 24, 2025 12:46
@mhsreddy mhsreddy changed the title Mhsreddy/add environment logging Add environment field in the logs to filter logs based on the environment in Dgrep and Kusto Nov 24, 2025
@mhsreddy mhsreddy marked this pull request as ready for review November 24, 2025 15:32
Copy link
Member

@mociarain mociarain left a 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

@mhsreddy mhsreddy force-pushed the mhsreddy/add-environment-logging branch from 01b4db3 to 26df537 Compare December 8, 2025 19:10
@mhsreddy mhsreddy force-pushed the mhsreddy/add-environment-logging branch from 48a3964 to 3fb3893 Compare December 9, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants