Created
October 11, 2017 07:28
-
-
Save codefromthecrypt/846b2b2b03a18e64f8f1330d99687a7d to your computer and use it in GitHub Desktop.
create some load against your docker server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do curl -s http://192.168.99.100:9411/api/v2/spans -H'Content-Type: application/json' -H 'Expect:' -d'[{ | |
"traceId": "4d1e00c0db9010db86154a4ba6e91385", | |
"parentId": "86154a4ba6e91385", | |
"id": "4d1e00c0db9010db", | |
"kind": "CLIENT", | |
"name": "get", | |
"timestamp": 1472470996199000, | |
"duration": 207000, | |
"localEndpoint": { | |
"serviceName": "frontend", | |
"ipv6": "7::0.128.128.127" | |
}, | |
"remoteEndpoint": { | |
"serviceName": "backend", | |
"ipv4": "192.168.99.101", | |
"port": 9000 | |
}, | |
"annotations": [ | |
{ | |
"timestamp": 1472470996238000, | |
"value": "foo" | |
}, | |
{ | |
"timestamp": 1472470996403000, | |
"value": "bar" | |
} | |
], | |
"tags": { | |
"http.path": "/api", | |
"clnt/finagle.version": "6.45.0" | |
} | |
}, | |
{ | |
"traceId": "4d1e00c0db9010db86154a4ba6e91385", | |
"parentId": "86154a4ba6e91385", | |
"id": "4d1e00c0db9010db", | |
"kind": "CLIENT", | |
"name": "get", | |
"timestamp": 1472470996199000, | |
"duration": 207000, | |
"localEndpoint": { | |
"serviceName": "frontend", | |
"ipv6": "7::0.128.128.127" | |
}, | |
"remoteEndpoint": { | |
"serviceName": "backend", | |
"ipv4": "192.168.99.101", | |
"port": 9000 | |
}, | |
"annotations": [ | |
{ | |
"timestamp": 1472470996238000, | |
"value": "foo" | |
}, | |
{ | |
"timestamp": 1472470996403000, | |
"value": "bar" | |
} | |
], | |
"tags": { | |
"http.path": "/api", | |
"clnt/finagle.version": "6.45.0" | |
} | |
}, | |
{ | |
"traceId": "4d1e00c0db9010db86154a4ba6e91385", | |
"parentId": "86154a4ba6e91385", | |
"id": "4d1e00c0db9010db", | |
"kind": "CLIENT", | |
"name": "get", | |
"timestamp": 1472470996199000, | |
"duration": 207000, | |
"localEndpoint": { | |
"serviceName": "frontend", | |
"ipv6": "7::0.128.128.127" | |
}, | |
"remoteEndpoint": { | |
"serviceName": "backend", | |
"ipv4": "192.168.99.101", | |
"port": 9000 | |
}, | |
"annotations": [ | |
{ | |
"timestamp": 1472470996238000, | |
"value": "foo" | |
}, | |
{ | |
"timestamp": 1472470996403000, | |
"value": "bar" | |
} | |
], | |
"tags": { | |
"http.path": "/api", | |
"clnt/finagle.version": "6.45.0" | |
} | |
}, | |
{ | |
"traceId": "4d1e00c0db9010db86154a4ba6e91385", | |
"parentId": "86154a4ba6e91385", | |
"id": "4d1e00c0db9010db", | |
"kind": "CLIENT", | |
"name": "get", | |
"timestamp": 1472470996199000, | |
"duration": 207000, | |
"localEndpoint": { | |
"serviceName": "frontend", | |
"ipv6": "7::0.128.128.127" | |
}, | |
"remoteEndpoint": { | |
"serviceName": "backend", | |
"ipv4": "192.168.99.101", | |
"port": 9000 | |
}, | |
"annotations": [ | |
{ | |
"timestamp": 1472470996238000, | |
"value": "foo" | |
}, | |
{ | |
"timestamp": 1472470996403000, | |
"value": "bar" | |
} | |
], | |
"tags": { | |
"http.path": "/api", | |
"clnt/finagle.version": "6.45.0" | |
} | |
}, | |
{ | |
"traceId": "4d1e00c0db9010db86154a4ba6e91385", | |
"parentId": "86154a4ba6e91385", | |
"id": "4d1e00c0db9010db", | |
"kind": "CLIENT", | |
"name": "get", | |
"timestamp": 1472470996199000, | |
"duration": 207000, | |
"localEndpoint": { | |
"serviceName": "frontend", | |
"ipv6": "7::0.128.128.127" | |
}, | |
"remoteEndpoint": { | |
"serviceName": "backend", | |
"ipv4": "192.168.99.101", | |
"port": 9000 | |
}, | |
"annotations": [ | |
{ | |
"timestamp": 1472470996238000, | |
"value": "foo" | |
}, | |
{ | |
"timestamp": 1472470996403000, | |
"value": "bar" | |
} | |
], | |
"tags": { | |
"http.path": "/api", | |
"clnt/finagle.version": "6.45.0" | |
} | |
}, | |
{ | |
"traceId": "4d1e00c0db9010db86154a4ba6e91385", | |
"parentId": "86154a4ba6e91385", | |
"id": "4d1e00c0db9010db", | |
"kind": "CLIENT", | |
"name": "get", | |
"timestamp": 1472470996199000, | |
"duration": 207000, | |
"localEndpoint": { | |
"serviceName": "frontend", | |
"ipv6": "7::0.128.128.127" | |
}, | |
"remoteEndpoint": { | |
"serviceName": "backend", | |
"ipv4": "192.168.99.101", | |
"port": 9000 | |
}, | |
"annotations": [ | |
{ | |
"timestamp": 1472470996238000, | |
"value": "foo" | |
}, | |
{ | |
"timestamp": 1472470996403000, | |
"value": "bar" | |
} | |
], | |
"tags": { | |
"http.path": "/api", | |
"clnt/finagle.version": "6.45.0" | |
} | |
}, | |
{ | |
"traceId": "4d1e00c0db9010db86154a4ba6e91385", | |
"parentId": "86154a4ba6e91385", | |
"id": "4d1e00c0db9010db", | |
"kind": "CLIENT", | |
"name": "get", | |
"timestamp": 1472470996199000, | |
"duration": 207000, | |
"localEndpoint": { | |
"serviceName": "frontend", | |
"ipv6": "7::0.128.128.127" | |
}, | |
"remoteEndpoint": { | |
"serviceName": "backend", | |
"ipv4": "192.168.99.101", | |
"port": 9000 | |
}, | |
"annotations": [ | |
{ | |
"timestamp": 1472470996238000, | |
"value": "foo" | |
}, | |
{ | |
"timestamp": 1472470996403000, | |
"value": "bar" | |
} | |
], | |
"tags": { | |
"http.path": "/api", | |
"clnt/finagle.version": "6.45.0" | |
} | |
}, | |
{ | |
"traceId": "4d1e00c0db9010db86154a4ba6e91385", | |
"parentId": "86154a4ba6e91385", | |
"id": "4d1e00c0db9010db", | |
"kind": "CLIENT", | |
"name": "get", | |
"timestamp": 1472470996199000, | |
"duration": 207000, | |
"localEndpoint": { | |
"serviceName": "frontend", | |
"ipv6": "7::0.128.128.127" | |
}, | |
"remoteEndpoint": { | |
"serviceName": "backend", | |
"ipv4": "192.168.99.101", | |
"port": 9000 | |
}, | |
"annotations": [ | |
{ | |
"timestamp": 1472470996238000, | |
"value": "foo" | |
}, | |
{ | |
"timestamp": 1472470996403000, | |
"value": "bar" | |
} | |
], | |
"tags": { | |
"http.path": "/api", | |
"clnt/finagle.version": "6.45.0" | |
} | |
}, | |
{ | |
"traceId": "4d1e00c0db9010db86154a4ba6e91385", | |
"parentId": "86154a4ba6e91385", | |
"id": "4d1e00c0db9010db", | |
"kind": "CLIENT", | |
"name": "get", | |
"timestamp": 1472470996199000, | |
"duration": 207000, | |
"localEndpoint": { | |
"serviceName": "frontend", | |
"ipv6": "7::0.128.128.127" | |
}, | |
"remoteEndpoint": { | |
"serviceName": "backend", | |
"ipv4": "192.168.99.101", | |
"port": 9000 | |
}, | |
"annotations": [ | |
{ | |
"timestamp": 1472470996238000, | |
"value": "foo" | |
}, | |
{ | |
"timestamp": 1472470996403000, | |
"value": "bar" | |
} | |
], | |
"tags": { | |
"http.path": "/api", | |
"clnt/finagle.version": "6.45.0" | |
} | |
}]'; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment