Skip to content
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

Exporter in bitbucket data center #10

Open
Zauxst opened this issue May 1, 2018 · 6 comments
Open

Exporter in bitbucket data center #10

Zauxst opened this issue May 1, 2018 · 6 comments
Assignees

Comments

@Zauxst
Copy link

Zauxst commented May 1, 2018

Hello,

How do you actually monitor with the exporter in a bitbucket datacenter? Especially if it's configured in round robin. You can't monitor the nodes individually.

Is there a solution or the ideal solution would be to configure it per node and export JVM.

@AndreyVMarkelov
Copy link
Owner

Not really. Actually you just need to put the count of configurations from bitbucket on prometheus.yml as you have nodes and use default label to distinguish it. Them for global metrics you will use any one and group by this metrics for JVM metrics.

@Zauxst
Copy link
Author

Zauxst commented May 3, 2018

Hey Andrey,

Thanks for taking the time to reply.

I'm having difficulty understanding your message. the problem is that the metrics inside your plugin are accessed through the load balancer thus in roundrobin configuration at each refresh you will receive 1 reply from Node A then a reply from Node B then Node C and so forth.

When you configure Prometheus to target the datacenter you cannot export the metrics like you would export them by accessing the machines directly ( http://nodeA.company.ltd/plugins/servlet/prometheus/metrics?token=secretToken ). Bitbucket datacenter nodes are communicating through SSH, default ssh port 7999 with the load balancer.

Please take a look at their documentation here : https://confluence.atlassian.com/bitbucketserver/clustering-with-bitbucket-data-center-776640164.html in

The diagram:
bitbucketdatacenter-4-node-architecture_diagram 1

This is a close enough representation of what I have configured up at this point and what I wish to monitor using your plugin.

@AndreyVMarkelov
Copy link
Owner

AndreyVMarkelov commented May 3, 2018 via email

@Zauxst
Copy link
Author

Zauxst commented May 3, 2018

The problem is the protocol that is used to access the metrics inside the plugin is only through HTTP/HTTPS. thus when going directly on http/https (http://ip/path/to/metrics ; the same path would work on bitbucket server) because of the design of bitbucket datancenter you cannot access the metrics directly.

I'll give more thought on this matter, if I find a solution in the meantime I'll update you.
ps: the license metrics are not displaying correctly.

@AndreyVMarkelov
Copy link
Owner

AndreyVMarkelov commented May 3, 2018 via email

@Zauxst
Copy link
Author

Zauxst commented Oct 6, 2018

Hello @AndreyVMarkelov,
As a small update, I don't think this task is doable by you, this seems like a limitation in bitbucket datacenter since plugins cannot be accessible from nodes. Maybe you can investigate if you wish to make your addon Data Center compatible.

Anyway. Thanks for maintaining the plugin, you can close this issue.

@AndreyVMarkelov AndreyVMarkelov self-assigned this May 29, 2019
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

No branches or pull requests

2 participants