8000 missing metrics by kvahed · Pull Request #10625 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

missing metrics #10625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 50 commits into from
Mar 13, 2020
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
c3a2e25
some missing metrics
kvahed Dec 3, 2019
a6187c7
added the missing from startistics
kvahed Dec 4, 2019
f2dd77f
minimise reallocs
kvahed Dec 4, 2019
f7a41a4
Merge branch 'devel' into bug-fix/missing-metrics
jsteemann Jan 30, 2020
767a664
Update MetricsFeature.cpp
Simran-B Feb 3, 2020
83abd1d
devel merge
kvahed Mar 3, 2020
6274fa0
Merge branch 'bug-fix/missing-metrics' of https://github.com/arangodb…
kvahed Mar 3, 2020
e6be5fb
all in
kvahed Mar 4, 2020
f7ba3fd
oh my
kvahed Mar 4, 2020
dac8b9f
Merge branch 'devel' of https://github.com/arangodb/arangodb into bug…
kvahed Mar 4, 2020
86ddd5b
logarithmic histogram
kvahed Mar 4, 2020
145a53e
rewrote the whole interface of logarithmic histograms to accomodate a…
kvahed Mar 5, 2020
b559bf4
Merge branch 'devel' of https://github.com/arangodb/arangodb into bug…
kvahed Mar 5, 2020
987c5dc
log output
kvahed Mar 5, 2020
9df019d
log tests
kvahed Mar 6, 2020
aef8899
log tests
kvahed Mar 6, 2020
2737ca2
more tests
kvahed Mar 6, 2020
14ac1df
metrics fixing on
kvahed Mar 6, 2020
cbe2765
Merge branch 'devel' of https://github.com/arangodb/arangodb into bug…
kvahed Mar 9, 2020
064933a 8000
added tests
kvahed Mar 9, 2020
17c5e95
corrected prometheus export
kvahed Mar 9, 2020
7f7b4be
log tests
kvahed Mar 9, 2020
c05bdf4
metrics with label discrimination
kvahed Mar 9, 2020
77810dc
metrics with label discrimination
kvahed Mar 9, 2020
1750900
only counters outstanding with new key scheme
kvahed Mar 10, 2020
700796c
only counters outstanding with new key scheme
kvahed Mar 10, 2020
7248328
only counters outstanding with new key scheme
kvahed Mar 10, 2020
a8d44c0
fixed label behaviour
kvahed Mar 10, 2020
fca1583
corrected retrieve bahaviour.
kvahed Mar 10, 2020
365fa26
feature tests
kvahed Mar 10, 2020
fbd7bea
feature tests
kvahed Mar 10, 2020
52e6c8f
fetching bug
kvahed Mar 10, 2020
99eaed8
Merge branch 'devel' of https://github.com/arangodb/arangodb into bug…
kvahed Mar 10, 2020
51c50ee
fixed uint64_t
kvahed Mar 10, 2020
ef284bb
Merge branch 'devel' of https://github.com/arangodb/arangodb into bug…
kvahed Mar 10, 2020
ce4e870
wtf
kvahed Mar 10, 2020
ee61f66
histogram count labels
kvahed Mar 11, 2020
a80de52
Merge branch 'devel' of https://github.com/arangodb/arangodb into bug…
kvahed Mar 11, 2020
6ebb0b9
histogram feature tests
kvahed Mar 11, 2020
3a800b4
histogram feature tests
kvahed Mar 11, 2020
10c3aa7
gauge feature tests
kvahed Mar 11, 2020
8277d0a
long int ambiguity
kvahed Mar 11, 2020
ea159b2
windows warning
kvahed Mar 11, 2020
94be7d7
separator on wrong side
kvahed Mar 11, 2020
853f0fc
windows warnings
kvahed Mar 11, 2020
2c05c51
added role to labels
kvahed Mar 12, 2020
3b34ab5
http requests
kvahed Mar 12, 2020
c955d13
added agency commit histogram
kvahed Mar 12, 2020
674b058
Merge branch 'devel' of https://github.com/arangodb/arangodb into bug…
kvahed Mar 13, 2020
63b44e5
could break won't anymore
kvahed Mar 13, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
metrics fixing on
  • Loading branch information
kvahed committed Mar 6, 2020
commit 14ac1dfdf0808f0ad0e19a95be69360c00da7453
16 changes: 11 additions & 5 deletions arangod/RestServer/Metrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,13 @@ struct scale_t {
/**
* @brief number of buckets
*/
std::vector<T> const& delim() const {
T const& delim(size_t const& s) const {
return (s < _delim.size()) ? _delim.at(s) : _high;
}
/**
* @brief number of buckets
*/
std::vector<T> const& delims() const {
return _delim;
}
/**
Expand Down Expand Up @@ -322,7 +328,7 @@ template<typename Scale> class Histogram : public Metric {
Histogram() = delete;

Histogram (Scale scale, std::string const& name, std::string const& help = "")
: Metric(name, help), _c(Metrics::hist_type(scale.n())), _scale(scale),
: Metric(name, help), _c(Metrics::hist_type(scale.n())), _scale(std::move(scale)),
_lowr(std::numeric_limits<value_type>::max()),
_highr(std::numeric_limits<value_type>::min()),
_n(scale.n()-1) {}
Expand All @@ -346,9 +352,9 @@ template<typename Scale> class Histogram : public Metric {
}

void count(value_type const& t, uint64_t n) {
if (t < _scale.delim().front()) {
if (t < _scale.delims().front()) {
_c[0] += n;
} else if (t >= _scale.delim().back()) {
} else if (t >= _scale.delims().back()) {
_c[_n] += n;
} else {
_c[pos(t)] += n;
Expand Down Expand Up @@ -382,7 +388,7 @@ template<typename Scale> class Histogram : public Metric {
for (size_t i = 0; i < size(); ++i) {
uint64_t n = load(i);
sum += n;
result += name() + "_bucket{le=\"" + std::to_string(_scale.delim()[i]) + "\"} " +
result += name() + "_bucket{le=\"" + std::to_string(_scale.delim(i)) + "\"} " +
std::to_string(n) + "\n";
}
result += name() + "_count " + std::to_string(sum) + "\n";
Expand Down
0