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

update tf charm with prometheus scrap / metrics endpoint #135

Closed
wants to merge 3 commits into from

Conversation

hum4n0id
Copy link
Contributor

Description

Expose Prometheus metrics endpoint for COS lite

Resolved issues

https://warthogs.atlassian.net/browse/CERTTF-203

Copy link
Collaborator

@plars plars left a comment

Choose a reason for hiding this comment

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

I added a few more comments, but be aware that this may need some rebasing or merging to make it work with the new monorepo layout.

@@ -7,3 +7,7 @@ options:
default: 10
description: Number of seconds to wait for keepalive connections
type: int
api_port:
Copy link
Collaborator

Choose a reason for hiding this comment

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

As in the previous PR, take this out - we don't need a config option for it because there's no reason for it to ever change.

self._prometheus_scraping = MetricsEndpointProvider(
self,
relation_name="metrics-endpoint",
jobs=[{"static_configs": [{"targets": [f"*:5000"]}]}],
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is what causes the lint failure. You have f"*:5000" but there's no placeholder for it.

@hum4n0id hum4n0id closed this Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants