DMS Spy Notification Framework

The Oracle Dynamic Monitoring Service (DMS) measures and reports metrics, trace events and system performance and provides a context correlation service for these components.

DMS enables Oracle Fusion Middleware components to provide administration tools, such as Oracle Enterprise Manager, with data regarding the component’s performance, state and on-going behavior. Fusion Middleware Components push data to DMS and in turn DMS publishes that data through a range of different components.

DMS metrics can be viewed by using “DMS Spy” Servlet page.

Developed framework notify users when the selected DMS resources exited defined thresholds inside defined period of time. It has a broader context visibility than traditional WLDF approach by showing entire metric table view and not just required attribute value. Also, some of the aggregated metrics is not visible in WLDF.
By parallel fetching across monitored servers we can achieve synchronized snapshot of the monitored resources, which is not possible through WLDF (because each server starts their own harvesting independently).

It is fast, information richly and no additional cost solution for every Oracle project.

DMSFramework

Technology behind:

  • Apache HttpClient
    – provides reusable components for client-side authentication
    – execute multiple requests simultaneously
  • jsoup Java HTML Parser
    – provides API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods

Excerpt from code:

String[] urisToGet = {
            //FORMS
           
http://host1:7001/dms/index.html?format=metrictable&cache=false&prefetch=false&table=oracle_forms:application&orderby=instname.value,
           
http://host1:7001/dms/index.html?format=metrictable&cache=false&prefetch=false&table=oracle_forms:aggr_FormsResourceUsage&orderby=instname.value,
           
http://host1:7001/dms/index.html?format=metrictable&cache=false&prefetch=false&table=oracle_forms:servlet_rollup&orderby=instname.value,
            //OHS
           
http://host1:7001/dms/index.html?format=metrictable&cache=false&prefetch=false&table=ohs:ohs_server&orderby=Name
        };

Object[][] params = {
            new Object[]{
                new Object[]{“Forms”, “Critical”, “state”, “<>”, “2”, null, null},
                new Object[]{“Forms”, “Warning”, “numSessions”, “>=”, “100”, null, null}
            },
            new Object[]{
                new Object[]{“Forms”, “Warning”, “cpu.component”, “>=”, “50”, null, null},
                new Object[]{“Forms”, “Warning”, “memoryPercent.component”, “>=”, “50”, null, null}
            },
            new Object[]{
                new Object[]{“Forms”, “Info”, “service.averageTime”, “>=”, “2000”, null, null},
                new Object[]{“Forms”, “Info”, “service.time”, “>=”, “5000”, null, null},
                new Object[]{“Forms”, “Warning”, “service.throughput”, “<=”, “50”, “09:00”, “15:00”}
            },
 
            new Object[]{
                new Object[]{“OHS”, “Warning=85,Critical=90”, “busyProcesses.currentPercentage”, “>=”, “85”, null, null},
                new Object[]{“OHS”, “Warning=135,Critical=140”, “connection.active”, “>=”, “135”, null, null},
                new Object[]{“OHS”, “Warning=1,Critical=1.5”, “error.rate”, “>=”, “1”, null, null},
                new Object[]{“OHS”, “Warning=135,Critical=140”, “request.active”, “>=”, “135”, null, null}
            }

Oglasi
Ovaj unos je objavljen u Nekategorizirano. Bookmarkirajte stalnu vezu.

Komentiraj

Popunite niže tražene podatke ili kliknite na neku od ikona za prijavu:

WordPress.com Logo

Ovaj komentar pišete koristeći vaš WordPress.com račun. Odjava / Izmijeni )

Twitter picture

Ovaj komentar pišete koristeći vaš Twitter račun. Odjava / Izmijeni )

Facebook slika

Ovaj komentar pišete koristeći vaš Facebook račun. Odjava / Izmijeni )

Google+ photo

Ovaj komentar pišete koristeći vaš Google+ račun. Odjava / Izmijeni )

Spajanje na %s