Last active
January 2, 2020 21:48
-
-
Save rdpanek/5f701bf714fc8a44f1aa16cc1f81580d to your computer and use it in GitHub Desktop.
Install steps
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
# Elasticsearch | |
sysctl -w vm.max_map_count=262144 | |
docker run --name elastic -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.7.1 bin/elasticsearch -Enetwork.host=0.0.0.0 | |
# Kibana | |
docker run --name kibana -d --link elastic:elasticsearch -p 5601:5601 docker.elastic.co/kibana/kibana:6.7.1 | |
# Selenium | |
docker run -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:3.141.59-yttrium | |
# Install Google Chrome | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome-stable_current_amd64.deb | |
# Run as root | |
google-chrome --no-sandbox | |
# Add performance entries mapping | |
- Open Kibana (localhost:5601) > DevTools > paste mapping: | |
PUT _template/wpt2-performance-entries | |
{ | |
"index_patterns": ["wpt2-performance-entries-*"], | |
"settings": { | |
"number_of_shards": 2, | |
"number_of_replicas" : 1, | |
"index.translog.durability": "async", | |
"index.refresh_interval": "10s" | |
}, | |
"version": 1, | |
"mappings": { | |
"wpt2-performance-entries": { | |
"properties": { | |
"connectEnd": { | |
"type": "float" | |
}, | |
"connectStart": { | |
"type": "float" | |
}, | |
"decodedBodySize": { | |
"type": "integer" | |
}, | |
"domComplete": { | |
"type": "float" | |
}, | |
"domContentLoadedEventEnd": { | |
"type": "float" | |
}, | |
"domContentLoadedEventStart": { | |
"type": "float" | |
}, | |
"domInteractive": { | |
"type": "float" | |
}, | |
"domainLookupEnd": { | |
"type": "float" | |
}, | |
"domainLookupStart": { | |
"type": "float" | |
}, | |
"duration": { | |
"type": "float" | |
}, | |
"encodedBodySize": { | |
"type": "integer" | |
}, | |
"sequence" : { | |
"type" : "long" | |
}, | |
"entryType": { | |
"type": "keyword" | |
}, | |
"fetchStart": { | |
"type": "float" | |
}, | |
"initiatorType": { | |
"type": "keyword" | |
}, | |
"loadEventEnd": { | |
"type": "float" | |
}, | |
"loadEventStart": { | |
"type": "float" | |
}, | |
"name": { | |
"type": "keyword" | |
}, | |
"nextHopProtocol": { | |
"type": "keyword" | |
}, | |
"redirectCount": { | |
"type": "short" | |
}, | |
"redirectEnd": { | |
"type": "float" | |
}, | |
"redirectStart": { | |
"type": "float" | |
}, | |
"requestStart": { | |
"type": "float" | |
}, | |
"responseEnd": { | |
"type": "float" | |
}, | |
"responseStart": { | |
"type": "float" | |
}, | |
"responseTime": { | |
"type": "float" | |
}, | |
"ttfb": { | |
"type": "float" | |
}, | |
"secureConnectionStart": { | |
"type": "float" | |
}, | |
"serverTiming": { | |
"type": "object" | |
}, | |
"startTime": { | |
"type": "float" | |
}, | |
"toJSON": { | |
"type": "object" | |
}, | |
"transferSize": { | |
"type": "long" | |
}, | |
"type": { | |
"type": "keyword" | |
}, | |
"unloadEventEnd": { | |
"type": "float" | |
}, | |
"unloadEventStart": { | |
"type": "float" | |
}, | |
"workerStart": { | |
"type": "float" | |
}, | |
"timestamp": { | |
"type": "date" | |
}, | |
"uuidAction": { | |
"type": "text" | |
}, | |
"env": { | |
"type": "keyword" | |
}, | |
"spec": { | |
"type": "keyword" | |
}, | |
"context": { | |
"type": "keyword" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment