On 3 April 2017 at 18:58, Praveen Maurya <
maury...@gmail.com> wrote:
> 1)AFAIK, docker stats command reads mem-usage form cgroups folder, so Its
> "cgroup-aware" stats, also it does not take into account disk-cache
> (
https://github.com/docker/docker/issues/10824) . So in that case why my
> memory(mem-used graph) is increasing continuously, even if chunks in memory
> have plateaued long back. The number of queries made is only for plotting
> the graphs in grafana (its count is fixed and minimal) .
I don't know what exact memory metric the docker-stats output is coming from.
Looking at the value, I would guess it is the virtual memory size.
Which has very
little practical relevance. (You could compare it to the metric
`process_virtual_memory_bytes`.)
> 2) What does resident memory bytes depict (I recollect somewhere, i read
> it's somewhat related to RAM usage by prometheus) ,So Which of the graphs to
> follow, if I want to establish something like this "for this rate of sample
> ingestion and and this configuration of prometheus (as above) you will be
> requiring this much amount of RAM "
Resident memory bytes are determined by reading from the /proc filesystem the
RSS for the own PID. It's the best approximation of "physical memory actually
used". It plateaus in your graph, so all looks good.
In general, I'd expect the RAM usage to depend more on the number of time
series than the ingestion rate. But it will also depend on may other
circumstances.
With v1.6, there will be a new command line flag to just tell Prometheus what
heap size it may grow to.
--
Björn Rabenstein, Engineer
http://soundcloud.com/brabenstein
SoundCloud Ltd. | Rheinsberger Str. 76/77, 10115 Berlin, Germany
Managing Director: Alexander Ljung | Incorporated in England & Wales
with Company No. 6343600 | Local Branch Office | AG Charlottenburg |
HRB 110657B