Skip to content

Instantly share code, notes, and snippets.

View garethahealy's full-sized avatar

Gareth Healy garethahealy

View GitHub Profile
apiVersion: v1
kind: Template
labels:
application: nexus-ephemeral
createdBy: template-nexus
metadata:
annotations:
description: Nexus service, with ephemeral storage. Scaling to more than one replica
is not supported
tags: repository-managers,nexus
apiVersion: v1
kind: Template
labels:
application: nexus-ephemeral
createdBy: template-nexus
metadata:
annotations:
description: Nexus service, with ephemeral storage. Scaling to more than one replica
is not supported
tags: repository-managers,nexus
@garethahealy
garethahealy / gist:09c5769bd348919d39d9604381d3f8ae
Created September 22, 2016 13:10
metrics/?type=gauge - not working - Hawkular-Tenant=origin-metrics
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> HTTP: GET
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> URI: http://192.168.99.100:8080/hawkular/metrics/metrics/?type=gauge&tags=pod_namespace%3Azproject9%2Ccontainer_name%3Astress
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Headers: [Accept=application/json,Accept-Encoding=gzip, deflate,Hawkular-Tenant=origin-metrics]
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Data: null
[main] DEBUG org.hawkular.client.core.jaxrs.RestResponseFilter - << Response headers:[Cache-Control=no-cache, no-store, must-revalidate,Connection=keep-alive,Content-Length=187,Content-Type=application/json,Date=Thu, 22 Sep 2016 13:08:56 GMT,Expires=0,Pragma=no-cache,Server=WildFly/10,X-Powered-By=Undertow/1]
[main] DEBUG org.hawkular.client.core.jaxrs.RestResponseFilter - << Status -> code:500, message:Internal Server Error
[main] DEBUG org.hawkular.client.core.DefaultClientResponse - Client Response: Statu
@garethahealy
garethahealy / gist:c7ac1208810f8374063dbbd69295f575
Created September 22, 2016 13:07
metrics/?type=gauge - working - Hawkular-Tenant=originmetrics
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> HTTP: GET
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> URI: http://192.168.99.100:8080/hawkular/metrics/metrics/?type=gauge&tags=pod_namespace%3Azproject9%2Ccontainer_name%3Astress
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Headers: [Accept=application/json,Accept-Encoding=gzip, deflate,Hawkular-Tenant=originmetrics]
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Data: null
[main] DEBUG org.hawkular.client.core.jaxrs.RestResponseFilter - << Response headers:[Cache-Control=no-cache, no-store, must-revalidate,Date=Thu, 22 Sep 2016 13:04:22 GMT,Expires=0,Pragma=no-cache,Server=WildFly/10,X-Powered-By=Undertow/1]
[main] DEBUG org.hawkular.client.core.jaxrs.RestResponseFilter - << Status -> code:204, message:No Content
[main] DEBUG org.hawkular.client.core.DefaultClientResponse - Client Response: Status Code:204, Is Success:false, Error Message:-, Raw Entity:null, Entity:[null]
@garethahealy
garethahealy / gist:d91751a7a24fabd204ab30f03af0eea7
Created September 22, 2016 13:05
ReadFailureException: Cassandra failure during read query
hawkular-cassandra_1 | WARN 13:03:24 Read 0 live rows and 17760 tombstone cells for query SELECT * FROM hawkular_metrics.data WHERE tenant_id, type, metric, dpart = origin-metrics, 0, hawkular-metrics/613c796e-4787-48d5-b853-09576d1c13ca/cpu/usage, 0 LIMIT 1 PER PARTITION LIMIT 1 (see tombstone_warn_threshold)
hawkular-cassandra_1 | WARN 13:03:24 Read 0 live rows and 17760 tombstone cells for query SELECT * FROM hawkular_metrics.data WHERE tenant_id, type, metric, dpart = origin-metrics, 0, hawkular-metrics/613c796e-4787-48d5-b853-09576d1c13ca/cpu/usage, 0 AND time > f1f0e320-80c4-11e6-8846-2f92b65bfc29 AND time <= 13814000-1dd2-11b2-8846-2f92b65bfc29 LIMIT 1 (see tombstone_warn_threshold)
hawkular-cassandra_1 | WARN 13:03:24 Read 0 live rows and 17760 tombstone cells for query SELECT * FROM hawkular_metrics.data WHERE tenant_id, type, metric, dpart = origin-metrics, 0, hawkular-metrics/613c796e-4787-48d5-b853-09576d1c13ca/cpu/usage, 0 AND time > f1f0e320-80c4-11e6-8846-2f92b65bfc29 AND time <= 13814000
@garethahealy
garethahealy / gist:e69634ddcd37831c5cf528461bc5122f
Created September 15, 2016 15:02
hawkular-services-server.log
2016-09-15 14:52:47,528 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final
2016-09-15 14:52:48,141 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
2016-09-15 14:52:48,312 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: Hawkular 0.0.12.Final (WildFly Core 2.0.10.Final) starting
2016-09-15 14:52:51,498 INFO [org.hawkular.nest.extension.log] (ServerService Thread Pool -- 2) HAWKBUS130015: Initializing Nest subsystem
2016-09-15 14:52:52,896 INFO [org.hawkular.nest.extension.log] (ServerService Thread Pool -- 31) HAWKBUS130008: [8] deployments found
2016-09-15 14:52:52,903 INFO [org.hawkular.nest.extension.log] (ServerService Thread Pool -- 31) HAWKBUS130009: 1. Deploying [hawkular-alerts-rest.war]
2016-09-15 14:52:52,908 INFO [org.hawkular.nest.extension.log] (ServerService Thread Pool -- 31) HAWKBUS130009: 2. Deploying [hawkular-inventory-dist.war]
2016-09-15 14:52:52,944 INFO [org.hawkular.nest.extension.log] (ServerService Thread Pool -- 31) HAWKBUS130009: 3. Deployin
@garethahealy
garethahealy / gist:0a7d7403f329d8768ab4cab4dcf2c409
Created September 14, 2016 15:59
/graph - Unable to create the GraphSON dump
hawkular-services_1 | 15:59:00,584 WARN [org.hawkular.inventory.rest] (default task-5) RestEasy exception, : java.io.IOException: Pipe not connected
hawkular-services_1 | at java.io.PipedInputStream.read(PipedInputStream.java:305)
hawkular-services_1 | at org.jboss.resteasy.plugins.providers.InputStreamProvider.writeTo(InputStreamProvider.java:55)
hawkular-services_1 | at org.jboss.resteasy.plugins.providers.InputStreamProvider.writeTo(InputStreamProvider.java:25)
hawkular-services_1 | at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.writeTo(AbstractWriterInterceptorContext.java:131)
hawkular-services_1 | at org.jboss.resteasy.core.interception.ServerWriterInterceptorContext.writeTo(ServerWriterInterceptorContext.java:60)
hawkular-services_1 | at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.proceed(AbstractWriterInterceptorContext.java:120)
hawkular-services_1 | at org.jboss.resteasy.secur
@garethahealy
garethahealy / gist:e397df61965df7b766b41a30a3f33ca2
Created September 14, 2016 14:44
treeHash - cast exception client
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> HTTP: POST
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> URI: http://192.168.99.100:8080/hawkular/inventory/entity/t;unit-testing/e
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Headers: [Accept=application/json,Accept-Encoding=gzip, deflate,Content-Type=application/json,Hawkular-Tenant=unit-testing]
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Data: {
"properties" : { },
"id" : "ua2shhq9",
"outgoing" : {
"customRel" : [ "/t;unit-testing" ]
},
"incoming" : { }
@garethahealy
garethahealy / gist:e5004563be11cbc55ea6fcf1bb2907d6
Created September 14, 2016 14:43
Cannot cast org.hawkular.inventory.base.BaseEnvironments$Single to org.hawkular.inventory.api.Synced$Single
hawkular-services_1 | 90730454 [default task-8] WARN org.hawkular.inventory.rest - RestEasy exception,
hawkular-services_1 | java.lang.ClassCastException: Cannot cast org.hawkular.inventory.base.BaseEnvironments$Single to org.hawkular.inventory.api.Synced$Single
hawkular-services_1 | at java.lang.Class.cast(Class.java:3369)
hawkular-services_1 | at org.hawkular.inventory.api.Inventory$2.visitEnvironment(Inventory.java:358)
hawkular-services_1 | at org.hawkular.inventory.api.Inventory$2.visitEnvironment(Inventory.java:350)
hawkular-services_1 | at org.hawkular.inventory.paths.ElementTypeVisitor.accept(ElementTypeVisitor.java:32)
hawkular-services_1 | at org.hawkular.inventory.paths.Path$Segment.accept(Path.java:648)
hawkular-services_1 | at org.hawkular.inventory.paths.CanonicalPath.accept(CanonicalPath.java:161)
hawkular-services_1 | at org.hawkular.inventory.api.Inventory.inspect(Inventory.java:350)
hawkular-services_1 | at
@garethahealy
garethahealy / gist:a53d260ad51eef44b7df39fb450cf5b0
Created September 7, 2016 16:00
GET /hawkular/metrics/strings/{id}/raw - with no limit and then limit 5
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> HTTP: POST
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> URI: http://192.168.99.100:8080/hawkular/metrics/strings/zltjwvxz/raw
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Headers: [Accept=application/json,Accept-Encoding=gzip, deflate,Content-Type=application/json,Hawkular-Tenant=unit-testing]
[main] DEBUG org.hawkular.client.core.jaxrs.RestRequestFilter - >> Data: [ {
"timestamp" : 1473249531837,
"value" : "a7ke3zjy",
"tags" : {
"pod_namespace" : "zct4omfi",
"container_name" : "raowz90p"
}