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
- 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
- Clone a simple server:
git clone git@gitlab.com:dakotadux/simple-server.git
- Run two versions of the simple server on ports 3006 and 3007:
ruby simple-server.rb 3006
ruby simple-server.rb 3007
- View the services pages for toolbox and twitter
- http://localhost:3000/groups/toolbox/-/observability/services
- http://localhost:3000/groups/twitter/-/observability/services
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