-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 389 directory server input #6117
Conversation
- monitor each connection details is status = true - automonitor all dbs if alldbmonitor = true - added the Directory version in tags - unified metrics all in a row
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for your work
Is the consensus that this take priority over (and we can close) #5691? |
Ok for me too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
plugins/inputs/ds389/README.md
Outdated
|
||
# reverse metric names so they sort more naturally | ||
# Defaults to false if unset, but is set to true when generating a new config | ||
dbtomonitor = ["db1","db2"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about these being filters and calling them db_include
and db_exclude
telegraf/plugins/inputs/ecs/ecs.go
Line 202 in 8bc768b
filter, err := filter.NewIncludeExcludeFilter(ecs.ContainerNameInclude, ecs.ContainerNameExclude) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't implement it , cause i don't understand how it works
for _, attr := range entry.Attributes { | ||
if attr.Name == "connection" && status { | ||
for _, thisAttr := range attr.Values { | ||
elements := strings.Split(thisAttr, ":") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verify the length of elements
to avoid a potential panic when indexing the slice.
I can't update this PR , do i have to create another PR ? |
Thank you for update these changes! I don't know if it's because I opened the PR from my username... Thank you |
That is correct. falon, you need to make the changes, or grant gnulux permissions to push to your repo. |
Hey all, is there much of glintons requests that still need to be done / anything I can help with? |
Hi all |
hi, not sure if this is the right place, but it seems that this plugin will not collect cache metrics. would you please consider to also add the metrics provided by this call: ldapsearch -D "cn=Directory Manager" -W -p 389 -h $(hostname) -x -s base -b "cn=monitor,cn=userRoot,cn=ldbm database,cn=plugins,cn=config" "(objectclass=*)" this for example gives you "entrycachehitratio" |
Hi, Sorry for the late of my answer Regards |
Hey @glinton are you happy with all the changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm approving this to remove my previous block, as the majority of my previous review were addressed, though I'm no longer on the telegraf team and don't know any current patterns, etc... @reimda likely can better assist and possibly give a milestone estimate on this. Thanks for the great work!
plugins/inputs/ds389/ds389.go
Outdated
## Optional TLS Config | ||
# tls_ca = "/etc/telegraf/ca.pem" | ||
# tls_cert = "/etc/telegraf/cert.pem" | ||
# tls_key = "/etc/telegraf/key.pem" | ||
## Use TLS but skip chain & host verification | ||
insecure_skip_verify = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the example config in readme.md
with this as well
if err != nil { | ||
acc.AddError(err) | ||
return nil | ||
} | ||
|
||
version := sr.Entries[0].GetAttributeValue("version") | ||
//version := sr.Entries[0].GetAttributeValue("version") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove commented code
Hi |
Hi , thanks
Very long time I have been waiting to hear from the repo maintainer.
rgds
Le lun. 14 déc. 2020 à 09:16, Gerrit Visscher <[email protected]> a
écrit :
… Hi
Is there any update on this? This plugin would be nice to have for me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6117 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLDWDEL7PW5A7IPWIR32Y3SUXCXDANCNFSM4IDUX2KQ>
.
|
We could always makes this an execd based plugin instead. This would allow us to bump the go ldap plugin to v3 and add support for ldapi. Ref: https://github.com/influxdata/telegraf/blob/master/plugins/common/shim/README.md |
Just gonna add that I would be willing to do the work for the execd based version if @falon is okay with it ( forking his original changes and building it into the shim). |
Hello, yes, it's ok for me. |
@falon thank you for your work here, how is this plugin working as an external plugin does it satisfy your needs? Would you be ok with closing this pull request? |
Hello @sspaink , maybe do you still like to add this as internal input plugin? Yes, it works for me as external plugin. @wisebaldone create a first release for shim too, I think it works in this way. For me is ok to use this plugin as external, anyway. @gnulux contributes a very great part on this work, so I ask his opinion. |
Ok for me too
Le ven. 14 mai 2021 à 10:36, Marco Favero ***@***.***> a
écrit :
… @falon <https://github.com/falon> thank you for your work here, how is
this plugin working as an external plugin does it satisfy your needs? Would
you be ok with closing this pull request?
Hello @sspaink <https://github.com/sspaink> , maybe do you still like to
add this as internal input plugin?
Yes, it works for me as external plugin. @wisebaldone
<https://github.com/wisebaldone> create a first release for shim too, I
think it works in this way.
For me is ok to use this plugin as *external*, anyway. @gnulux
<https://github.com/gnulux> contributes a very great part on this work,
so I ask his opinion.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6117 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLDWDC7L4XXK62JG42S4XLTNTOHTANCNFSM4IDUX2KQ>
.
|
Closing due to the use of an external plugin in this case. Thanks! |
Required for all PRs:
Hello @Dodgers, thank you for the plugin #5691! 👍
I propose to add these new features:
For all contributors, tell me what do you think and feel free to modify the code.
Thank you