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

Add Initial Prom Metrics For Load Balancer Count #166

Merged
merged 9 commits into from
Feb 8, 2024

Conversation

itsmed
Copy link
Contributor

@itsmed itsmed commented Dec 6, 2023

  • operator is configured to have a /metrics endpoint
  • metrics are being emitted with enough information to determine which load balancer a metric is describing

@itsmed itsmed requested review from a team as code owners December 6, 2023 23:08
prometheus.GaugeOpts{
Subsystem: subsystem,
Name: "load_balancers_count",
Help: "Total count of currently deployed load balancers",
Copy link
Member

Choose a reason for hiding this comment

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

On restart this would get reset to zero and it looks like you only increment when creating a new load balancer. So this could actually end up becoming a negative number. Unless I'm missing something. Might be better to add a counter for created load balancers and deleted load balancers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So this could actually end up becoming a negative number. Unless I'm missing something. Might be better to add a counter for created load balancers and deleted load balancers.

🤦 I think 7783e21 handles this bit.

On restart this would get reset to zero

I'm actually not sure about how to address this

itsmed and others added 8 commits December 7, 2023 12:35
…locations (infratographer#170)

* √√ on create deployment if lb location is in operator watched locations

Signed-off-by: Matt Siwiec <[email protected]>

* changes test needs location

Signed-off-by: Matt Siwiec <[email protected]>

---------

Signed-off-by: Matt Siwiec <[email protected]>
* publish metering event

Signed-off-by: Stephen Hwang <[email protected]>

* use changeset instead of eventtype

Signed-off-by: Stephen Hwang <[email protected]>

* use EventMessage

Signed-off-by: Stephen Hwang <[email protected]>

* remove extraneous config, add warn

Signed-off-by: Stephen Hwang <[email protected]>

* bump go

Signed-off-by: Stephen Hwang <[email protected]>

* Update Dockerfile

Signed-off-by: sthwang-metal <[email protected]>

* Update Dockerfile

Signed-off-by: sthwang-metal <[email protected]>

* Update Dockerfile

Signed-off-by: sthwang-metal <[email protected]>

---------

Signed-off-by: Stephen Hwang <[email protected]>
Signed-off-by: sthwang-metal <[email protected]>
Signed-off-by: Dejon Gill <[email protected]>
@rizzza rizzza merged commit 7019ed9 into infratographer:main Feb 8, 2024
6 checks passed
@itsmed itsmed deleted the itsmed-initial-prom-metrics branch February 8, 2024 17:05
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.

4 participants