raintank / env-load Goto Github PK
View Code? Open in Web Editor NEWcreate artificial, but realistic loads on raintank environments
create artificial, but realistic loads on raintank environments
env-load -auth admin:admin -orgs=120 load
2015/10/01 14:27:38 getting list of collectors to use
request to http://admin:admin@localhost/api/collectors/ with body data {"Slug":null,"Name":null,"Tag":null,"Public":"true","OrgId":0,"Result":null}
[1]
>> creating user fake_user_1
request to http://admin:admin@localhost/api/admin/users with body data {"email":"[email protected]","login":"fake_user_1","name":"fake_user_1","password":"fake_pass_1"}
>> creating endpoint fake_org_1_endpoint_1
request to http://fake_user_1:fake_pass_1@localhost/api/endpoints with body data {"name":"fake_org_1_endpoint_1","tags":[],"monitors":[{"endpoint_id":0,"monitor_type_id":3,"collector_ids":[1],"collector_tags":[],"settings":[{"variable":"hostname","value":"localhost"}],"health_settings":{"num_collectors":2,"steps":1,"notifications":{"enabled":true,"addresses":""}},"frequency":10,"enabled":true},{"endpoint_id":0,"monitor_type_id":4,"collector_ids":[1],"collector_tags":[],"settings":[{"variable":"name","value":"localhost"},{"variable":"type","value":"A"},{"variable":"server","value":"8.8.8.8"},{"variable":"port","value":"53"},{"variable":"protocol","value":"udp"}],"health_settings":{"num_collectors":2,"steps":1,"notifications":{"enabled":true,"addresses":""}},"frequency":10,"enabled":true},{"endpoint_id":0,"monitor_type_id":1,"collector_ids":[1],"collector_tags":[],"settings":[{"variable":"host","value":"localhost"},{"variable":"port","value":"80"},{"variable":"path","value":"/"},{"variable":"method","value":"GET"},{"variable":"expectRegex","value":""},{"variable":"headers","value":"Accept-Encoding: gzip\nUser-Agent: raintank collector\n"}],"health_settings":{"num_collectors":2,"steps":1,"notifications":{"enabled":true,"addresses":""}},"frequency":10,"enabled":true}]}
response BODY [{"fieldNames":["EndpointId"],"classification":"RequiredError","message":"Required"},{"fieldNames":["EndpointId"],"classification":"RequiredError","message":"Required"},{"fieldNames":["EndpointId"],"classification":"RequiredError","message":"Required"}]
2015/10/01 14:27:38 422 status code 422
this used to work fine. but i think something changed wrt the endpoint validation, perhaps the multi-value validation stuff that @woodsaj built?
need to be gradually increase amount of orgs,
want to make load ops idempotent so that if you already have 5 and you ask for 10, it adds 5 more
to clean env but mostly to remove all fake load and to make it easy to create new entries with different settings.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.