Re: Re[2]: Detecting checkpoints programmatically

2021-01-29 Thread Maxim Muzafarov
Hello Raymon,

Is it possible for your case writing a custom MetricExporterSpi [1]? So all
these checkpoint metrics [2] will be exported to your monitoring system.

It is also possible to get all metrics through the console [3].

[1]
https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/processors/metric/PushMetricsExporterAdapter.java
[2] https://issues.apache.org/jira/browse/IGNITE-13845
[3] https://issues.apache.org/jira/browse/IGNITE-13488

On Fri, 29 Jan 2021 at 09:15, Zhenya Stanilovsky  wrote:

> hi, check these links.
> [1] https://ignite.apache.org/docs/latest/monitoring-metrics/metrics
> [2]
> https://www.zylk.net/en/web-2-0/blog/-/blogs/kibana-dashboard-for-monitoring-liferay-jvm-via-jmx
>
>
>
> Hi Zhenya,
>
> It seems those events are not so useful as you suggest, [2]
> In the case of [1], how are these events accessible from a C# Ignite
> client?
>
> We don't currently use zabbix, but do use fluentd/kibana.
>
> Thanks,
> Raymond.
>
>
>
> On Fri, Jan 29, 2021 at 4:54 PM Zhenya Stanilovsky  > wrote:
>
>
> hi ! hope this would be helpful [1].
> Mentioned events is other one [2] = not useful for you.
> Also zabbix can parse the logs, you can obtain all cp info there.
>
> [1] https://issues.apache.org/jira/browse/IGNITE-13845
> [2]
> https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/spi/checkpoint/CheckpointSpi.html
>
>
>
> I want to make my system detect when a check point has occurred for
> monitoring and control purposes.
>
> I found the following events defined in the IA source:
>
> /**
>  * All checkpoint events. This array can be directly passed into
>  * {@link IgniteEvents#localListen(IgnitePredicate, int...)} method to
>  * subscribe to all checkpoint events.
>  *
>  * @see CheckpointEvent
>  */
> public static final int[] EVTS_CHECKPOINT = {
> EVT_CHECKPOINT_SAVED,
> EVT_CHECKPOINT_LOADED,
> EVT_CHECKPOINT_REMOVED
> };
>
> Are these the appropriate events to listen to?
>
> Thanks,
> Raymond.
>
> --
> 
> Raymond Wilson
> Solution Architect, Civil Construction Software Systems (CCSS)
> 11 Birmingham Drive | Christchurch, New Zealand
> raymond_wil...@trimble.com
> 
>
>
>
> 
>
>
>
>
>
>
>
>
> --
> 
> Raymond Wilson
> Solution Architect, Civil Construction Software Systems (CCSS)
> 11 Birmingham Drive | Christchurch, New Zealand
> raymond_wil...@trimble.com
> 
>
>
>
> 
>
>
>
>
>
>


Re[2]: Detecting checkpoints programmatically

2021-01-28 Thread Zhenya Stanilovsky

hi, check these links.
[1]  https://ignite.apache.org/docs/latest/monitoring-metrics/metrics
[2]  
https://www.zylk.net/en/web-2-0/blog/-/blogs/kibana-dashboard-for-monitoring-liferay-jvm-via-jmx
 
 
>Hi Zhenya,
> 
>It seems those events are not so useful as you suggest, [2]
>In the case of [1], how are these events accessible from a C# Ignite client?
> 
>We don't currently use zabbix, but do use fluentd/kibana.
> 
>Thanks,
>Raymond.
> 
>   
>On Fri, Jan 29, 2021 at 4:54 PM Zhenya Stanilovsky < arzamas...@mail.ru > 
>wrote:
>>
>>hi ! hope this would be helpful [1].
>>Mentioned events is other one [2] = not useful for you.
>>Also zabbix can parse the logs, you can obtain all cp info there.
>> 
>>[1]  https://issues.apache.org/jira/browse/IGNITE-13845
>>[2]  
>>https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/spi/checkpoint/CheckpointSpi.html
>>   
>>>I want to make my system detect when a check point has occurred for 
>>>monitoring and control purposes.
>>> 
>>>I found the following events defined in the IA source:
>>> 
>>>/**
>>> * All checkpoint events. This array can be directly passed into
>>> * { @link   IgniteEvents # localListen(IgnitePredicate, int...) } 
>>>method to
>>> * subscribe to all checkpoint events.
>>> *
>>> *  @see  CheckpointEvent
>>> */
>>> public   static   final   int []  EVTS_CHECKPOINT  = {
>>>EVT_CHECKPOINT_SAVED,
>>>EVT_CHECKPOINT_LOADED,
>>> EVT_CHECKPOINT_REMOVED
>>>};
>>> 
>>>Are these the appropriate events to listen to?
>>> 
>>>Thanks,
>>>Raymond.
>>>  --
>>>
>>>Raymond Wilson
>>>Solution Architect, Civil Construction Software Systems (CCSS)
>>>11 Birmingham Drive |  Christchurch, New Zealand
>>>raymond_wil...@trimble.com
>>>         
>>> 
>> 
>> 
>> 
>>  
> 
>  --
>
>Raymond Wilson
>Solution Architect, Civil Construction Software Systems (CCSS)
>11 Birmingham Drive |  Christchurch, New Zealand
>raymond_wil...@trimble.com
>         
> 
 
 
 
 

