com.netflix.servo.annotations.DataSourceType Java Examples
The following examples show how to use
com.netflix.servo.annotations.DataSourceType.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ZoneStats.java From ribbon with Apache License 2.0 | 5 votes |
@Monitor(name=PREFIX + "CircuitBreakerTrippedPercentage", type = DataSourceType.INFORMATIONAL) public double getCircuitBreakerTrippedPercentage() { ZoneSnapshot snapShot = loadBalancerStats.getZoneSnapshot(zone); int totalCount = snapShot.getInstanceCount(); int circuitTrippedCount = snapShot.getCircuitTrippedCount(); if (totalCount == 0) { if (circuitTrippedCount != 0) { return -1; } else { return 0; } } else { return snapShot.getCircuitTrippedCount() / ((double) totalCount); } }
Example #2
Source File: AvailabilityFilteringRule.java From ribbon with Apache License 2.0 | 5 votes |
@Monitor(name="AvailableServersCount", type = DataSourceType.GAUGE) public int getAvailableServersCount() { ILoadBalancer lb = getLoadBalancer(); List<Server> servers = lb.getAllServers(); if (servers == null) { return 0; } return Collections2.filter(servers, predicate.getServerOnlyPredicate()).size(); }
Example #3
Source File: LoadBalancerStats.java From ribbon with Apache License 2.0 | 5 votes |
@Monitor(name=PREFIX + "CircuitBreakerTrippedCount", type = DataSourceType.GAUGE) public int getCircuitBreakerTrippedCount() { int count = 0; for (String zone: upServerListZoneMap.keySet()) { count += getCircuitBreakerTrippedCount(zone); } return count; }
Example #4
Source File: ServoMaxGauge.java From spectator with Apache License 2.0 | 5 votes |
/** * Create a new monitor that returns {@code value}. */ ServoMaxGauge(Id id, Clock clock, MonitorConfig config) { super(config.withAdditionalTag(DataSourceType.GAUGE)); this.id = id; this.clock = clock; this.impl = new MaxGauge(config); this.lastUpdated = new AtomicLong(clock.wallTime()); }
Example #5
Source File: DynamicServerListLoadBalancer.java From ribbon with Apache License 2.0 | 4 votes |
@Monitor(name="LastUpdated", type=DataSourceType.INFORMATIONAL) public String getLastUpdate() { return serverListUpdater.getLastUpdate(); }
Example #6
Source File: OsStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "swap_used_in_bytes", type = DataSourceType.GAUGE) public long getSwapUsedInBytes() { return osStatsBean.get().swapUsedInBytes; }
Example #7
Source File: NodeIndicesStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "search_fetch_delta", type = DataSourceType.GAUGE) public long getSearchFetchDelta() { return nodeIndicesStatsBean.get().searchFetchDelta; }
Example #8
Source File: ProcessStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "cpu_timestamp", type = DataSourceType.GAUGE) public long getCpuTimestamp() { return processStatsBean.get().cpuTimestamp; }
Example #9
Source File: ThreadPoolStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "getRejected", type = DataSourceType.COUNTER) public long getGetRejected() { return threadPoolBean.get().getRejected; }
Example #10
Source File: ThreadPoolStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "searchLargest", type = DataSourceType.GAUGE) public long getSearchLargest() { return threadPoolBean.get().searchLargest; }
Example #11
Source File: ServerStats.java From ribbon with Apache License 2.0 | 4 votes |
@Monitor(name="SuccessiveConnectionFailureCount", type = DataSourceType.GAUGE) public int getSuccessiveConnectionFailureCount() { return successiveConnectionFailureCount.get(); }
Example #12
Source File: NodeIndicesStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "exists_avg_time_in_millis_per_request", type = DataSourceType.GAUGE) public double getExistsAvgTimeInMillisPerRequest() { return nodeIndicesStatsBean.get().getExistsAvgTimeInMillisPerRequest; }
Example #13
Source File: OsStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "uptime_in_millis", type = DataSourceType.GAUGE) public double getUptimeInMillis() { return osStatsBean.get().uptimeInMillis; }
Example #14
Source File: JvmStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "old_last_gc_start_time", type = DataSourceType.GAUGE) public long getOldLastGcStartTime() { return jvmStatsBean.get().oldLastGcStartTime; }
Example #15
Source File: NodeIndicesStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "get_exists_delta", type = DataSourceType.GAUGE) public long getGetExistsDelta() { return nodeIndicesStatsBean.get().getExistsDelta; }
Example #16
Source File: TransportStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "rx_count", type = DataSourceType.GAUGE) public long getRxCount() { return transportStatsBean.get().rxCount; }
Example #17
Source File: OsStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "actual_free_in_bytes", type = DataSourceType.GAUGE) public long getActualFreeInBytes() { return osStatsBean.get().actualFreeInBytes; }
Example #18
Source File: JvmStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "old_last_gc_end_time", type = DataSourceType.GAUGE) public long getOldLastGcEndTime() { return jvmStatsBean.get().oldLastGcEndTime; }
Example #19
Source File: ServerStats.java From ribbon with Apache License 2.0 | 4 votes |
/** * Gets the 25-th percentile in the total amount of time spent handling a request, in milliseconds. */ @Monitor(name = "ResponseTimeMillis25Percentile", type = DataSourceType.INFORMATIONAL, description = "25th percentile in total time to handle a request, in milliseconds") public double getResponseTime25thPercentile() { return getResponseTimePercentile(Percent.TWENTY_FIVE); }
Example #20
Source File: JvmStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "old_peak_max_in_bytes", type = DataSourceType.GAUGE) public long getOldPeakMaxInBytes() { return jvmStatsBean.get().oldPeakMaxInBytes; }
Example #21
Source File: JvmStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "old_peak_used_in_bytes", type = DataSourceType.GAUGE) public long getOldPeakUsedInBytes() { return jvmStatsBean.get().oldPeakUsedInBytes; }
Example #22
Source File: JvmStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "old_max_in_bytes", type = DataSourceType.GAUGE) public long getOldMaxInBytes() { return jvmStatsBean.get().oldMaxInBytes; }
Example #23
Source File: ZoneStats.java From ribbon with Apache License 2.0 | 4 votes |
@Monitor(name=PREFIX + "InstanceCount", type = DataSourceType.GAUGE) public int getInstanceCount() { return loadBalancerStats.getInstanceCount(zone); }
Example #24
Source File: NFHttpClient.java From ribbon with Apache License 2.0 | 4 votes |
@Monitor(name = "HttpClient-ConnPoolCleaner", type = DataSourceType.INFORMATIONAL) public ConnectionPoolCleaner getConnPoolCleaner() { return connPoolCleaner; }
Example #25
Source File: ServerStats.java From ribbon with Apache License 2.0 | 4 votes |
/** * Gets the 98-th percentile in the total amount of time spent handling a request, in milliseconds. */ @Monitor(name = "ResponseTimeMillis98Percentile", type = DataSourceType.INFORMATIONAL, description = "98th percentile in total time to handle a request, in milliseconds") public double getResponseTime98thPercentile() { return getResponseTimePercentile(Percent.NINETY_EIGHT); }
Example #26
Source File: ServerStats.java From ribbon with Apache License 2.0 | 4 votes |
/** * Gets the 90-th percentile in the total amount of time spent handling a request, in milliseconds. */ @Monitor(name = "ResponseTimeMillis90Percentile", type = DataSourceType.INFORMATIONAL, description = "90th percentile in total time to handle a request, in milliseconds") public double getResponseTime90thPercentile() { return getResponseTimePercentile(Percent.NINETY); }
Example #27
Source File: ThreadPoolStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "IndexQueue", type = DataSourceType.GAUGE) public long getIndexQueue() { return threadPoolBean.get().indexQueue; }
Example #28
Source File: NodeIndicesStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "refresh_total", type = DataSourceType.COUNTER) public long getRefreshTotal() { return nodeIndicesStatsBean.get().refreshTotal; }
Example #29
Source File: JvmStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "young_peak_used_in_bytes", type = DataSourceType.GAUGE) public long getYoungPeakUsedInBytes() { return jvmStatsBean.get().youngPeakUsedInBytes; }
Example #30
Source File: JvmStatsMonitor.java From Raigad with Apache License 2.0 | 4 votes |
@Monitor(name = "young_max_in_bytes", type = DataSourceType.GAUGE) public long getYoungMaxInBytes() { return jvmStatsBean.get().youngMaxInBytes; }