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

fix(monitoring_config): 🐛 enable/disable observability inputs & logmon_config_is_set #1894

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Markieta
Copy link

@Markieta Markieta commented Mar 4, 2024

@Markieta Markieta requested review from ericyz, gtsorbo and a team as code owners March 4, 2024 22:44
@Markieta Markieta changed the title fix: 🐛 enable/disable observability inputs & logmon_config_is_set Mar 4, 2024
@bharathkkb
Copy link
Member

/gcbrun

@matthisholleville
Copy link

Can't wait to use this PR !!

Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label May 28, 2024
@apeabody apeabody removed the Stale label May 30, 2024
Copy link
Contributor

@apeabody apeabody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @Markieta!

Can you please rebase the PR, and we'll do a fresh run of the CI tests.

@Markieta Markieta requested a review from apeabody May 30, 2024 16:55
@Markieta
Copy link
Author

Hope my commits struggling to rebase/merge is not a problem. 😅

Should be good to test now.

@apeabody
Copy link
Contributor

Hope my commits struggling to rebase/merge is not a problem. 😅

Should be good to test now.

No problem at all, we squash into a single commit on merge.

@apeabody
Copy link
Contributor

/gcbrun

@apeabody
Copy link
Contributor

From the CI tests:

TestBetaCluster 2024-05-30T18:32:07Z retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; 
Error: Missing required argument

  with module.this.module.gke.google_container_cluster.primary,
  on ../../../modules/beta-public-cluster/cluster.tf line 22, in resource "google_container_cluster" "primary":
  22: resource "google_container_cluster" "primary" {

The argument
"monitoring_config.0.advanced_datapath_observability_config.0.enable_metrics"
is required, but no definition was found.}
@Markieta
Copy link
Author

I wasn't able to replicate the issue with docker_test_integration but I think I know what's going wrong.

I've replaced "enableRelay": false with "enableMetrics": false as the latter is required by the google_container_cluster resource (though unsure if it's sufficient to only update TestBetaCluster.json/TestSimpleRegional.json with enableMetrics.)

@apeabody
Copy link
Contributor

/gcbrun

@SavvasM1
Copy link
Contributor

Why is this build failing? Would love to see this guy in sooner than later :)

@apeabody
Copy link
Contributor

From the test:

        	Error:      	Received unexpected error:
        	            	FatalError{Underlying: error while running command: exit status 1; 
        	            	Error: Missing required argument
        	            	
        	            	  with module.example.module.gke.google_container_cluster.primary,
        	            	  on ../../../modules/beta-public-cluster/cluster.tf line 22, in resource "google_container_cluster" "primary":
        	            	  22: resource "google_container_cluster" "primary" {
        	            	
        	            	The argument
        	            	"monitoring_config.0.advanced_datapath_observability_config.0.enable_metrics"
        	            	is required, but no definition was found.}
        	Test:       	TestSandboxEnabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants