This file contains 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
ERROR in ./~/css-loader!./~/postcss-loader!./~/less-loader!./~/extract-text-webpack-plugin/loader.js?{"omit":1,"extract":true,"remove":true}!./~/style-loader!./~/css-loader!./~/postcss-loader!./~/less-loader!./src/styles/loading.less | |
Module build failed: ModuleBuildError: Module build failed: ReferenceError: Promise is not defined | |
at Object.module.exports (/home/ubuntu/fuel-devops-portal/node_modules/postcss-loader/index.js:51:5) | |
at DependenciesBlock.onModuleBuildFailed (/home/ubuntu/fuel-devops-portal/node_modules/webpack/node_modules/webpack-core/lib/NormalModuleMixin.js:315:19) | |
at nextLoader (/home/ubuntu/fuel-devops-portal/node_modules/webpack/node_modules/webpack-core/lib/NormalModuleMixin.js:270:31) | |
at /home/ubuntu/fuel-devops-portal/node_modules/webpack/node_modules/webpack-core/lib/NormalModuleMixin.js:292:15 | |
at runSyncOrAsync (/home/ubuntu/fuel-devops-portal/node_modules/webpack/node_modules/webpack-core/lib/NormalModuleMixin.js:173:4) | |
at nextLoader (/home/ubuntu/fuel-devops-p |
This file contains 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
SLA = 5 | |
FAILED = [] | |
make_positive(ts): | |
return [t, 1 for t, v in ts]: | |
for v in time_series: | |
if v: | |
if len(FAILED) <= SLA: | |
send_to_graphite(make_positive(FAILED) + [v]) |
This file contains 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
curl -X GET <ES>/<parsed_log_index>/<parsed_log_type> -d' | |
{ | |
"aggs": { | |
"request_per_minute": { | |
"date_histogram": { | |
"field": "Timestamp", | |
"interval": "minute", | |
"format": "yyyy-MM-dd-hh-mm" | |
}, | |
"aggs": { |
This file contains 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
{ | |
"took": 28, | |
"timed_out": false, | |
"_shards": { | |
"total": 5, | |
"successful": 5, | |
"failed": 0 | |
}, | |
"hits": { | |
"total": 9999, |
This file contains 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
curl -X GET <ES_URL>/log*/log/_search?size=5000&from=0 -d ' | |
{ | |
"query": { | |
"filtered": { | |
"filter": { | |
"range": { | |
"timestamp": { | |
"gte" : "now-1d/d" | |
} | |
} |
This file contains 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
{ | |
"rsyslog-2016.09.20" : { | |
"mappings" : { | |
"rsyslog" : { | |
"properties" : { | |
"EnvVersion" : { | |
"type" : "string" | |
}, | |
"Hostname" : { | |
"type" : "string" |
This file contains 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
"hooks": [ | |
{ | |
"name": "example_hook", | |
"args": { | |
"cmd": "bash enable_factor_1" | |
}, | |
"trigger: { | |
"name": "event", | |
"args": { | |
"unit": "seconds", |
This file contains 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
import time | |
from rally import consts | |
from rally import exceptions | |
from rally.task import context | |
@context.configure(name="sleep_context", order=100500) | |
class SleepContext(context.Context): | |
"""Dummy context.""" |
This file contains 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
import time | |
from oslo_utils import reflection | |
REPEAT = 1000000 | |
RANGE = range(REPEAT) | |
class A(object): |
This file contains 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
{ | |
"total_size": 173, | |
"start": 0, | |
"next_collection_link": "https://blueprints.launchpad.net/api/devel/rally/all_specifications?ws.size=75&memo=75&ws.start=75", | |
"entries": [ | |
{ | |
"starter_link": "https://blueprints.launchpad.net/api/devel/~boris-42", | |
"linked_branches_collection_link": "https://blueprints.launchpad.net/api/devel/rally/+spec/api-base/linked_branches", | |
"lifecycle_status": "Started", | |
"title": "Base for all REST API stuff", |