Skip to content

Commit

Permalink
Merge pull request #7228 from cockroachdb/marc/add_index_usage_to_graphs
Browse files Browse the repository at this point in the history
UI: add "rocksdb.estimate-table-readers-mem" to graphs.
  • Loading branch information
mberhault authored Jun 15, 2016
2 parents c465f23 + be3301d commit a51f9e4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ui/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ CSS_TARGET := build/app.css
CSS_DEBUG_TARGET := build/app_debug.css
REMOTE_DEPS := npm.installed bower.installed typings.installed
INDEX := index.html
GOBINDATA_FONTS := ./fonts/*
GOBINDATA_ASSETS := ./assets/*
GOBINDATA_FONTS := ./fonts/
GOBINDATA_ASSETS := ./assets/
GOBINDATA_DEPS := $(TYPESCRIPT_TARGET) $(CSS_TARGET)
GOBINDATA_DEBUG_DEPS := $(TYPESCRIPT_TARGET) $(CSS_DEBUG_TARGET)
GOBINDATA_SOURCES := $(NODE_MODULES)/lodash/lodash.min.js \
Expand Down
2 changes: 1 addition & 1 deletion ui/embedded.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ui/next/app/containers/nodeGraphs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export default class extends React.Component<RouteComponentProps<any, any>, {}>
<Metric name="cr.store.rocksdb.block.cache.usage" title="Block Cache" />
<Metric name="cr.store.rocksdb.block.cache.pinned-usage" title="Iterators" />
<Metric name="cr.store.rocksdb.memtable.total-size" title="Memtable" />
<Metric name="cr.store.rocksdb.table-readers-mem-estimate" title="Index" />
</Axis>
</LineGraph>

Expand Down
1 change: 1 addition & 0 deletions ui/next/app/containers/nodesGraphs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export default class extends React.Component<{}, {}> {
<Metric name="cr.store.rocksdb.block.cache.usage" title="Block Cache" />
<Metric name="cr.store.rocksdb.block.cache.pinned-usage" title="Iterators" />
<Metric name="cr.store.rocksdb.memtable.total-size" title="Memtable" />
<Metric name="cr.store.rocksdb.table-readers-mem-estimate" title="Index" />
</Axis>
</LineGraph>

Expand Down
9 changes: 7 additions & 2 deletions ui/ts/pages/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ module AdminViews {
Metrics.Select.Avg(_storeMetric("rocksdb.block.cache.pinned-usage"))
.title("Iterators"),
Metrics.Select.Avg(_storeMetric("rocksdb.memtable.total-size"))
.title("Memtable")
.title("Memtable"),
Metrics.Select.Avg(_storeMetric("rocksdb.table-readers-mem-estimate"))
.title("Index")
).format(Utils.Format.Bytes).title("Engine Memory Usage")
);
this._addChart(
Expand Down Expand Up @@ -1008,7 +1010,10 @@ module AdminViews {
.title("Iterators"),
Metrics.Select.Avg(_storeMetric("rocksdb.memtable.total-size"))
.sources(this._storeIds)
.title("Memtable")
.title("Memtable"),
Metrics.Select.Avg(_storeMetric("rocksdb.table-readers-mem-estimate"))
.sources(this._storeIds)
.title("Index")
).format(Utils.Format.Bytes).title("Engine Memory Usage")
);
this._addChart(
Expand Down

0 comments on commit a51f9e4

Please sign in to comment.