You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Stanislav Lukyanov (Jira)" <ji...@apache.org> on 2022/11/17 15:20:00 UTC

[jira] [Commented] (IGNITE-18183) Rest endpoint for all node metrics

    [ https://issues.apache.org/jira/browse/IGNITE-18183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17635407#comment-17635407 ] 

Stanislav Lukyanov commented on IGNITE-18183:
---------------------------------------------

This is not specific to metrics. The same is applicable to any endpoint working per node: config, version, etc.

It seems that all of the `/node/` endpoints need to have "flavors" of access - getting data locally and getting data from one or multiple nodes in the cluster.

I guess it means re-writing all of these `/node/` handlers in a way that supports sending remote requests. Ignite 2 does that all the time via compute jobs, I guess Ignite 3 would do the same.

Also, seems like it might need to be `/nodes/` (plural). I like Elastic's structure a lot.

> Rest endpoint for all node metrics
> ----------------------------------
>
>                 Key: IGNITE-18183
>                 URL: https://issues.apache.org/jira/browse/IGNITE-18183
>             Project: Ignite
>          Issue Type: Task
>          Components: ignite-3
>            Reporter: Stepachev Maksim
>            Priority: Major
>              Labels: ignite-3, ignite-3-cli-tool
>
> *The problem:*
> The ignite 3 rest of clusters will usually be hided behind a load balancer, as result we aren't able to get a particular node metrics. In this task is required to develop an endpoint at your discretion that will extract metrics from all nodes by one call.  
> *Possible path at your wish:*
>  * /all-nodes/metrics
>  * {{/node/all/metrics}} - query all nodes (like {{all-nodes}} above)
>  * {{/node/12345678-1234-1234-1234-12345678/metrics}} - query that particular node even if we happen to connect to a different one{{{}{}}}
>  * {{/node/local/metrics}} - query the node we connected to
> *Please look at these examples of other databases:*
>  * [https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html]
>  * [https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#metrics]
>  * [https://micronaut-projects.github.io/micronaut-micrometer/latest/guide/]
>  * Etc.
> It would be good if we could add filters to get specific sets of metrics.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)