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

Export cluster node name #161

Open
steffenv-msft opened this issue Jun 15, 2020 · 2 comments
Open

Export cluster node name #161

steffenv-msft opened this issue Jun 15, 2020 · 2 comments
Labels
enhancement New feature or request tech-debt

Comments

@steffenv-msft
Copy link

steffenv-msft commented Jun 15, 2020

The cluster node name should be available in the data exported on the endpoint to help identifying them in later analytics steps.
If connecting to the endpoints i.e. by IP address (http://IP:9664/metrics), it's currently impossible to correlate data imported to analytic data sources, unless there is a (manual) mapping somewhere available to the analytical data source also.
Ideally the cluster name can be made available as well.
The information is available from ". crm_node --name"

A simple approach could be to export as some kind of meta-data:

'# TYPE meta_data
meta_data{node="cluster node name",cluster="cluster name"} 1

or
'# TYPE meta_data
meta_data{node="cluster node name"} 1
meta_data{cluster="cluster name"} 1

@steffenv-msft steffenv-msft changed the title Export hostname Export cluster node name Jun 15, 2020
@stefanotorresi
Copy link
Member

Hey @steffenv-msft,
Yeah, we are well aware of this issue, and we have been having some discussions about this.
The problem is that this exporter is quite atypical in the fact that it exports data related to other nodes other than the exporter host itself; we are evaluating different solutions for this problem.
We're not super-enthusiastic about putting static metadata in dedicated time-series, since labels would be the correct tool instead, but we'll try to find a compromise that can solve the root design issue and works for you too.

@stefanotorresi stefanotorresi added enhancement New feature or request tech-debt labels Jun 15, 2020
@towo
Copy link

towo commented Dec 14, 2020

If you're worried about determinability: Export a metric that checks if connection to the cluster endpoint is possible and attach the basic CIB options (cluster name, cluster-infrastructure, etc.) to it as labels. The only issue you'd walk into is that you'd have to parse the XML when the endpoint's actually down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tech-debt
Projects
None yet
Development

No branches or pull requests

3 participants