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

define new gcp and azure load balancer dashboard in csp-mixin #1322

Merged
merged 17 commits into from
Sep 10, 2024

Conversation

yduartep
Copy link
Contributor

@yduartep yduartep commented Aug 30, 2024

define new gcp load balancer dashboard in csp-mixin

Check generated dashboards here:

Copy link
Contributor

@rgeyer rgeyer left a comment

Choose a reason for hiding this comment

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

Couple comments which should hopefully answer the questions you had.

These are exactly the reason(s) why I need to do some organization, and possibly break this into a few different repositories/mixins. At the moment there are some odd workarounds for things that I did not initially plan for.

csp-mixin/signals/loadbalancer.libsonnet Outdated Show resolved Hide resolved
csp-mixin/dashboards.libsonnet Outdated Show resolved Hide resolved
@yduartep yduartep marked this pull request as ready for review September 2, 2024 09:31
@yduartep yduartep requested a review from a team as a code owner September 2, 2024 09:31
@yduartep yduartep requested a review from rgeyer September 2, 2024 09:31
@yduartep yduartep changed the title define new gcp load balancer dashboard in csp-mixin define new gcp and azure load balancer dashboard in csp-mixin Sep 5, 2024
Copy link
Contributor

@rgeyer rgeyer left a comment

Choose a reason for hiding this comment

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

Looks good!

@@ -1,7 +1,7 @@
{
_config+:: {
local this = self,
dashboardTags: ['azure'],
dashboardTags: ['azure-cloud-provider'],
Copy link
Contributor

Choose a reason for hiding this comment

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

This will change the tags used by the other azure dashboards that are generated by this lib as well. We'll probably want/need to increment versions appropriately when we integrate it downstream.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, As you can see on next images, GCP and Azure use the same tag name.

Screenshot 2024-09-10 at 09 22 55 Screenshot 2024-09-10 at 09 22 48

Comment on lines +9 to +10
[sig]: commonlib.signals.unmarshallJsonMulti(this.config.signals[sig], type=this.config.metricsSource)
for sig in std.objectFields(this.config.signals)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice optimization!

@yduartep yduartep merged commit 474b02b into master Sep 10, 2024
3 checks passed
@yduartep yduartep deleted the yduartep/new-dash-loadbalancer-in-cspmixin branch September 10, 2024 12: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