Add 389 directory server input#6117
Add 389 directory server input#6117falon wants to merge 9 commits intoinfluxdata:masterfrom falon:389ds
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
|
Is the consensus that this take priority over (and we can close) #5691? |
|
Ok for me too |
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.
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
There was a problem hiding this comment.
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.
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? |
glinton
left a comment
There was a problem hiding this comment.
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!
| ## 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.
Update the example config in readme.md with this as well
| } | ||
|
|
||
| version := sr.Entries[0].GetAttributeValue("version") | ||
| //version := sr.Entries[0].GetAttributeValue("version") |
|
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 <notifications@github.com> 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