Skip to content

Instantly share code, notes, and snippets.

View davidkarlsen's full-sized avatar
🤠

David J. M. Karlsen davidkarlsen

🤠
View GitHub Profile
apiVersion: v1
items:
- apiVersion: local.openebs.io/v1alpha1
kind: LVMVolume
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"local.openebs.io/v1alpha1","kind":"LVMVolume","metadata":{"annotations":{},"creationTimestamp":"2022-05-10T08:36:18Z","finalizers":["lvm.openebs.io/finalizer"],"generation":4,"labels":{"kubernetes.io/nodename":"alt-aot-g-oco03.unix.cosng.net"},"name":"pvc-050b0904-70c2-4ebe-b828-af415f347481","namespace":"openebs","resourceVersion":"767147162","uid":"5f15371b-67b4-44da-8d96-06286fa13f16"},"spec":{"capacity":"53687091200","ownerNodeID":"alt-aot-g-oco03.unix.cosng.net","shared":"no","thinProvision":"no","vgPattern":"^datavg$","volGroup":"datavg"},"status":{"state":"Ready"}}
creationTimestamp: "2022-05-18T15:21:05Z"
finalizers:
This file has been truncated, but you can view the full file.
I0518 15:21:48.641645 1 main.go:136] LVM Driver Version :- 0.9.0 - commit :- 9cee6cb97df28ab90bcf71261421d1d917d5d6fd
I0518 15:21:48.641704 1 main.go:137] DriverName: local.csi.openebs.io Plugin: agent EndPoint: unix:///plugin/csi.sock NodeID: alt-aot-g-oco02.unix.cosng.net SetIOLimits: false ContainerRuntime: containerd RIopsPerGB: [] WIopsPerGB: [] RBpsPerGB: [] WBpsPerGB: []
I0518 15:21:48.641728 1 driver.go:48] enabling volume access mode: SINGLE_NODE_WRITER
I0518 15:21:48.644696 1 grpc.go:190] Listening for connections on address: &net.UnixAddr{Name:"//plugin/csi.sock", Net:"unix"}
I0518 15:21:48.650918 1 builder.go:107] Creating event broadcaster
I0518 15:21:48.651130 1 snapshot.go:165] Starting Snap controller
I0518 15:21:48.651140 1 snapshot.go:168] Waiting for informer caches to sync
I0518 15:21:48.651248 1 builder.go:107] Creating event broadcaster
I0518 15:21:48.651349 1 volume.go:265] Starting Vol controller
I0518 15:21:48.651357 1 volume
This file has been truncated, but you can view the full file.
k logs openebs-lvm-localpv-controller-0 -c openebs-lvm-plugin> /tmp/debug.log:
I0528 21:17:42.312781 1 grpc.go:72] GRPC call: /csi.v1.Controller/GetCapacity requests {"accessible_topology":{"segments":{"kubernetes.io/hostname":"alt-aot-g-oco03.unix.cosng.net","openebs.io/nodename":"alt-aot-g-oco03.unix.cosng.net"}},"parameters":{"fsType":"xfs","shared":"no","thinProvision":"no","volgroup":"datavg"},"volume_capabilities":[{"AccessType":{"Mount":{}},"access_mode":{}}]}
I0528 21:17:42.312922 1 grpc.go:81] GRPC response: {"available_capacity":170720755712}
I0528 21:17:42.313450 1 grpc.go:72] GRPC call: /csi.v1.Controller/GetCapacity requests {"accessible_topology":{"segments":{"kubernetes.io/hostname":"alt-aot-g-oco01.unix.cosng.net","openebs.io/nodename":"alt-aot-g-oco01.unix.cosng.net"}},"parameters":{"fsType":"xfs","shared":"no","thinProvision":"no","volgroup":"datavg"},"volume_capabilities":[{"AccessType":{"Mount":{}},"access_mode":{}}]}
I0528 21:17:42.313550 1 grpc.go:81] GRPC respons
blacklistObjectNames: [ "WebSphere:type=*Stats,name=*jsp" ]
whitelistObjectNames: [ "*:name=UCP-*,type=JDBCConnectionPoolStatistics", "WebSphere:type=*Stats,*", "*:type=CacheStatistics,CacheManager=*,name=*", "*:bus.id=*,type=Performance.Counter.Server,service=*,port=*,operation=*", "metrics:name=*" ]
rules:
- pattern: "<name=UCP-(.*),*type=JDBCConnectionPoolStatistics><>(\\w+)"
name: ucp_jdbcconnectionpoolstatistics_$2
labels:
pool: "$1"
- pattern: ".*WebSphere.*"
- pattern: ".*CacheStatistics.*"
- pattern: ".*cxf.*type=.*, service=\"(\\S+)\", port=\"(\\S+)\", operation=\"(\\S+)\"><>(\\w+)"
@davidkarlsen
davidkarlsen / alert.sh
Created June 18, 2017 20:58 — forked from cherti/alert.sh
send a dummy alert to prometheus-alertmanager
#!/bin/bash
name=$RANDOM
url='http://localhost:9093/api/v1/alerts'
echo "firing up alert $name"
# change url o
curl -XPOST $url -d "[{
\"status\": \"firing\",

Keybase proof

I hereby claim:

  • I am davidkarlsen on github.
  • I am davidkarlsen (https://keybase.io/davidkarlsen) on keybase.
  • I have a public key ASDvEZCv3NfT-SZt5b-Wuloip8r1MSOtOaE6quydPDExfQo

To claim this, I am signing this object:

workflow library script:
def call(composeFile, String services, boolean doDebug = false, Closure body) {
try {
withEnv( dockerComposeUp( composeFile, services ) ) {
debug(doDebug)
body()
}
}
finally {
@davidkarlsen
davidkarlsen / haproxy.log
Created October 31, 2016 20:06 — forked from matschaffer/haproxy.log
haproxy log & mtail script with buckets
2016-05-10T08:13:03+00:00 localhost haproxy[21]: 192.168.99.1:52177 [10/May/2016:08:12:58.762] http-in webapp-http/webapp 0/0/0/5003/5003 200 185 - - ---- 1/1/1/1/0 0/0 "GET / HTTP/1.1"
2016-05-10T08:13:03+00:00 localhost haproxy[21]: 192.168.99.1:52178 [10/May/2016:08:12:58.916] http-in webapp-http/webapp 0/0/0/5002/5002 200 185 - - ---- 0/0/0/0/0 0/0 "GET / HTTP/1.1"
2016-05-10T08:49:25+00:00 localhost haproxy[21]: 192.168.99.1:53129 [10/May/2016:08:49:20.815] http-in webapp-http/webapp 161/0/1/5006/5168 200 185 - - ---- 0/0/0/0/0 0/0 "GET / HTTP/1.1"
2016-05-10T08:49:32+00:00 localhost haproxy[21]: 192.168.99.1:53131 [10/May/2016:08:49:27.270] http-in webapp-http/webapp 163/0/0/5005/5168 200 185 - - ---- 0/0/0/0/0 0/0 "GET / HTTP/1.1"
2016-05-16T00:30:59+00:00 localhost haproxy[20]: Proxy http-in started.
2016-05-16T00:32:42+00:00 localhost haproxy[20]: Proxy http-in started.
2016-05-16T00:32:56+00:00 localhost haproxy[21]: 192.168.99.1:52781 [16/May/2016:00:32:51.524] http-in webapp-http/webapp 175/0/1/50