Matthias Radestock
1f95e3efd4
obtain historic_reports capability from Reporter
2017-07-31 09:58:31 +01:00
Matthias Radestock
160ba8efa0
rename 'report_persistence' capability to 'historic_reports'
...
since that better captures the intent - the UI doesn't care about
reports get stored, but what reports it can retrieve.
2017-07-31 09:31:46 +01:00
Matthias Radestock
6c4efbb944
refactor: reduce number of args
2017-07-26 20:41:29 +01:00
Alfonso Acosta
6be7aa8be2
Add app capabilities to /api endpoint
2017-06-08 11:02:25 +00:00
Matthias Radestock
413dbc7f0c
allow disabling of weaveDNS advertising/lookup
...
...while keeping other weave integrations, by setting
--weave.hostname=
Addresses a suggestion in #1550 .
2017-04-15 00:02:07 +01:00
Paul Bellamy
e68ffd467e
Add app/multitenant/billing_emitter to emit billing events
2017-03-22 10:41:34 +00:00
Alfonso Acosta
3431d64f77
Adapt middleware logger to upstream changes
2017-03-21 15:20:17 +00:00
Matthias Radestock
289b4c63af
report playback
...
Now you can launch the scope app with something like
./prog/scope --mode=app --weave=false --app.collector=file:///tmp/reports
and if the specified dir contains reports with filenames in the form
<timestamp>.{msgpack|json}[.gz],
e.g. "1488557088545489008.msgpack.gz", then these reports are replayed
in a loop at a sequence and speed determined by the timestamps.
2017-03-04 22:04:50 +00:00
Alfonso Acosta
06ff64d477
Forward OS/Kernel version to checkpoint
...
Useful to prioritize ebpf testing
Also:
* Make treatment of kernel release and version consistent across Darwin/Linux
2016-12-19 20:08:08 +00:00
Jonathan Lange
626e8a3e9f
Neater way of doing it
2016-12-12 17:40:15 +00:00
Jonathan Lange
4fcf9a1e36
Add flag for logging headers
2016-12-12 17:12:28 +00:00
Jonathan Lange
e8085b01b6
Use 'common' library
2016-12-07 11:22:38 +00:00
Tom Wilkie
e8126faedd
Review feedback
2016-10-12 17:29:29 +01:00
Tom Wilkie
0bde1b62e1
Timeout reads and writes in the http server.
2016-10-10 14:22:18 -07:00
Tom Wilkie
727404c9b8
Extend logging middleware to optionally only log failed HTTP requests ( #1909 )
...
* Extend logging middleware to optionally only log failed HTTP requests
* Add a preconfigured logger for logging failed requests, use it in the app.
* Wide definition of success
2016-10-07 18:03:36 -07:00
Mike Lang
ec37214778
Add flag to allow using external ui, and ability to upload to bucket during CI
2016-10-05 17:27:18 -07:00
Mike Lang
2c9f6c197f
Split prog/static.go into two versions, and have a shim choose between them
...
This allows us to have both normal and external resource versions of static content
in the same binary, and switch with a flag
2016-10-05 17:26:57 -07:00
Mike Lang
5a4ee00b58
app: Add graceful shutdown for http server
...
This will let it finish up existing connections before exiting,
which makes things like rolling restarts behave much better.
2016-09-08 15:43:54 -07:00
Alfonso Acosta
276ffa338e
Elide service-token when logging commandline arguments
2016-08-11 15:07:08 +00:00
Tom Wilkie
1d3ad9e12b
Also serve UI under /ui ( #1752 )
2016-08-04 15:35:46 +01:00
Jonathan Lange
34beefa377
Merge pull request #1684 from weaveworks/decompress-memcache-1671
...
Add options for storing memcached reports with different compression levels
2016-07-15 14:03:38 +01:00
Jonathan Lange
60e14c1dc2
Plumb through an option for compression
2016-07-15 11:24:36 +01:00
Jonathan Lange
1ddc91f0ea
Add flag for block profiling
...
Fixes #1672
Test by adding `--app.block.profile.rate=1`, running scope in
multi-tenant mode and browsing to http://<scope-url>/debug/pprof/
2016-07-14 14:45:50 +01:00
Tom Wilkie
3173f6ad75
Use histograms over summaries
2016-07-12 11:15:57 +01:00
Paul Bellamy
bcddfd82c3
Added file collector, to serve a static report from file
2016-07-11 11:50:27 +01:00
Jonathan Lange
848574eced
Make expiration a flag
2016-07-04 14:20:14 +01:00
Jonathan Lange
7dd2c6371e
Parametrize window rather than assuming default
2016-07-04 13:50:54 +01:00
Jonathan Lange
c1dab17fb3
Make expiration a Duration
2016-07-04 13:30:23 +01:00
Jonathan Lange
f7bdedc149
Config struct for memcache client
2016-07-04 13:25:45 +01:00
Jonathan Lange
96520d7a46
Fixes to memcache support ( #1628 )
...
* Fix errors discovered in dev
* Log an error rather than aborting when memcache doesn't resolve
* Initialize map correctly
* Review tweaks
2016-07-04 11:00:11 +01:00
Jonathan Lange
9e0f0c51b9
Configuration type for AWS collector
2016-06-30 17:01:58 +01:00
Jonathan Lange
baacaa8cc5
Rename dynamoCollector to awsCollector
2016-06-30 16:44:43 +01:00
Jonathan Lange
6520f8f5f3
Pass in memcache client
2016-06-30 09:59:55 +01:00
Jonathan Lange
abec257c59
Just pass in the s3 client
2016-06-30 09:57:49 +01:00
Julius Volz
4fa40e22b2
Rework Scope metrics according to Prometheus conventions. ( #1615 )
...
* Rework Scope metrics according to Prometheus conventions.
- counters should end with _total
- elaborated and added units to help strings
- recommended for cache hit/miss metrics: track only the total and the
hits and in separate metrics, since the most common query will be
"hits / total"
- track all times in seconds (base units), which has become the standard
recommendation
- other small changes
There could be more changes that would require more thinking (what
dimensions to use, summaries vs. histograms, etc.), but this is probably
enough controversial material already :)
* Use timeRequestStatus() in sqs_control_router.go.
2016-06-30 09:12:25 +01:00
Tom Wilkie
ab3d34be01
Make it easier to disable weave integrations ( #1610 )
...
* Make it easier to disable weave integrations
* Review feedback
* Make test pass
2016-06-27 16:11:57 +01:00
Jonathan Lange
47fcb52354
Optional memcached between probes and S3
...
If given settings for memcached, services will store & fetch reports
from memcache after checking their in-process cache but before fetching
from S3.
2016-06-22 18:40:50 +01:00
Tom Wilkie
a7b34f1601
Use NATS for shortcut reports in the service. ( #1568 )
...
* Vendor nats-io/nats
* Use NATS for shortcut reports.
* Review feedback.
* Rejig shortcut subscriptions, so they work.
* Review feedback
2016-06-09 12:48:41 +01:00
Tom Wilkie
982189161b
If we don't get a path name from the router, make one up from the url. ( #1570 )
...
* If we don't get a path name from the router, make one up from the url.
* Think about route naming a little more and add a comment to show it.
2016-06-09 12:48:22 +01:00
Tom Wilkie
12f281654d
Put reports in S3; add in process caching ( #1545 )
...
* Add in-process caching to dynamodb collector
* Add metrics for dynamodb consumed capacity and report size
* Log and return errors during report collection
* Increase compression to the max
* Put reports in S3 and just use DynamoDB as an index.
* Review feedback
2016-05-31 15:40:15 +01:00
Tom Wilkie
c8828826ae
Allow user to specify table name and queue prefix. ( #1538 )
...
* Allow user to specify table name and queue prefix.
* Trim leading slash, catch missed queue prefix
* Comment out publish step until devwww is fixed.
2016-05-25 10:09:32 +01:00
Tom Wilkie
3335361ae9
Include label in prom metric to distinguish ws connection latencies.
2016-05-23 15:02:41 +01:00
Tom Wilkie
901f46c5fc
Report if newer version are availible in /api ( #1366 )
...
* Report if newer version are availible in /api
* Render version update hint in UI, next to version
* Fix lint
2016-04-22 10:25:00 +01:00
Tom Wilkie
cb0901e8e1
Move all the flag parsing to main.go; implement scope help
2016-04-20 15:48:43 +01:00
Tom Wilkie
da53aac25d
Tests & vartious fixes for consul pipe router.
...
Fix a few bugs in the consul pipe router:
- Don't share a pointer
- Write nil to pipe when closing a bridge connection to ensure the connection shutdown.
- Ensure we shutdown bridge connections correctly
2016-04-12 14:28:10 +01:00
Tom Wilkie
734a01d603
Review feedback, lint & fix tests.
2016-04-06 15:59:02 +01:00
Tom Wilkie
727553962b
Insturment the app with prometheus.
2016-04-06 14:58:28 +01:00
Tom Wilkie
5d7604cc21
Print command line when launching the app.
2016-04-06 14:58:23 +01:00
Tom Wilkie
fd368e5e5f
Unhack dealing with slashed in node names.
2016-04-06 14:47:14 +01:00
Tom Wilkie
a8f0d64b3c
Add middleware for logging each request to the app.
2016-04-06 14:47:08 +01:00