-
Notifications
You must be signed in to change notification settings - Fork 672
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
Improvement: Add owner_node on resource and resourcegroup for mscluster #1395
Improvement: Add owner_node on resource and resourcegroup for mscluster #1395
Conversation
ae958ef
to
22f6f24
Compare
Hi @webalexeu I have this PR on my list, however I'm currently limited in PR review, since a destroyed my laptop weeks ago. |
Do you want to have an output before and after the change ? I can also provide the compiled version as well if it can help you |
If you have a screenshot from the owner inside the sql system + the output from the metrics, it would help a lot. I dont have any mscluster expericence. |
This is the output of the metrics and the cmdlet output of the cluster associated
|
I see, the owner node is something what could be changes from time to time, right? Reading https://prometheus.io/docs/practices/naming/#labels
It's an sub-optimal use-case for an label value. I can see, that owner node is attached to each metric. Is it sufficient to have the label only on The label could be attach to results via operator, e.g.:
I'm aware that owner_group is attached everywhere, too. Thats also something, was is not strictly nessesary. |
Indeed, OwnerNode will change on every failover of ressources within the cluster There is no need indeed to have that label on every metrics and have it on state should be enough I will update then my PR Thanks for the review |
40ae7e1
to
282a240
Compare
Signed-off-by: Dinifarb <andreas.vogt89@bluewin.ch> Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
…rsFlag Signed-off-by: Dinifarb <andreas.vogt89@bluewin.ch> Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.45.0 to 0.46.0. - [Release notes](https://github.com/prometheus/common/releases) - [Commits](prometheus/common@v0.45.0...v0.46.0) --- updated-dependencies: - dependency-name: github.com/prometheus/common dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.7.0 to 1.7.11. - [Release notes](https://github.com/containerd/containerd/releases) - [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md) - [Commits](containerd/containerd@v1.7.0...v1.7.11) --- updated-dependencies: - dependency-name: github.com/containerd/containerd dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
Signed-off-by: dinifarb <andreas.vogt89@bluewin.ch> Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
Bumps [github.com/yusufpapurcu/wmi](https://github.com/yusufpapurcu/wmi) from 1.2.3 to 1.2.4. - [Release notes](https://github.com/yusufpapurcu/wmi/releases) - [Commits](yusufpapurcu/wmi@v1.2.3...v1.2.4) --- updated-dependencies: - dependency-name: github.com/yusufpapurcu/wmi dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
Microsoft currently support Windows Server 2016 or newer, and Windows 10 and Windows 11 (21HR or later). Dropping support for end-of-life Windows Server versions will reduce maintenance overhead for project maintainers. Signed-off-by: Ben Reedy <breed808@breed808.com> Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
Co-authored-by: Jan-Otto Kröpke <github@jkroepke.de> Signed-off-by: Ben Reedy <breed808@users.noreply.github.com> Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.16.0 to 0.17.0. - [Commits](golang/sys@v0.16.0...v0.17.0) --- updated-dependencies: - dependency-name: golang.org/x/sys dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
Signed-off-by: Alexandre JARDON <28548335+webalexeu@users.noreply.github.com>
77adae9
to
8d1d552
Compare
I convert the PR to draft, please let me know, when you finished |
Hello @jkroepke ,
Let me know if you want additionnal details or some code review Thank you |
@webalexeu It looks good to me here. You last post explains the feature well. Could you please copy the content to the docs |
I already put example and useful queries Under which section do you want me to put it ? |
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.
LGTM 👍
Hello @jkroepke , Any idea when you will release a new version of the exporter ? Have a nice weekend, |
Hello,
This PR will add owner_node label on resource and resourcegroup metrics for mscluster
(It has been tested)
Let me know if you need additionnal details or some code adjustements
Thank you,
Alex