[go: up one dir, main page]

Skip to content

Dynamically set the frame_src and o11y URL based on the o11y database table settings

What does this MR do and why?

Dynamically access o11y (through an iframe) based on the group's o11y settings. This will make it easier for users to connect their GitLab instance to their o11y instance.

References

Screenshots or screen recordings

Before After

How to set up and validate locally

  1. In rails console enable the feature flag and setup the service settings
['toolbox', 'twitter'].each_with_index do |path_name, i|
  puts "Enabling feature for: #{path_name}"
  group = Group.find_by_path(path_name)
  Feature.enable(:observability_sass_features, group)
  url = "http://localhost:#{3006+i}"
  group.create_observability_group_o11y_setting!(
	  o11y_service_url: "http://localhost:#{3006+i}",
	  o11y_service_user_email: "#{path_name}@gitlab-o11y.com",
	  o11y_service_password: "PasswordMcPasswordFace",
	  o11y_service_post_message_encryption_key: "your-super-secret-encryption-key-here-32-chars-minimum",
  )
end
  1. Clone a simple server:
git clone git@gitlab.com:dakotadux/simple-server.git
  1. Run two versions of the simple server on ports 3006 and 3007:
ruby simple-server.rb 3006
ruby simple-server.rb 3007
  1. View the services pages for toolbox and twitter

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Dakota Dux

Merge request reports

Loading