Re: Detecting checkpoints programmatically

2021-01-28 Thread Raymond Wilson
Hi Zhenya,

It seems those events are not so useful as you suggest, [2]
In the case of [1], how are these events accessible from a C# Ignite client?

We don't currently use zabbix, but do use fluentd/kibana.

Thanks,
Raymond.



On Fri, Jan 29, 2021 at 4:54 PM Zhenya Stanilovsky 
wrote:

>
> hi ! hope this would be helpful [1].
> Mentioned events is other one [2] = not useful for you.
> Also zabbix can parse the logs, you can obtain all cp info there.
>
> [1] https://issues.apache.org/jira/browse/IGNITE-13845
> [2]
> https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/spi/checkpoint/CheckpointSpi.html
>
>
> I want to make my system detect when a check point has occurred for
> monitoring and control purposes.
>
> I found the following events defined in the IA source:
>
> /**
>  * All checkpoint events. This array can be directly passed into
>  * {@link IgniteEvents#localListen(IgnitePredicate, int...)} method to
>  * subscribe to all checkpoint events.
>  *
>  * @see CheckpointEvent
>  */
> public static final int[] EVTS_CHECKPOINT = {
> EVT_CHECKPOINT_SAVED,
> EVT_CHECKPOINT_LOADED,
> EVT_CHECKPOINT_REMOVED
> };
>
> Are these the appropriate events to listen to?
>
> Thanks,
> Raymond.
>
> --
> 
> Raymond Wilson
> Solution Architect, Civil Construction Software Systems (CCSS)
> 11 Birmingham Drive | Christchurch, New Zealand
> raymond_wil...@trimble.com
> 
>
>
>
> 
>
>
>
>
>
>


-- 

Raymond Wilson
Solution Architect, Civil Construction Software Systems (CCSS)
11 Birmingham Drive | Christchurch, New Zealand
raymond_wil...@trimble.com




Re: Detecting checkpoints programmatically

2021-01-28 Thread Zhenya Stanilovsky


hi ! hope this would be helpful [1].
Mentioned events is other one [2] = not useful for you.
Also zabbix can parse the logs, you can obtain all cp info there.
 
[1]  https://issues.apache.org/jira/browse/IGNITE-13845
[2]  
https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/spi/checkpoint/CheckpointSpi.html
 
>I want to make my system detect when a check point has occurred for monitoring 
>and control purposes.
> 
>I found the following events defined in the IA source:
> 
>/**
> * All checkpoint events. This array can be directly passed into
> * { @link   IgniteEvents # localListen(IgnitePredicate, int...) } method 
>to
> * subscribe to all checkpoint events.
> *
> *  @see  CheckpointEvent
> */
> public   static   final   int []  EVTS_CHECKPOINT  = {
>EVT_CHECKPOINT_SAVED,
>EVT_CHECKPOINT_LOADED,
> EVT_CHECKPOINT_REMOVED
>};
> 
>Are these the appropriate events to listen to?
> 
>Thanks,
>Raymond.
>  --
>
>Raymond Wilson
>Solution Architect, Civil Construction Software Systems (CCSS)
>11 Birmingham Drive |  Christchurch, New Zealand
>raymond_wil...@trimble.com
>         
> 
 
 
 
 

Detecting checkpoints programmatically

2021-01-28 Thread Raymond Wilson
I want to make my system detect when a check point has occurred for
monitoring and control purposes.

I found the following events defined in the IA source:

/**
 * All checkpoint events. This array can be directly passed into
 * {@link IgniteEvents#localListen(IgnitePredicate, int...)} method to
 * subscribe to all checkpoint events.
 *
 * @see CheckpointEvent
 */
public static final int[] EVTS_CHECKPOINT = {
EVT_CHECKPOINT_SAVED,
EVT_CHECKPOINT_LOADED,
EVT_CHECKPOINT_REMOVED
};

Are these the appropriate events to listen to?

Thanks,
Raymond.

-- 

Raymond Wilson
Solution Architect, Civil Construction Software Systems (CCSS)
11 Birmingham Drive | Christchurch, New Zealand
raymond_wil...@trimble.com