From 9bbdf549907bba567536b4a5b2af75b0bf97057e Mon Sep 17 00:00:00 2001 From: Lucas Ponce Date: Tue, 5 Dec 2017 11:17:12 +0100 Subject: [PATCH] Remove time constants on p8s specs --- lib/hawkular/prometheus/prometheus_api.rb | 6 + spec/integration/prometheus_spec.rb | 84 +++++----- .../Should_fetch_a_metrics_instant.yml | 129 ++++++++++++++- .../Should_fetch_a_metrics_range.yml | 147 ++++++++++++++++-- .../Templates/Should_fetch_up_time.yml | 131 +++++++++++++++- 5 files changed, 435 insertions(+), 62 deletions(-) diff --git a/lib/hawkular/prometheus/prometheus_api.rb b/lib/hawkular/prometheus/prometheus_api.rb index 92e6aa1..0f06cd3 100644 --- a/lib/hawkular/prometheus/prometheus_api.rb +++ b/lib/hawkular/prometheus/prometheus_api.rb @@ -17,6 +17,8 @@ def prometheus_entrypoint # Interface to talk with the Prometheus server used for Middleware Manager # @param entrypoint [String] base url of Hawkular Services class Client < Hawkular::BaseClient + attr_reader :entrypoint + def initialize(entrypoint, credentials = {}, options = {}) prometheus_entrypoint = Alerter.new(entrypoint, credentials, options).prometheus_entrypoint @entrypoint = normalize_entrypoint_url prometheus_entrypoint, 'api/v1' @@ -56,5 +58,9 @@ def up_time(feed_id: nil, starts: nil, ends: nil, step: nil) response['data']['result'].first['values'] end end + + def ping + http_get '/query?query=up' + end end end diff --git a/spec/integration/prometheus_spec.rb b/spec/integration/prometheus_spec.rb index 94015bb..2c775eb 100644 --- a/spec/integration/prometheus_spec.rb +++ b/spec/integration/prometheus_spec.rb @@ -3,7 +3,10 @@ module Hawkular::Prometheus::RSpec HAWKULAR_BASE = 'http://localhost:8080/' - creds = {} + creds = { + username: 'jdoe', + password: 'password' + } options = {} describe 'Prometheus/Queries' do @@ -12,60 +15,71 @@ module Hawkular::Prometheus::RSpec description end - around(:each) do |example| - record('Prometheus/Queries', credentials, cassette_name, example: example) + let(:inventory_client) do + Hawkular::Inventory::Client.new(HAWKULAR_BASE, creds, options) + end + + let(:prometheus_client) do + Hawkular::Prometheus::Client.new(HAWKULAR_BASE, creds, options) end - before(:each) do - @client = Hawkular::Prometheus::Client.new(HAWKULAR_BASE, creds, options) + around(:each) do |example| + record('Prometheus/Queries', credentials, cassette_name, example: example) end it 'Should fetch a metrics range' do - metrics = [{ 'displayName' => 'Heap Used', - 'family' => 'jvm_memory_bytes_used', - 'unit' => 'BYTES', - 'expression' => 'jvm_memory_bytes_used{area="heap",feed_id="attilan"}', - 'labels' => { area: 'heap', feed_id: 'attilan' } }, - { 'displayName' => 'NonHeap Used', - 'family' => 'jvm_memory_bytes_used', - 'unit' => 'BYTES', - 'expression' => 'jvm_memory_bytes_used{area="nonheap",feed_id="attilan"}', - 'labels' => { area: 'nonheap', feed_id: 'attilan' } }] - - results = @client.query_range(metrics: metrics, - starts: '2017-11-28T10:00:00Z', - ends: '2017-11-28T11:00:00Z', - step: '5s') + metrics = inventory_client + .resources_for_type('WildFly Server WF10') + .first + .metrics + .select { |metric| ['Heap Used', 'NonHeap Used'].include?(metric.name) } + .map(&:to_h) + + now = '2017-11-05T11:25:00Z' + before = '2017-11-05T11:20:00Z' + + results = prometheus_client.query_range(metrics: metrics, + starts: before, + ends: now, + step: '5s') first = results.first second = results.last expect(first['metric']['displayName']).to eq 'Heap Used' - expect(first['values'].size).to be > 0 expect(second['metric']['displayName']).to eq 'NonHeap Used' - expect(second['values'].size).to be > 0 end it 'Should fetch up time' do - results = @client.up_time(feed_id: 'attilan', - starts: '2017-11-28T10:00:00Z', - ends: '2017-11-28T15:00:00Z', - step: '60m') - expect(results.size).to be > 0 + feed_id = inventory_client + .resources_for_type('WildFly Server WF10') + .first + .feed + + now = '2017-11-05T11:25:00Z' + before = '2017-11-05T11:20:00Z' + + results = prometheus_client.up_time(feed_id: feed_id, + starts: before, + ends: now, + step: '5s') + expect(results).to be_truthy end it 'Should fetch a metrics instant' do - metrics = [{ 'displayName' => 'Server Availability', - 'family' => 'wildfly_server_availability', - 'unit' => 'AVAILABILITY', - 'expression' => 'wildfly_server_availability{feed_id="attilan"}', - 'labels' => { feed_id: 'attilan' } }] + metrics = inventory_client + .resources_for_type('WildFly Server WF10') + .first + .metrics + .select { |metric| ['Server Availability'].include?(metric.name) } + .map(&:to_h) + + now = '2017-11-05T11:25:00Z' - results = @client.query(metrics: metrics, - time: '2017-11-28T10:00:00Z') + results = prometheus_client.query(metrics: metrics, + time: now) first = results.first expect(first['metric']['displayName']).to eq 'Server Availability' - expect(first['value'].size).to be > 0 end end end diff --git a/spec/vcr_cassettes/Prometheus/Queries/Templates/Should_fetch_a_metrics_instant.yml b/spec/vcr_cassettes/Prometheus/Queries/Templates/Should_fetch_a_metrics_instant.yml index a0ddcfa..763d623 100644 --- a/spec/vcr_cassettes/Prometheus/Queries/Templates/Should_fetch_a_metrics_instant.yml +++ b/spec/vcr_cassettes/Prometheus/Queries/Templates/Should_fetch_a_metrics_instant.yml @@ -1,5 +1,118 @@ --- http_interactions: +- request: + method: get + uri: http://localhost:8080/hawkular/inventory/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Content-Type: + - application/json + Host: + - localhost:8080 + Authorization: + - Basic amRvZTpwYXNzd29yZA== + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '173' + Date: + - Tue, 05 Dec 2017 13:22:50 GMT + body: + encoding: UTF-8 + string: '{"Implementation-Version":"1.0.0.Final-SRC-revision-d27e8a223a015e4f878c2695626bd851ce559925","Built-From-Git-SHA1":"d27e8a223a015e4f878c2695626bd851ce559925","status":"UP"}' + http_version: + recorded_at: Tue, 05 Dec 2017 13:22:50 GMT +- request: + method: get + uri: http://localhost:8080/hawkular/inventory/resources?maxResults=100&startOffSet=0&typeId=WildFly%20Server%20WF10 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Content-Type: + - application/json + Host: + - localhost:8080 + Authorization: + - Basic amRvZTpwYXNzd29yZA== + response: + status: + code: 200 + message: OK + headers: + Expires: + - '0' + Cache-Control: + - no-cache, no-store, must-revalidate + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Pragma: + - no-cache + Date: + - Tue, 05 Dec 2017 13:22:50 GMT + Connection: + - keep-alive + Content-Type: + - application/json + Content-Length: + - '4996' + body: + encoding: UTF-8 + string: '{"results":[{"id":"attilan~Local~~","name":"Local","feedId":"attilan","type":{"id":"WildFly + Server WF10","operations":[{"name":"JDR","parameters":{}},{"name":"Reload","parameters":{"admin-only":{"defaultValue":"false","description":"Whether + the server should start in running mode ADMIN_ONLY when it restarts","type":"bool"},"use-current-server-config":{"defaultValue":"false","description":null,"type":"bool"}}},{"name":"Resume","parameters":{}},{"name":"Shutdown","parameters":{"restart":{"defaultValue":"false","description":"Should + the server be restarted after shutdown?","type":"bool"},"timeout":{"defaultValue":"0","description":"Timeout + in seconds to allow active connections to drain","type":"int"}}},{"name":"Suspend","parameters":{"timeout":{"defaultValue":"0","description":"Timeout + in seconds to allow active connections to drain","type":"int"}}},{"name":"Deploy","parameters":{}},{"name":"Undeploy","parameters":{}},{"name":"Enable + Deployment","parameters":{}},{"name":"Disable Deployment","parameters":{}},{"name":"Restart + Deployment","parameters":{}}],"properties":{}},"parentId":null,"metrics":[{"displayName":"NonHeap + Max","family":"jvm_memory_bytes_max","unit":"BYTES","expression":"jvm_memory_bytes_max{area=\"nonheap\",feed_id=\"attilan\"}","labels":{"area":"nonheap","feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Servlet Request Time","family":"wildfly_servlet_total_request_time","unit":"NONE","expression":"sum(wildfly_servlet_total_request_time{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Expired Web Sessions","family":"wildfly_deployment_expired_sessions","unit":"NONE","expression":"sum(wildfly_deployment_expired_sessions{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"NonHeap + Committed","family":"jvm_memory_bytes_committed","unit":"BYTES","expression":"jvm_memory_bytes_committed{area=\"nonheap\",feed_id=\"attilan\"}","labels":{"area":"nonheap","feed_id":"attilan"},"properties":{}},{"displayName":"Heap + Max","family":"jvm_memory_bytes_max","unit":"BYTES","expression":"jvm_memory_bytes_max{area=\"heap\",feed_id=\"attilan\"}","labels":{"area":"heap","feed_id":"attilan"},"properties":{}},{"displayName":"Heap + Used","family":"jvm_memory_bytes_used","unit":"BYTES","expression":"jvm_memory_bytes_used{area=\"heap\",feed_id=\"attilan\"}","labels":{"area":"heap","feed_id":"attilan"},"properties":{}},{"displayName":"Accumulated + GC Duration","family":"jvm_gc_collection_seconds_sum","unit":"SECONDS","expression":"sum(jvm_gc_collection_seconds_sum{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Max Active Web Sessions","family":"wildfly_deployment_max_active_sessions","unit":"NONE","expression":"sum(wildfly_deployment_max_active_sessions{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Server + Availability","family":"wildfly_server_availability","unit":"NONE","expression":"wildfly_server_availability{feed_id=\"attilan\"}","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"up","family":"up","unit":"NONE","expression":"up{feed_id=\"attilan\"}","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Active Web Sessions","family":"wildfly_deployment_active_sessions","unit":"NONE","expression":"sum(wildfly_deployment_active_sessions{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"NonHeap + Used","family":"jvm_memory_bytes_used","unit":"BYTES","expression":"jvm_memory_bytes_used{area=\"nonheap\",feed_id=\"attilan\"}","labels":{"area":"nonheap","feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Servlet Request Count","family":"wildfly_servlet_request_count","unit":"NONE","expression":"sum(wildfly_servlet_request_count{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Rejected Web Sessions","family":"wildfly_deployment_rejected_sessions","unit":"NONE","expression":"sum(wildfly_deployment_rejected_sessions{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Heap + Committed","family":"jvm_memory_bytes_committed","unit":"BYTES","expression":"jvm_memory_bytes_committed{area=\"heap\",feed_id=\"attilan\"}","labels":{"area":"heap","feed_id":"attilan"},"properties":{}},{"displayName":"Thread + Count","family":"jvm_threads_current","unit":"NONE","expression":"jvm_threads_current{feed_id=\"attilan\"}","labels":{"feed_id":"attilan"},"properties":{}}],"properties":{},"config":{"Suspend + State":"RUNNING","Bound Address":"127.0.0.1","Running Mode":"NORMAL","Home + Directory":"/home/lponce/git/hawkular-services/dist/target/hawkular-services-dist-1.0.0.Final-SNAPSHOT","Version":"1.0.0.Final-SNAPSHOT","Node + Name":"attilan","Server State":"running","Product Name":"Hawkular","Hostname":"attilan","UUID":"b9e67075-9186-4dee-95fe-b9a8068c27fc","Name":"attilan"}}],"resultSize":1,"startOffset":0}' + http_version: + recorded_at: Tue, 05 Dec 2017 13:22:50 GMT - request: method: get uri: http://localhost:8080/hawkular/alerter/prometheus/endpoint @@ -15,6 +128,8 @@ http_interactions: - hawkular-client-ruby Host: - localhost:8080 + Authorization: + - Basic amRvZTpwYXNzd29yZA== response: status: code: 200 @@ -31,15 +146,15 @@ http_interactions: Content-Length: - '21' Date: - - Tue, 28 Nov 2017 10:51:11 GMT + - Tue, 05 Dec 2017 13:22:50 GMT body: encoding: UTF-8 string: http://localhost:9090 http_version: - recorded_at: Tue, 28 Nov 2017 10:51:11 GMT + recorded_at: Tue, 05 Dec 2017 13:22:50 GMT - request: method: get - uri: http://localhost:9090/api/v1/query?query=wildfly_server_availability%7Bfeed_id=%22attilan%22%7D&start=2017-11-28T10:00:00Z + uri: http://localhost:9090/api/v1/query?query=wildfly_server_availability%7Bfeed_id=%22attilan%22%7D&start=2017-11-05T11:25:00Z body: encoding: US-ASCII string: '' @@ -54,6 +169,8 @@ http_interactions: - application/json Host: - localhost:9090 + Authorization: + - Basic amRvZTpwYXNzd29yZA== response: status: code: 200 @@ -70,12 +187,12 @@ http_interactions: Content-Type: - application/json Date: - - Tue, 28 Nov 2017 10:51:11 GMT + - Tue, 05 Dec 2017 13:22:50 GMT Content-Length: - '210' body: encoding: UTF-8 - string: '{"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"wildfly_server_availability","feed_id":"attilan","instance":"127.0.0.1:9779","job":"hawkular"},"value":[1511866271.401,"1"]}]}}' + string: '{"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"wildfly_server_availability","feed_id":"attilan","instance":"127.0.0.1:9779","job":"hawkular"},"value":[1512480170.122,"1"]}]}}' http_version: - recorded_at: Tue, 28 Nov 2017 10:51:11 GMT + recorded_at: Tue, 05 Dec 2017 13:22:50 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Prometheus/Queries/Templates/Should_fetch_a_metrics_range.yml b/spec/vcr_cassettes/Prometheus/Queries/Templates/Should_fetch_a_metrics_range.yml index bba1070..ba8d144 100644 --- a/spec/vcr_cassettes/Prometheus/Queries/Templates/Should_fetch_a_metrics_range.yml +++ b/spec/vcr_cassettes/Prometheus/Queries/Templates/Should_fetch_a_metrics_range.yml @@ -1,5 +1,118 @@ --- http_interactions: +- request: + method: get + uri: http://localhost:8080/hawkular/inventory/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Content-Type: + - application/json + Host: + - localhost:8080 + Authorization: + - Basic amRvZTpwYXNzd29yZA== + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '173' + Date: + - Tue, 05 Dec 2017 13:22:49 GMT + body: + encoding: UTF-8 + string: '{"Implementation-Version":"1.0.0.Final-SRC-revision-d27e8a223a015e4f878c2695626bd851ce559925","Built-From-Git-SHA1":"d27e8a223a015e4f878c2695626bd851ce559925","status":"UP"}' + http_version: + recorded_at: Tue, 05 Dec 2017 13:22:49 GMT +- request: + method: get + uri: http://localhost:8080/hawkular/inventory/resources?maxResults=100&startOffSet=0&typeId=WildFly%20Server%20WF10 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Content-Type: + - application/json + Host: + - localhost:8080 + Authorization: + - Basic amRvZTpwYXNzd29yZA== + response: + status: + code: 200 + message: OK + headers: + Expires: + - '0' + Cache-Control: + - no-cache, no-store, must-revalidate + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Pragma: + - no-cache + Date: + - Tue, 05 Dec 2017 13:22:49 GMT + Connection: + - keep-alive + Content-Type: + - application/json + Content-Length: + - '4996' + body: + encoding: UTF-8 + string: '{"results":[{"id":"attilan~Local~~","name":"Local","feedId":"attilan","type":{"id":"WildFly + Server WF10","operations":[{"name":"JDR","parameters":{}},{"name":"Reload","parameters":{"admin-only":{"defaultValue":"false","description":"Whether + the server should start in running mode ADMIN_ONLY when it restarts","type":"bool"},"use-current-server-config":{"defaultValue":"false","description":null,"type":"bool"}}},{"name":"Resume","parameters":{}},{"name":"Shutdown","parameters":{"restart":{"defaultValue":"false","description":"Should + the server be restarted after shutdown?","type":"bool"},"timeout":{"defaultValue":"0","description":"Timeout + in seconds to allow active connections to drain","type":"int"}}},{"name":"Suspend","parameters":{"timeout":{"defaultValue":"0","description":"Timeout + in seconds to allow active connections to drain","type":"int"}}},{"name":"Deploy","parameters":{}},{"name":"Undeploy","parameters":{}},{"name":"Enable + Deployment","parameters":{}},{"name":"Disable Deployment","parameters":{}},{"name":"Restart + Deployment","parameters":{}}],"properties":{}},"parentId":null,"metrics":[{"displayName":"NonHeap + Max","family":"jvm_memory_bytes_max","unit":"BYTES","expression":"jvm_memory_bytes_max{area=\"nonheap\",feed_id=\"attilan\"}","labels":{"area":"nonheap","feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Servlet Request Time","family":"wildfly_servlet_total_request_time","unit":"NONE","expression":"sum(wildfly_servlet_total_request_time{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Expired Web Sessions","family":"wildfly_deployment_expired_sessions","unit":"NONE","expression":"sum(wildfly_deployment_expired_sessions{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"NonHeap + Committed","family":"jvm_memory_bytes_committed","unit":"BYTES","expression":"jvm_memory_bytes_committed{area=\"nonheap\",feed_id=\"attilan\"}","labels":{"area":"nonheap","feed_id":"attilan"},"properties":{}},{"displayName":"Heap + Max","family":"jvm_memory_bytes_max","unit":"BYTES","expression":"jvm_memory_bytes_max{area=\"heap\",feed_id=\"attilan\"}","labels":{"area":"heap","feed_id":"attilan"},"properties":{}},{"displayName":"Heap + Used","family":"jvm_memory_bytes_used","unit":"BYTES","expression":"jvm_memory_bytes_used{area=\"heap\",feed_id=\"attilan\"}","labels":{"area":"heap","feed_id":"attilan"},"properties":{}},{"displayName":"Accumulated + GC Duration","family":"jvm_gc_collection_seconds_sum","unit":"SECONDS","expression":"sum(jvm_gc_collection_seconds_sum{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Max Active Web Sessions","family":"wildfly_deployment_max_active_sessions","unit":"NONE","expression":"sum(wildfly_deployment_max_active_sessions{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Server + Availability","family":"wildfly_server_availability","unit":"NONE","expression":"wildfly_server_availability{feed_id=\"attilan\"}","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"up","family":"up","unit":"NONE","expression":"up{feed_id=\"attilan\"}","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Active Web Sessions","family":"wildfly_deployment_active_sessions","unit":"NONE","expression":"sum(wildfly_deployment_active_sessions{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"NonHeap + Used","family":"jvm_memory_bytes_used","unit":"BYTES","expression":"jvm_memory_bytes_used{area=\"nonheap\",feed_id=\"attilan\"}","labels":{"area":"nonheap","feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Servlet Request Count","family":"wildfly_servlet_request_count","unit":"NONE","expression":"sum(wildfly_servlet_request_count{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Rejected Web Sessions","family":"wildfly_deployment_rejected_sessions","unit":"NONE","expression":"sum(wildfly_deployment_rejected_sessions{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Heap + Committed","family":"jvm_memory_bytes_committed","unit":"BYTES","expression":"jvm_memory_bytes_committed{area=\"heap\",feed_id=\"attilan\"}","labels":{"area":"heap","feed_id":"attilan"},"properties":{}},{"displayName":"Thread + Count","family":"jvm_threads_current","unit":"NONE","expression":"jvm_threads_current{feed_id=\"attilan\"}","labels":{"feed_id":"attilan"},"properties":{}}],"properties":{},"config":{"Suspend + State":"RUNNING","Bound Address":"127.0.0.1","Running Mode":"NORMAL","Home + Directory":"/home/lponce/git/hawkular-services/dist/target/hawkular-services-dist-1.0.0.Final-SNAPSHOT","Version":"1.0.0.Final-SNAPSHOT","Node + Name":"attilan","Server State":"running","Product Name":"Hawkular","Hostname":"attilan","UUID":"b9e67075-9186-4dee-95fe-b9a8068c27fc","Name":"attilan"}}],"resultSize":1,"startOffset":0}' + http_version: + recorded_at: Tue, 05 Dec 2017 13:22:49 GMT - request: method: get uri: http://localhost:8080/hawkular/alerter/prometheus/endpoint @@ -15,6 +128,8 @@ http_interactions: - hawkular-client-ruby Host: - localhost:8080 + Authorization: + - Basic amRvZTpwYXNzd29yZA== response: status: code: 200 @@ -31,15 +146,15 @@ http_interactions: Content-Length: - '21' Date: - - Tue, 28 Nov 2017 10:51:11 GMT + - Tue, 05 Dec 2017 13:22:49 GMT body: encoding: UTF-8 string: http://localhost:9090 http_version: - recorded_at: Tue, 28 Nov 2017 10:51:11 GMT + recorded_at: Tue, 05 Dec 2017 13:22:50 GMT - request: method: get - uri: http://localhost:9090/api/v1/query_range?end=2017-11-28T11:00:00Z&query=jvm_memory_bytes_used%7Barea=%22heap%22,feed_id=%22attilan%22%7D&start=2017-11-28T10:00:00Z&step=5s + uri: http://localhost:9090/api/v1/query_range?end=2017-11-05T11:25:00Z&query=jvm_memory_bytes_used%7Barea=%22heap%22,feed_id=%22attilan%22%7D&start=2017-11-05T11:20:00Z&step=5s body: encoding: US-ASCII string: '' @@ -54,6 +169,8 @@ http_interactions: - application/json Host: - localhost:9090 + Authorization: + - Basic amRvZTpwYXNzd29yZA== response: status: code: 200 @@ -70,17 +187,17 @@ http_interactions: Content-Type: - application/json Date: - - Tue, 28 Nov 2017 10:51:11 GMT - Transfer-Encoding: - - chunked + - Tue, 05 Dec 2017 13:22:50 GMT + Content-Length: + - '63' body: encoding: UTF-8 - string: '{"status":"success","data":{"resultType":"matrix","result":[{"metric":{"__name__":"jvm_memory_bytes_used","area":"heap","feed_id":"attilan","instance":"127.0.0.1:9779","job":"hawkular"},"values":[[1511863200,"360162712"],[1511863205,"360162712"],[1511863210,"360162712"],[1511863215,"272895024"],[1511863220,"272895024"],[1511863225,"272895024"],[1511863230,"363801512"],[1511863235,"363801512"],[1511863240,"363801512"],[1511863245,"310750160"],[1511863250,"310750160"],[1511863255,"310750160"],[1511863260,"227688184"],[1511863265,"227688184"],[1511863270,"227688184"],[1511863275,"329037912"],[1511863280,"329037912"],[1511863285,"329037912"],[1511863290,"245803080"],[1511863295,"245803080"],[1511863300,"245803080"],[1511863305,"337142608"],[1511863310,"337142608"],[1511863315,"337142608"],[1511863320,"255321048"],[1511863325,"255321048"],[1511863330,"255321048"],[1511863335,"344832848"],[1511863340,"344832848"],[1511863345,"344832848"],[1511863350,"260862424"],[1511863355,"260862424"],[1511863360,"260862424"],[1511863365,"352117944"],[1511863370,"352117944"],[1511863375,"352117944"],[1511863380,"267143520"],[1511863385,"267143520"],[1511863390,"267143520"],[1511863395,"358506968"],[1511863400,"358506968"],[1511863405,"358506968"],[1511863410,"270676440"],[1511863415,"270676440"],[1511863420,"270676440"],[1511863425,"361918816"],[1511863430,"361918816"],[1511863435,"361918816"],[1511863440,"276437176"],[1511863445,"276437176"],[1511863450,"276437176"],[1511863455,"365212464"],[1511863460,"365212464"],[1511863465,"365212464"],[1511863470,"276635056"],[1511863475,"276635056"],[1511863480,"276635056"],[1511863485,"365633512"],[1511863490,"365633512"],[1511863495,"365633512"],[1511863500,"276832168"],[1511863505,"276832168"],[1511863510,"276832168"],[1511863515,"365688120"],[1511863520,"365688120"],[1511863525,"365688120"],[1511863530,"276913896"],[1511863535,"276913896"],[1511863540,"276913896"],[1511863545,"368258256"],[1511863550,"368258256"],[1511863555,"368258256"],[1511863560,"280182544"],[1511863565,"280182544"],[1511863570,"280182544"],[1511863575,"370822448"],[1511863580,"370822448"],[1511863585,"370822448"],[1511863590,"280218112"],[1511863595,"280218112"],[1511863600,"280218112"],[1511863605,"370970144"],[1511863610,"370970144"],[1511863615,"370970144"],[1511863620,"280385776"],[1511863625,"280385776"],[1511863630,"280385776"],[1511863635,"369987584"],[1511863640,"369987584"],[1511863645,"369987584"],[1511863650,"280324840"],[1511863655,"280324840"],[1511863660,"280324840"],[1511863665,"369731168"],[1511863670,"369731168"],[1511863675,"369731168"],[1511863680,"283348040"],[1511863685,"283348040"],[1511863690,"283348040"],[1511863695,"371555152"],[1511863700,"371555152"],[1511863705,"371555152"],[1511863710,"283369656"],[1511863715,"283369656"],[1511863720,"283369656"],[1511863725,"392896360"],[1511863730,"392896360"],[1511863735,"392896360"],[1511863740,"304353824"],[1511863745,"304353824"],[1511863750,"304353824"],[1511863755,"392566584"],[1511863760,"392566584"],[1511863765,"392566584"],[1511863770,"316075432"],[1511863775,"316075432"],[1511863780,"316075432"],[1511863785,"231383400"],[1511863790,"231383400"],[1511863795,"231383400"],[1511863800,"321246576"],[1511863805,"321246576"],[1511863810,"321246576"],[1511863815,"233269680"],[1511863820,"233269680"],[1511863825,"233269680"],[1511863830,"328831592"],[1511863835,"328831592"],[1511863840,"328831592"],[1511863845,"250767992"],[1511863850,"250767992"],[1511863855,"250767992"],[1511863860,"338370200"],[1511863865,"338370200"],[1511863870,"338370200"],[1511863875,"252188384"],[1511863880,"252188384"],[1511863885,"252188384"],[1511863890,"338429136"],[1511863895,"338429136"],[1511863900,"338429136"],[1511863905,"251474944"],[1511863910,"251474944"],[1511863915,"251474944"],[1511863920,"340384912"],[1511863925,"340384912"],[1511863930,"340384912"],[1511863935,"251427352"],[1511863940,"251427352"],[1511863945,"251427352"],[1511863950,"340597320"],[1511863955,"340597320"],[1511863960,"340597320"],[1511863965,"251614664"],[1511863970,"251614664"],[1511863975,"251614664"],[1511863980,"340384008"],[1511863985,"340384008"],[1511863990,"340384008"],[1511863995,"308928208"],[1511864000,"308928208"],[1511864005,"308928208"],[1511864010,"262960936"],[1511864015,"262960936"],[1511864020,"262960936"],[1511864025,"362714848"],[1511864030,"362714848"],[1511864035,"362714848"],[1511864040,"283248352"],[1511864045,"283248352"],[1511864050,"283248352"],[1511864055,"375675928"],[1511864060,"375675928"],[1511864065,"375675928"],[1511864070,"297866752"],[1511864075,"297866752"],[1511864080,"297866752"],[1511864085,"390967256"],[1511864090,"390967256"],[1511864095,"390967256"],[1511864100,"311763960"],[1511864105,"311763960"],[1511864110,"311763960"],[1511864115,"228528504"],[1511864120,"228528504"],[1511864125,"228528504"],[1511864130,"329820592"],[1511864135,"329820592"],[1511864140,"329820592"],[1511864145,"246284200"],[1511864150,"246284200"],[1511864155,"246284200"],[1511864160,"338555104"],[1511864165,"338555104"],[1511864170,"338555104"],[1511864175,"254533640"],[1511864180,"254533640"],[1511864185,"254533640"],[1511864190,"380394632"],[1511864195,"380394632"],[1511864200,"380394632"],[1511864205,"297572704"],[1511864210,"297572704"],[1511864215,"297572704"],[1511864220,"387998096"],[1511864225,"387998096"],[1511864230,"387998096"],[1511864235,"303787616"],[1511864240,"303787616"],[1511864245,"303787616"],[1511864250,"395022032"],[1511864255,"395022032"],[1511864260,"395022032"],[1511864265,"312058928"],[1511864270,"312058928"],[1511864275,"312058928"],[1511864280,"228738280"],[1511864285,"228738280"],[1511864290,"228738280"],[1511864295,"328705184"],[1511864300,"328705184"],[1511864305,"328705184"],[1511864310,"255144448"],[1511864315,"255144448"],[1511864320,"255144448"],[1511864325,"367362504"],[1511864330,"367362504"],[1511864335,"367362504"],[1511864340,"288930328"],[1511864345,"288930328"],[1511864350,"288930328"],[1511864355,"380162872"],[1511864360,"380162872"],[1511864365,"380162872"],[1511864370,"294327216"],[1511864375,"294327216"],[1511864380,"294327216"],[1511864385,"385327856"],[1511864390,"385327856"],[1511864395,"385327856"],[1511864400,"300729432"],[1511864405,"300729432"],[1511864410,"300729432"],[1511864415,"393064448"],[1511864420,"393064448"],[1511864425,"393064448"],[1511864430,"310866656"],[1511864435,"310866656"],[1511864440,"310866656"],[1511864445,"398928648"],[1511864450,"398928648"],[1511864455,"398928648"],[1511864460,"319293048"],[1511864465,"319293048"],[1511864470,"319293048"],[1511864475,"231378464"],[1511864480,"231378464"],[1511864485,"231378464"],[1511864490,"325469672"],[1511864495,"325469672"],[1511864500,"325469672"],[1511864505,"240020128"],[1511864510,"240020128"],[1511864515,"240020128"],[1511864520,"338493976"],[1511864525,"338493976"],[1511864530,"338493976"],[1511864535,"306429360"],[1511864540,"306429360"],[1511864545,"306429360"],[1511864550,"260014392"],[1511864555,"260014392"],[1511864560,"260014392"],[1511864565,"360953800"],[1511864570,"360953800"],[1511864575,"360953800"],[1511864580,"289764184"],[1511864585,"289764184"],[1511864590,"289764184"],[1511864595,"384244872"],[1511864600,"384244872"],[1511864605,"384244872"],[1511864610,"300776464"],[1511864615,"300776464"],[1511864620,"300776464"],[1511864625,"392543688"],[1511864630,"392543688"],[1511864635,"392543688"],[1511864640,"308229576"],[1511864645,"308229576"],[1511864650,"308229576"],[1511864655,"400205080"],[1511864660,"400205080"],[1511864665,"400205080"],[1511864670,"317658488"],[1511864675,"317658488"],[1511864680,"317658488"],[1511864685,"236028568"],[1511864690,"236028568"],[1511864695,"236028568"],[1511864700,"337376216"],[1511864705,"337376216"],[1511864710,"337376216"],[1511864715,"263135368"],[1511864720,"263135368"],[1511864725,"263135368"],[1511864730,"233339480"],[1511864735,"233339480"],[1511864740,"233339480"],[1511864745,"324717712"],[1511864750,"324717712"],[1511864755,"324717712"],[1511864760,"273702184"],[1511864765,"273702184"],[1511864770,"273702184"],[1511864775,"373598760"],[1511864780,"373598760"],[1511864785,"373598760"],[1511864790,"304705256"],[1511864795,"304705256"],[1511864800,"304705256"],[1511864805,"396565328"],[1511864810,"396565328"],[1511864815,"396565328"],[1511864820,"315341440"],[1511864825,"315341440"],[1511864830,"315341440"],[1511864835,"231098648"],[1511864840,"231098648"],[1511864845,"231098648"],[1511864850,"330568584"],[1511864855,"330568584"],[1511864860,"330568584"],[1511864865,"248600696"],[1511864870,"248600696"],[1511864875,"248600696"],[1511864880,"350015672"],[1511864885,"350015672"],[1511864890,"350015672"],[1511864895,"279747408"],[1511864900,"279747408"],[1511864905,"279747408"],[1511864910,"371003296"],[1511864915,"371003296"],[1511864920,"371003296"],[1511864925,"309114328"],[1511864930,"309114328"],[1511864935,"309114328"],[1511864940,"231332992"],[1511864945,"231332992"],[1511864950,"231332992"],[1511864955,"348094928"],[1511864960,"348094928"],[1511864965,"348094928"],[1511864970,"288858648"],[1511864975,"288858648"],[1511864980,"288858648"],[1511864985,"378796928"],[1511864990,"378796928"],[1511864995,"378796928"],[1511865000,"291821064"],[1511865005,"291821064"],[1511865010,"291821064"],[1511865015,"381357688"],[1511865020,"381357688"],[1511865025,"381357688"],[1511865030,"292363648"],[1511865035,"292363648"],[1511865040,"292363648"],[1511865045,"383361824"],[1511865050,"383361824"],[1511865055,"383361824"],[1511865060,"292569440"],[1511865065,"292569440"],[1511865070,"292569440"],[1511865075,"383366104"],[1511865080,"383366104"],[1511865085,"383366104"],[1511865090,"292830008"],[1511865095,"292830008"],[1511865100,"292830008"],[1511865105,"382890528"],[1511865110,"382890528"],[1511865115,"382890528"],[1511865120,"295578360"],[1511865125,"295578360"],[1511865130,"295578360"],[1511865135,"384345152"],[1511865140,"384345152"],[1511865145,"384345152"],[1511865150,"295659016"],[1511865155,"295659016"],[1511865160,"295659016"],[1511865165,"384521984"],[1511865170,"384521984"],[1511865175,"384521984"],[1511865180,"295636936"],[1511865185,"295636936"],[1511865190,"295636936"],[1511865195,"384558712"],[1511865200,"384558712"],[1511865205,"384558712"],[1511865210,"295746048"],[1511865215,"295746048"],[1511865220,"295746048"],[1511865225,"384627208"],[1511865230,"384627208"],[1511865235,"384627208"],[1511865240,"295871776"],[1511865245,"295871776"],[1511865250,"295871776"],[1511865255,"384803560"],[1511865260,"384803560"],[1511865265,"384803560"],[1511865270,"296085560"],[1511865275,"296085560"],[1511865280,"296085560"],[1511865285,"384696736"],[1511865290,"384696736"],[1511865295,"384696736"],[1511865300,"296122896"],[1511865305,"296122896"],[1511865310,"296122896"],[1511865315,"384618720"],[1511865320,"384618720"],[1511865325,"384618720"],[1511865330,"296192200"],[1511865335,"296192200"],[1511865340,"296192200"],[1511865345,"384666248"],[1511865350,"384666248"],[1511865355,"384666248"],[1511865360,"305601912"],[1511865365,"305601912"],[1511865370,"305601912"],[1511865375,"397535128"],[1511865380,"397535128"],[1511865385,"397535128"],[1511865390,"311234168"],[1511865395,"311234168"],[1511865400,"311234168"],[1511865405,"403178992"],[1511865410,"403178992"],[1511865415,"403178992"],[1511865420,"329627128"],[1511865425,"329627128"],[1511865430,"329627128"],[1511865435,"243223256"],[1511865440,"243223256"],[1511865445,"243223256"],[1511865450,"342459824"],[1511865455,"342459824"],[1511865460,"342459824"],[1511865465,"264717128"],[1511865470,"264717128"],[1511865475,"264717128"],[1511865480,"354852568"],[1511865485,"354852568"],[1511865490,"354852568"],[1511865495,"266099928"],[1511865500,"266099928"],[1511865505,"266099928"],[1511865510,"355473392"],[1511865515,"355473392"],[1511865520,"355473392"],[1511865525,"287187744"],[1511865530,"287187744"],[1511865535,"287187744"],[1511865540,"264930304"],[1511865545,"264930304"],[1511865550,"264930304"],[1511865555,"352753352"],[1511865560,"352753352"],[1511865565,"352753352"],[1511865570,"306560200"],[1511865575,"306560200"],[1511865580,"306560200"],[1511865585,"395883176"],[1511865590,"395883176"],[1511865595,"395883176"],[1511865600,"313292744"],[1511865605,"313292744"],[1511865610,"313292744"],[1511865615,"404187424"],[1511865620,"404187424"],[1511865625,"404187424"],[1511865630,"319425224"],[1511865635,"319425224"],[1511865640,"319425224"],[1511865645,"238570816"],[1511865650,"238570816"],[1511865655,"238570816"],[1511865660,"339057352"],[1511865665,"339057352"],[1511865670,"339057352"],[1511865675,"257684920"],[1511865680,"257684920"],[1511865685,"257684920"],[1511865690,"348643280"],[1511865695,"348643280"],[1511865700,"348643280"],[1511865705,"267181992"],[1511865710,"267181992"],[1511865715,"267181992"],[1511865720,"356238080"],[1511865725,"356238080"],[1511865730,"356238080"],[1511865735,"269506912"],[1511865740,"269506912"],[1511865745,"269506912"],[1511865750,"356896064"],[1511865755,"356896064"],[1511865760,"356896064"],[1511865765,"269808392"],[1511865770,"269808392"],[1511865775,"269808392"],[1511865780,"360537184"],[1511865785,"360537184"],[1511865790,"360537184"],[1511865795,"272973704"],[1511865800,"272973704"],[1511865805,"272973704"],[1511865810,"360613208"],[1511865815,"360613208"],[1511865820,"360613208"],[1511865825,"272848536"],[1511865830,"272848536"],[1511865835,"272848536"],[1511865840,"363656664"],[1511865845,"363656664"],[1511865850,"363656664"],[1511865855,"273021472"],[1511865860,"273021472"],[1511865865,"273021472"],[1511865870,"363844800"],[1511865875,"363844800"],[1511865880,"363844800"],[1511865885,"276046832"],[1511865890,"276046832"],[1511865895,"276046832"],[1511865900,"366422304"],[1511865905,"366422304"],[1511865910,"366422304"],[1511865915,"278057400"],[1511865920,"278057400"],[1511865925,"278057400"],[1511865930,"369292080"],[1511865935,"369292080"],[1511865940,"369292080"],[1511865945,"279358968"],[1511865950,"279358968"],[1511865955,"279358968"],[1511865960,"369305536"],[1511865965,"369305536"],[1511865970,"369305536"],[1511865975,"279489440"],[1511865980,"279489440"],[1511865985,"279489440"],[1511865990,"367136480"],[1511865995,"367136480"],[1511866000,"367136480"],[1511866005,"279570560"],[1511866010,"279570560"],[1511866015,"279570560"],[1511866020,"367022000"],[1511866025,"367022000"],[1511866030,"367022000"],[1511866035,"279703608"],[1511866040,"279703608"],[1511866045,"279703608"],[1511866050,"367069504"],[1511866055,"367069504"],[1511866060,"367069504"],[1511866065,"279630872"],[1511866070,"279630872"],[1511866075,"279630872"],[1511866080,"362683496"],[1511866085,"362683496"],[1511866090,"362683496"],[1511866095,"275498024"],[1511866100,"275498024"],[1511866105,"275498024"],[1511866110,"362756176"],[1511866115,"362756176"],[1511866120,"362756176"],[1511866125,"296298104"],[1511866130,"296298104"],[1511866135,"296298104"],[1511866140,"392974352"],[1511866145,"392974352"],[1511866150,"392974352"],[1511866155,"317709616"],[1511866160,"317709616"],[1511866165,"317709616"],[1511866170,"233807880"],[1511866175,"233807880"],[1511866180,"233807880"],[1511866185,"334297920"],[1511866190,"334297920"],[1511866195,"334297920"],[1511866200,"250544664"],[1511866205,"250544664"],[1511866210,"250544664"],[1511866215,"349386488"],[1511866220,"349386488"],[1511866225,"349386488"],[1511866230,"267391656"],[1511866235,"267391656"],[1511866240,"267391656"],[1511866245,"358277056"],[1511866250,"358277056"],[1511866255,"358277056"],[1511866260,"273677784"],[1511866265,"273677784"],[1511866270,"273677784"],[1511866275,"273677784"],[1511866280,"273677784"],[1511866285,"273677784"],[1511866290,"273677784"],[1511866295,"273677784"],[1511866300,"273677784"],[1511866305,"273677784"],[1511866310,"273677784"],[1511866315,"273677784"],[1511866320,"273677784"],[1511866325,"273677784"],[1511866330,"273677784"],[1511866335,"273677784"],[1511866340,"273677784"],[1511866345,"273677784"],[1511866350,"273677784"],[1511866355,"273677784"],[1511866360,"273677784"],[1511866365,"273677784"],[1511866370,"273677784"],[1511866375,"273677784"],[1511866380,"273677784"],[1511866385,"273677784"],[1511866390,"273677784"],[1511866395,"273677784"],[1511866400,"273677784"],[1511866405,"273677784"],[1511866410,"273677784"],[1511866415,"273677784"],[1511866420,"273677784"],[1511866425,"273677784"],[1511866430,"273677784"],[1511866435,"273677784"],[1511866440,"273677784"],[1511866445,"273677784"],[1511866450,"273677784"],[1511866455,"273677784"],[1511866460,"273677784"],[1511866465,"273677784"],[1511866470,"273677784"],[1511866475,"273677784"],[1511866480,"273677784"],[1511866485,"273677784"],[1511866490,"273677784"],[1511866495,"273677784"],[1511866500,"273677784"],[1511866505,"273677784"],[1511866510,"273677784"],[1511866515,"273677784"],[1511866520,"273677784"],[1511866525,"273677784"],[1511866530,"273677784"],[1511866535,"273677784"],[1511866540,"273677784"],[1511866545,"273677784"],[1511866550,"273677784"],[1511866555,"273677784"]]}]}}' + string: '{"status":"success","data":{"resultType":"matrix","result":[]}}' http_version: - recorded_at: Tue, 28 Nov 2017 10:51:11 GMT + recorded_at: Tue, 05 Dec 2017 13:22:50 GMT - request: method: get - uri: http://localhost:9090/api/v1/query_range?end=2017-11-28T11:00:00Z&query=jvm_memory_bytes_used%7Barea=%22nonheap%22,feed_id=%22attilan%22%7D&start=2017-11-28T10:00:00Z&step=5s + uri: http://localhost:9090/api/v1/query_range?end=2017-11-05T11:25:00Z&query=jvm_memory_bytes_used%7Barea=%22nonheap%22,feed_id=%22attilan%22%7D&start=2017-11-05T11:20:00Z&step=5s body: encoding: US-ASCII string: '' @@ -95,6 +212,8 @@ http_interactions: - application/json Host: - localhost:9090 + Authorization: + - Basic amRvZTpwYXNzd29yZA== response: status: code: 200 @@ -111,12 +230,12 @@ http_interactions: Content-Type: - application/json Date: - - Tue, 28 Nov 2017 10:51:11 GMT - Transfer-Encoding: - - chunked + - Tue, 05 Dec 2017 13:22:50 GMT + Content-Length: + - '63' body: encoding: UTF-8 - string: '{"status":"success","data":{"resultType":"matrix","result":[{"metric":{"__name__":"jvm_memory_bytes_used","area":"nonheap","feed_id":"attilan","instance":"127.0.0.1:9779","job":"hawkular"},"values":[[1511863200,"260091312"],[1511863205,"260091312"],[1511863210,"260091312"],[1511863215,"260091312"],[1511863220,"260091312"],[1511863225,"260091312"],[1511863230,"260121312"],[1511863235,"260121312"],[1511863240,"260121312"],[1511863245,"260157176"],[1511863250,"260157176"],[1511863255,"260157176"],[1511863260,"260173936"],[1511863265,"260173936"],[1511863270,"260173936"],[1511863275,"260186168"],[1511863280,"260186168"],[1511863285,"260186168"],[1511863290,"260266040"],[1511863295,"260266040"],[1511863300,"260266040"],[1511863305,"260291960"],[1511863310,"260291960"],[1511863315,"260291960"],[1511863320,"260327736"],[1511863325,"260327736"],[1511863330,"260327736"],[1511863335,"260335584"],[1511863340,"260335584"],[1511863345,"260335584"],[1511863350,"260261840"],[1511863355,"260261840"],[1511863360,"260261840"],[1511863365,"260290792"],[1511863370,"260290792"],[1511863375,"260290792"],[1511863380,"260332008"],[1511863385,"260332008"],[1511863390,"260332008"],[1511863395,"260363416"],[1511863400,"260363416"],[1511863405,"260363416"],[1511863410,"260487224"],[1511863415,"260487224"],[1511863420,"260487224"],[1511863425,"260503776"],[1511863430,"260503776"],[1511863435,"260503776"],[1511863440,"260608640"],[1511863445,"260608640"],[1511863450,"260608640"],[1511863455,"260728488"],[1511863460,"260728488"],[1511863465,"260728488"],[1511863470,"260746896"],[1511863475,"260746896"],[1511863480,"260746896"],[1511863485,"260749200"],[1511863490,"260749200"],[1511863495,"260749200"],[1511863500,"260790128"],[1511863505,"260790128"],[1511863510,"260790128"],[1511863515,"260806784"],[1511863520,"260806784"],[1511863525,"260806784"],[1511863530,"260827136"],[1511863535,"260827136"],[1511863540,"260827136"],[1511863545,"260859864"],[1511863550,"260859864"],[1511863555,"260859864"],[1511863560,"260861848"],[1511863565,"260861848"],[1511863570,"260861848"],[1511863575,"260862744"],[1511863580,"260862744"],[1511863585,"260862744"],[1511863590,"260874000"],[1511863595,"260874000"],[1511863600,"260874000"],[1511863605,"260925240"],[1511863610,"260925240"],[1511863615,"260925240"],[1511863620,"260968768"],[1511863625,"260968768"],[1511863630,"260968768"],[1511863635,"260977984"],[1511863640,"260977984"],[1511863645,"260977984"],[1511863650,"260977976"],[1511863655,"260977976"],[1511863660,"260977976"],[1511863665,"261052304"],[1511863670,"261052304"],[1511863675,"261052304"],[1511863680,"261104376"],[1511863685,"261104376"],[1511863690,"261104376"],[1511863695,"261105576"],[1511863700,"261105576"],[1511863705,"261105576"],[1511863710,"261109816"],[1511863715,"261109816"],[1511863720,"261109816"],[1511863725,"261363984"],[1511863730,"261363984"],[1511863735,"261363984"],[1511863740,"261377080"],[1511863745,"261377080"],[1511863750,"261377080"],[1511863755,"261431280"],[1511863760,"261431280"],[1511863765,"261431280"],[1511863770,"261442432"],[1511863775,"261442432"],[1511863780,"261442432"],[1511863785,"261465216"],[1511863790,"261465216"],[1511863795,"261465216"],[1511863800,"261560248"],[1511863805,"261560248"],[1511863810,"261560248"],[1511863815,"261560248"],[1511863820,"261560248"],[1511863825,"261560248"],[1511863830,"261580024"],[1511863835,"261580024"],[1511863840,"261580024"],[1511863845,"261582072"],[1511863850,"261582072"],[1511863855,"261582072"],[1511863860,"261595832"],[1511863865,"261595832"],[1511863870,"261595832"],[1511863875,"261604320"],[1511863880,"261604320"],[1511863885,"261604320"],[1511863890,"261633336"],[1511863895,"261633336"],[1511863900,"261633336"],[1511863905,"261641872"],[1511863910,"261641872"],[1511863915,"261641872"],[1511863920,"261728248"],[1511863925,"261728248"],[1511863930,"261728248"],[1511863935,"261767392"],[1511863940,"261767392"],[1511863945,"261767392"],[1511863950,"261696680"],[1511863955,"261696680"],[1511863960,"261696680"],[1511863965,"261709792"],[1511863970,"261709792"],[1511863975,"261709792"],[1511863980,"261854560"],[1511863985,"261854560"],[1511863990,"261854560"],[1511863995,"261923944"],[1511864000,"261923944"],[1511864005,"261923944"],[1511864010,"262813312"],[1511864015,"262813312"],[1511864020,"262813312"],[1511864025,"263038856"],[1511864030,"263038856"],[1511864035,"263038856"],[1511864040,"263093728"],[1511864045,"263093728"],[1511864050,"263093728"],[1511864055,"263130056"],[1511864060,"263130056"],[1511864065,"263130056"],[1511864070,"263133816"],[1511864075,"263133816"],[1511864080,"263133816"],[1511864085,"263128040"],[1511864090,"263128040"],[1511864095,"263128040"],[1511864100,"263173096"],[1511864105,"263173096"],[1511864110,"263173096"],[1511864115,"263205664"],[1511864120,"263205664"],[1511864125,"263205664"],[1511864130,"263091032"],[1511864135,"263091032"],[1511864140,"263091032"],[1511864145,"263097128"],[1511864150,"263097128"],[1511864155,"263097128"],[1511864160,"263126264"],[1511864165,"263126264"],[1511864170,"263126264"],[1511864175,"263098216"],[1511864180,"263098216"],[1511864185,"263098216"],[1511864190,"263500264"],[1511864195,"263500264"],[1511864200,"263500264"],[1511864205,"263575592"],[1511864210,"263575592"],[1511864215,"263575592"],[1511864220,"263599160"],[1511864225,"263599160"],[1511864230,"263599160"],[1511864235,"263609192"],[1511864240,"263609192"],[1511864245,"263609192"],[1511864250,"263647512"],[1511864255,"263647512"],[1511864260,"263647512"],[1511864265,"263650080"],[1511864270,"263650080"],[1511864275,"263650080"],[1511864280,"263686352"],[1511864285,"263686352"],[1511864290,"263686352"],[1511864295,"263721832"],[1511864300,"263721832"],[1511864305,"263721832"],[1511864310,"263763472"],[1511864315,"263763472"],[1511864320,"263763472"],[1511864325,"264328456"],[1511864330,"264328456"],[1511864335,"264328456"],[1511864340,"264342176"],[1511864345,"264342176"],[1511864350,"264342176"],[1511864355,"264348960"],[1511864360,"264348960"],[1511864365,"264348960"],[1511864370,"264386312"],[1511864375,"264386312"],[1511864380,"264386312"],[1511864385,"264461296"],[1511864390,"264461296"],[1511864395,"264461296"],[1511864400,"264515296"],[1511864405,"264515296"],[1511864410,"264515296"],[1511864415,"264552792"],[1511864420,"264552792"],[1511864425,"264552792"],[1511864430,"264707160"],[1511864435,"264707160"],[1511864440,"264707160"],[1511864445,"264707800"],[1511864450,"264707800"],[1511864455,"264707800"],[1511864460,"264703752"],[1511864465,"264703752"],[1511864470,"264703752"],[1511864475,"264645192"],[1511864480,"264645192"],[1511864485,"264645192"],[1511864490,"264648520"],[1511864495,"264648520"],[1511864500,"264648520"],[1511864505,"264692488"],[1511864510,"264692488"],[1511864515,"264692488"],[1511864520,"264692488"],[1511864525,"264692488"],[1511864530,"264692488"],[1511864535,"264121984"],[1511864540,"264121984"],[1511864545,"264121984"],[1511864550,"264582192"],[1511864555,"264582192"],[1511864560,"264582192"],[1511864565,"264743464"],[1511864570,"264743464"],[1511864575,"264743464"],[1511864580,"264747400"],[1511864585,"264747400"],[1511864590,"264747400"],[1511864595,"264750536"],[1511864600,"264750536"],[1511864605,"264750536"],[1511864610,"264758576"],[1511864615,"264758576"],[1511864620,"264758576"],[1511864625,"264758576"],[1511864630,"264758576"],[1511864635,"264758576"],[1511864640,"264762040"],[1511864645,"264762040"],[1511864650,"264762040"],[1511864655,"264803664"],[1511864660,"264803664"],[1511864665,"264803664"],[1511864670,"264808312"],[1511864675,"264808312"],[1511864680,"264808312"],[1511864685,"264813008"],[1511864690,"264813008"],[1511864695,"264813008"],[1511864700,"264817816"],[1511864705,"264817816"],[1511864710,"264817816"],[1511864715,"264817816"],[1511864720,"264817816"],[1511864725,"264817816"],[1511864730,"264916288"],[1511864735,"264916288"],[1511864740,"264916288"],[1511864745,"264985072"],[1511864750,"264985072"],[1511864755,"264985072"],[1511864760,"265346256"],[1511864765,"265346256"],[1511864770,"265346256"],[1511864775,"265361232"],[1511864780,"265361232"],[1511864785,"265361232"],[1511864790,"265366608"],[1511864795,"265366608"],[1511864800,"265366608"],[1511864805,"265476304"],[1511864810,"265476304"],[1511864815,"265476304"],[1511864820,"265546528"],[1511864825,"265546528"],[1511864830,"265546528"],[1511864835,"265547616"],[1511864840,"265547616"],[1511864845,"265547616"],[1511864850,"265547296"],[1511864855,"265547296"],[1511864860,"265547296"],[1511864865,"265547544"],[1511864870,"265547544"],[1511864875,"265547544"],[1511864880,"265549208"],[1511864885,"265549208"],[1511864890,"265549208"],[1511864895,"265549976"],[1511864900,"265549976"],[1511864905,"265549976"],[1511864910,"265567664"],[1511864915,"265567664"],[1511864920,"265567664"],[1511864925,"266019344"],[1511864930,"266019344"],[1511864935,"266019344"],[1511864940,"266098944"],[1511864945,"266098944"],[1511864950,"266098944"],[1511864955,"266118216"],[1511864960,"266118216"],[1511864965,"266118216"],[1511864970,"266163464"],[1511864975,"266163464"],[1511864980,"266163464"],[1511864985,"266163192"],[1511864990,"266163192"],[1511864995,"266163192"],[1511865000,"266164088"],[1511865005,"266164088"],[1511865010,"266164088"],[1511865015,"266176992"],[1511865020,"266176992"],[1511865025,"266176992"],[1511865030,"266176992"],[1511865035,"266176992"],[1511865040,"266176992"],[1511865045,"266184376"],[1511865050,"266184376"],[1511865055,"266184376"],[1511865060,"266188136"],[1511865065,"266188136"],[1511865070,"266188136"],[1511865075,"266227176"],[1511865080,"266227176"],[1511865085,"266227176"],[1511865090,"266243240"],[1511865095,"266243240"],[1511865100,"266243240"],[1511865105,"266295304"],[1511865110,"266295304"],[1511865115,"266295304"],[1511865120,"266297608"],[1511865125,"266297608"],[1511865130,"266297608"],[1511865135,"266298312"],[1511865140,"266298312"],[1511865145,"266298312"],[1511865150,"266299464"],[1511865155,"266299464"],[1511865160,"266299464"],[1511865165,"266299464"],[1511865170,"266299464"],[1511865175,"266299464"],[1511865180,"266351672"],[1511865185,"266351672"],[1511865190,"266351672"],[1511865195,"266374936"],[1511865200,"266374936"],[1511865205,"266374936"],[1511865210,"266263576"],[1511865215,"266263576"],[1511865220,"266263576"],[1511865225,"266336472"],[1511865230,"266336472"],[1511865235,"266336472"],[1511865240,"266360456"],[1511865245,"266360456"],[1511865250,"266360456"],[1511865255,"266347072"],[1511865260,"266347072"],[1511865265,"266347072"],[1511865270,"266449216"],[1511865275,"266449216"],[1511865280,"266449216"],[1511865285,"266589824"],[1511865290,"266589824"],[1511865295,"266589824"],[1511865300,"266558736"],[1511865305,"266558736"],[1511865310,"266558736"],[1511865315,"266622504"],[1511865320,"266622504"],[1511865325,"266622504"],[1511865330,"266742296"],[1511865335,"266742296"],[1511865340,"266742296"],[1511865345,"266743408"],[1511865350,"266743408"],[1511865355,"266743408"],[1511865360,"266777096"],[1511865365,"266777096"],[1511865370,"266777096"],[1511865375,"266872272"],[1511865380,"266872272"],[1511865385,"266872272"],[1511865390,"266882688"],[1511865395,"266882688"],[1511865400,"266882688"],[1511865405,"266885056"],[1511865410,"266885056"],[1511865415,"266885056"],[1511865420,"266887488"],[1511865425,"266887488"],[1511865430,"266887488"],[1511865435,"266887488"],[1511865440,"266887488"],[1511865445,"266887488"],[1511865450,"266887488"],[1511865455,"266887488"],[1511865460,"266887488"],[1511865465,"266909312"],[1511865470,"266909312"],[1511865475,"266909312"],[1511865480,"266909312"],[1511865485,"266909312"],[1511865490,"266909312"],[1511865495,"266919872"],[1511865500,"266919872"],[1511865505,"266919872"],[1511865510,"266923320"],[1511865515,"266923320"],[1511865520,"266923320"],[1511865525,"267354528"],[1511865530,"267354528"],[1511865535,"267354528"],[1511865540,"267383096"],[1511865545,"267383096"],[1511865550,"267383096"],[1511865555,"267404432"],[1511865560,"267404432"],[1511865565,"267404432"],[1511865570,"267865896"],[1511865575,"267865896"],[1511865580,"267865896"],[1511865585,"267867104"],[1511865590,"267867104"],[1511865595,"267867104"],[1511865600,"267884184"],[1511865605,"267884184"],[1511865610,"267884184"],[1511865615,"267887960"],[1511865620,"267887960"],[1511865625,"267887960"],[1511865630,"267887960"],[1511865635,"267887960"],[1511865640,"267887960"],[1511865645,"267893288"],[1511865650,"267893288"],[1511865655,"267893288"],[1511865660,"267894376"],[1511865665,"267894376"],[1511865670,"267894376"],[1511865675,"267894376"],[1511865680,"267894376"],[1511865685,"267894376"],[1511865690,"267895208"],[1511865695,"267895208"],[1511865700,"267895208"],[1511865705,"267895976"],[1511865710,"267895976"],[1511865715,"267895976"],[1511865720,"267896808"],[1511865725,"267896808"],[1511865730,"267896808"],[1511865735,"267896808"],[1511865740,"267896808"],[1511865745,"267896808"],[1511865750,"267914344"],[1511865755,"267914344"],[1511865760,"267914344"],[1511865765,"267916136"],[1511865770,"267916136"],[1511865775,"267916136"],[1511865780,"267923496"],[1511865785,"267923496"],[1511865790,"267923496"],[1511865795,"267926568"],[1511865800,"267926568"],[1511865805,"267926568"],[1511865810,"267927976"],[1511865815,"267927976"],[1511865820,"267927976"],[1511865825,"267930072"],[1511865830,"267930072"],[1511865835,"267930072"],[1511865840,"267997752"],[1511865845,"267997752"],[1511865850,"267997752"],[1511865855,"268003064"],[1511865860,"268003064"],[1511865865,"268003064"],[1511865870,"268003064"],[1511865875,"268003064"],[1511865880,"268003064"],[1511865885,"268041848"],[1511865890,"268041848"],[1511865895,"268041848"],[1511865900,"268049360"],[1511865905,"268049360"],[1511865910,"268049360"],[1511865915,"268049360"],[1511865920,"268049360"],[1511865925,"268049360"],[1511865930,"268112584"],[1511865935,"268112584"],[1511865940,"268112584"],[1511865945,"268112264"],[1511865950,"268112264"],[1511865955,"268112264"],[1511865960,"268114888"],[1511865965,"268114888"],[1511865970,"268114888"],[1511865975,"268114888"],[1511865980,"268114888"],[1511865985,"268114888"],[1511865990,"268014080"],[1511865995,"268014080"],[1511866000,"268014080"],[1511866005,"268213256"],[1511866010,"268213256"],[1511866015,"268213256"],[1511866020,"268230904"],[1511866025,"268230904"],[1511866030,"268230904"],[1511866035,"268295432"],[1511866040,"268295432"],[1511866045,"268295432"],[1511866050,"268306288"],[1511866055,"268306288"],[1511866060,"268306288"],[1511866065,"268317360"],[1511866070,"268317360"],[1511866075,"268317360"],[1511866080,"268323248"],[1511866085,"268323248"],[1511866090,"268323248"],[1511866095,"268325104"],[1511866100,"268325104"],[1511866105,"268325104"],[1511866110,"268341680"],[1511866115,"268341680"],[1511866120,"268341680"],[1511866125,"268455976"],[1511866130,"268455976"],[1511866135,"268455976"],[1511866140,"268461864"],[1511866145,"268461864"],[1511866150,"268461864"],[1511866155,"268464168"],[1511866160,"268464168"],[1511866165,"268464168"],[1511866170,"268476376"],[1511866175,"268476376"],[1511866180,"268476376"],[1511866185,"268535840"],[1511866190,"268535840"],[1511866195,"268535840"],[1511866200,"268540424"],[1511866205,"268540424"],[1511866210,"268540424"],[1511866215,"268565320"],[1511866220,"268565320"],[1511866225,"268565320"],[1511866230,"268565320"],[1511866235,"268565320"],[1511866240,"268565320"],[1511866245,"268577112"],[1511866250,"268577112"],[1511866255,"268577112"],[1511866260,"268591128"],[1511866265,"268591128"],[1511866270,"268591128"],[1511866275,"268591128"],[1511866280,"268591128"],[1511866285,"268591128"],[1511866290,"268591128"],[1511866295,"268591128"],[1511866300,"268591128"],[1511866305,"268591128"],[1511866310,"268591128"],[1511866315,"268591128"],[1511866320,"268591128"],[1511866325,"268591128"],[1511866330,"268591128"],[1511866335,"268591128"],[1511866340,"268591128"],[1511866345,"268591128"],[1511866350,"268591128"],[1511866355,"268591128"],[1511866360,"268591128"],[1511866365,"268591128"],[1511866370,"268591128"],[1511866375,"268591128"],[1511866380,"268591128"],[1511866385,"268591128"],[1511866390,"268591128"],[1511866395,"268591128"],[1511866400,"268591128"],[1511866405,"268591128"],[1511866410,"268591128"],[1511866415,"268591128"],[1511866420,"268591128"],[1511866425,"268591128"],[1511866430,"268591128"],[1511866435,"268591128"],[1511866440,"268591128"],[1511866445,"268591128"],[1511866450,"268591128"],[1511866455,"268591128"],[1511866460,"268591128"],[1511866465,"268591128"],[1511866470,"268591128"],[1511866475,"268591128"],[1511866480,"268591128"],[1511866485,"268591128"],[1511866490,"268591128"],[1511866495,"268591128"],[1511866500,"268591128"],[1511866505,"268591128"],[1511866510,"268591128"],[1511866515,"268591128"],[1511866520,"268591128"],[1511866525,"268591128"],[1511866530,"268591128"],[1511866535,"268591128"],[1511866540,"268591128"],[1511866545,"268591128"],[1511866550,"268591128"],[1511866555,"268591128"]]}]}}' + string: '{"status":"success","data":{"resultType":"matrix","result":[]}}' http_version: - recorded_at: Tue, 28 Nov 2017 10:51:11 GMT + recorded_at: Tue, 05 Dec 2017 13:22:50 GMT recorded_with: VCR 3.0.3 diff --git a/spec/vcr_cassettes/Prometheus/Queries/Templates/Should_fetch_up_time.yml b/spec/vcr_cassettes/Prometheus/Queries/Templates/Should_fetch_up_time.yml index da44f27..4d375af 100644 --- a/spec/vcr_cassettes/Prometheus/Queries/Templates/Should_fetch_up_time.yml +++ b/spec/vcr_cassettes/Prometheus/Queries/Templates/Should_fetch_up_time.yml @@ -1,5 +1,118 @@ --- http_interactions: +- request: + method: get + uri: http://localhost:8080/hawkular/inventory/status + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Content-Type: + - application/json + Host: + - localhost:8080 + Authorization: + - Basic amRvZTpwYXNzd29yZA== + response: + status: + code: 200 + message: OK + headers: + Connection: + - keep-alive + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Content-Type: + - application/json + Content-Length: + - '173' + Date: + - Tue, 05 Dec 2017 13:22:50 GMT + body: + encoding: UTF-8 + string: '{"Implementation-Version":"1.0.0.Final-SRC-revision-d27e8a223a015e4f878c2695626bd851ce559925","Built-From-Git-SHA1":"d27e8a223a015e4f878c2695626bd851ce559925","status":"UP"}' + http_version: + recorded_at: Tue, 05 Dec 2017 13:22:50 GMT +- request: + method: get + uri: http://localhost:8080/hawkular/inventory/resources?maxResults=100&startOffSet=0&typeId=WildFly%20Server%20WF10 + body: + encoding: US-ASCII + string: '' + headers: + Accept: + - application/json + Accept-Encoding: + - identity + User-Agent: + - hawkular-client-ruby + Content-Type: + - application/json + Host: + - localhost:8080 + Authorization: + - Basic amRvZTpwYXNzd29yZA== + response: + status: + code: 200 + message: OK + headers: + Expires: + - '0' + Cache-Control: + - no-cache, no-store, must-revalidate + X-Powered-By: + - Undertow/1 + Server: + - WildFly/10 + Pragma: + - no-cache + Date: + - Tue, 05 Dec 2017 13:22:50 GMT + Connection: + - keep-alive + Content-Type: + - application/json + Content-Length: + - '4996' + body: + encoding: UTF-8 + string: '{"results":[{"id":"attilan~Local~~","name":"Local","feedId":"attilan","type":{"id":"WildFly + Server WF10","operations":[{"name":"JDR","parameters":{}},{"name":"Reload","parameters":{"admin-only":{"defaultValue":"false","description":"Whether + the server should start in running mode ADMIN_ONLY when it restarts","type":"bool"},"use-current-server-config":{"defaultValue":"false","description":null,"type":"bool"}}},{"name":"Resume","parameters":{}},{"name":"Shutdown","parameters":{"restart":{"defaultValue":"false","description":"Should + the server be restarted after shutdown?","type":"bool"},"timeout":{"defaultValue":"0","description":"Timeout + in seconds to allow active connections to drain","type":"int"}}},{"name":"Suspend","parameters":{"timeout":{"defaultValue":"0","description":"Timeout + in seconds to allow active connections to drain","type":"int"}}},{"name":"Deploy","parameters":{}},{"name":"Undeploy","parameters":{}},{"name":"Enable + Deployment","parameters":{}},{"name":"Disable Deployment","parameters":{}},{"name":"Restart + Deployment","parameters":{}}],"properties":{}},"parentId":null,"metrics":[{"displayName":"NonHeap + Max","family":"jvm_memory_bytes_max","unit":"BYTES","expression":"jvm_memory_bytes_max{area=\"nonheap\",feed_id=\"attilan\"}","labels":{"area":"nonheap","feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Servlet Request Time","family":"wildfly_servlet_total_request_time","unit":"NONE","expression":"sum(wildfly_servlet_total_request_time{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Expired Web Sessions","family":"wildfly_deployment_expired_sessions","unit":"NONE","expression":"sum(wildfly_deployment_expired_sessions{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"NonHeap + Committed","family":"jvm_memory_bytes_committed","unit":"BYTES","expression":"jvm_memory_bytes_committed{area=\"nonheap\",feed_id=\"attilan\"}","labels":{"area":"nonheap","feed_id":"attilan"},"properties":{}},{"displayName":"Heap + Max","family":"jvm_memory_bytes_max","unit":"BYTES","expression":"jvm_memory_bytes_max{area=\"heap\",feed_id=\"attilan\"}","labels":{"area":"heap","feed_id":"attilan"},"properties":{}},{"displayName":"Heap + Used","family":"jvm_memory_bytes_used","unit":"BYTES","expression":"jvm_memory_bytes_used{area=\"heap\",feed_id=\"attilan\"}","labels":{"area":"heap","feed_id":"attilan"},"properties":{}},{"displayName":"Accumulated + GC Duration","family":"jvm_gc_collection_seconds_sum","unit":"SECONDS","expression":"sum(jvm_gc_collection_seconds_sum{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Max Active Web Sessions","family":"wildfly_deployment_max_active_sessions","unit":"NONE","expression":"sum(wildfly_deployment_max_active_sessions{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Server + Availability","family":"wildfly_server_availability","unit":"NONE","expression":"wildfly_server_availability{feed_id=\"attilan\"}","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"up","family":"up","unit":"NONE","expression":"up{feed_id=\"attilan\"}","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Active Web Sessions","family":"wildfly_deployment_active_sessions","unit":"NONE","expression":"sum(wildfly_deployment_active_sessions{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"NonHeap + Used","family":"jvm_memory_bytes_used","unit":"BYTES","expression":"jvm_memory_bytes_used{area=\"nonheap\",feed_id=\"attilan\"}","labels":{"area":"nonheap","feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Servlet Request Count","family":"wildfly_servlet_request_count","unit":"NONE","expression":"sum(wildfly_servlet_request_count{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Aggregated + Rejected Web Sessions","family":"wildfly_deployment_rejected_sessions","unit":"NONE","expression":"sum(wildfly_deployment_rejected_sessions{feed_id=\"attilan\"})","labels":{"feed_id":"attilan"},"properties":{}},{"displayName":"Heap + Committed","family":"jvm_memory_bytes_committed","unit":"BYTES","expression":"jvm_memory_bytes_committed{area=\"heap\",feed_id=\"attilan\"}","labels":{"area":"heap","feed_id":"attilan"},"properties":{}},{"displayName":"Thread + Count","family":"jvm_threads_current","unit":"NONE","expression":"jvm_threads_current{feed_id=\"attilan\"}","labels":{"feed_id":"attilan"},"properties":{}}],"properties":{},"config":{"Suspend + State":"RUNNING","Bound Address":"127.0.0.1","Running Mode":"NORMAL","Home + Directory":"/home/lponce/git/hawkular-services/dist/target/hawkular-services-dist-1.0.0.Final-SNAPSHOT","Version":"1.0.0.Final-SNAPSHOT","Node + Name":"attilan","Server State":"running","Product Name":"Hawkular","Hostname":"attilan","UUID":"b9e67075-9186-4dee-95fe-b9a8068c27fc","Name":"attilan"}}],"resultSize":1,"startOffset":0}' + http_version: + recorded_at: Tue, 05 Dec 2017 13:22:50 GMT - request: method: get uri: http://localhost:8080/hawkular/alerter/prometheus/endpoint @@ -15,6 +128,8 @@ http_interactions: - hawkular-client-ruby Host: - localhost:8080 + Authorization: + - Basic amRvZTpwYXNzd29yZA== response: status: code: 200 @@ -31,15 +146,15 @@ http_interactions: Content-Length: - '21' Date: - - Tue, 28 Nov 2017 10:51:11 GMT + - Tue, 05 Dec 2017 13:22:50 GMT body: encoding: UTF-8 string: http://localhost:9090 http_version: - recorded_at: Tue, 28 Nov 2017 10:51:11 GMT + recorded_at: Tue, 05 Dec 2017 13:22:50 GMT - request: method: get - uri: http://localhost:9090/api/v1/query_range?end=2017-11-28T15:00:00Z&query=up%7Bfeed_id=%22attilan%22%7D&start=2017-11-28T10:00:00Z&step=60m + uri: http://localhost:9090/api/v1/query_range?end=2017-11-05T11:25:00Z&query=up%7Bfeed_id=%22attilan%22%7D&start=2017-11-05T11:20:00Z&step=5s body: encoding: US-ASCII string: '' @@ -54,6 +169,8 @@ http_interactions: - application/json Host: - localhost:9090 + Authorization: + - Basic amRvZTpwYXNzd29yZA== response: status: code: 200 @@ -70,12 +187,12 @@ http_interactions: Content-Type: - application/json Date: - - Tue, 28 Nov 2017 10:51:11 GMT + - Tue, 05 Dec 2017 13:22:50 GMT Content-Length: - - '184' + - '63' body: encoding: UTF-8 - string: '{"status":"success","data":{"resultType":"matrix","result":[{"metric":{"__name__":"up","feed_id":"attilan","instance":"127.0.0.1:9779","job":"hawkular"},"values":[[1511863200,"1"]]}]}}' + string: '{"status":"success","data":{"resultType":"matrix","result":[]}}' http_version: - recorded_at: Tue, 28 Nov 2017 10:51:11 GMT + recorded_at: Tue, 05 Dec 2017 13:22:50 GMT recorded_with: VCR 3.0.3