Repository navigation
feat: add prometeus metrics - #192
Draft
JGodin-C2C wants to merge 1 commit into
Draft
JGodin-C2C wants to merge 1 commit into
JGodin-C2C wants to merge 1 commit into
Conversation
JGodin-C2C
marked this pull request as draft
November 3, 2026 08:59
Member
|
Looks like you forgot to |
This patch add prometeus exposed metrics Coded with the help of AI. Signed-off-by: Julien Godin <julien.godin@camptocamp.com>
JGodin-C2C
force-pushed
the
add_prometheus_metrics
branch
from
November 3, 2026 10:43
41fd342 to
7c1538f
Compare
Author
|
I may or may not doubtfully not push the commit in which the not-added files may or may not have been. |
sebastianrakel
left a comment
Member
There was a problem hiding this comment.
Hey thank you for the PR, nice feature, was on todo since day 1
but found this https://prometheus.io/docs/prometheus/latest/configuration/configuration/#puppetdb_sd_config
and postponed this idea
Member
There was a problem hiding this comment.
why changes at config.go? this has nothing to do with the feature if i see right?
|
|
||
| caEnabled := cfg.PuppetCA.Host != "" | ||
|
|
||
| pdbClient := puppetdb.NewClient() |
Member
There was a problem hiding this comment.
if we create a pdbclient here, we could also provide it to pdbhandler so we don't need to instanciate it in there
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch add prometeus exposed metrics
Coded with the help of AI.