Skip to content

Conversation

synarete
Copy link
Collaborator

@synarete synarete commented Feb 6, 2025

Have profile-mode enabled by default. If profile information is not available from smbd, export only base metrics.

When samba is compiled without profile support or smbd running without
'smbd profiling level = on' there is no profile information which
smbstatus exports. In such cases, do not export any profile metric via
Prometheus exporter.

Signed-off-by: Shachar Sharon <[email protected]>
By default, run smbmetrics with profile-exporter enabled (if present).
Allow user to disable it by passing explicit '--no-profile' flag at
command line.

Signed-off-by: Shachar Sharon <[email protected]>
Update doc to reflect default run mode.

Signed-off-by: Shachar Sharon <[email protected]>
Copy link

@avanthakkar avanthakkar left a comment

Choose a reason for hiding this comment

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

lgtm

Whenever running 'smbstatus' as child process with, we also expect it to
run properly. Send a proper log message in case of failure via the
bridge layer (SMBInfo, SMBProfileInfo).

Signed-off-by: Shachar Sharon <[email protected]>
Copy link
Collaborator

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

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

lgtm

@synarete synarete merged commit 8f3ddd3 into samba-in-kubernetes:main Feb 10, 2025
7 checks passed
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