other open source alternatives to codahale’s “metrics”? [closed]

Some suggestions: Perf4J: Perf4J is a set of utilities for calculating and displaying performance statistics for Java code. ERMA: ERMA (Extremely Reusable Monitoring API) is an instrumentation API that has been designed to be applicable for all monitoring needs. javasimon: Java Simon is a simple monitoring API that allows you to follow and better understand … Read more

What is the difference between “container_memory_working_set_bytes” and “container_memory_rss” metric on the container

You are right. I will try to address your questions in more detail. What is the difference between two metrics? container_memory_rss equals to the value of total_rss from /sys/fs/cgroups/memory/memory.status file: // The amount of anonymous and swap cache memory (includes transparent // hugepages). // Units: Bytes. RSS uint64 `json:”rss”` The total amount of anonymous and … Read more

Best way to aggregate multiple log files from several servers [closed]

Probably the lightest-weight solution for real-time log watching is to use Dancer’s shell in concurrent mode with tail -f: dsh -Mac — tail -f /var/log/apache/*.log The -a is for all machine names that you’ve defined in ~/.dsh/machines.list The -c is for concurrent running of tail The -M prepends the hostname to every line of output.

Increasing Prometheus storage retention

Edit the prometheus.service file vi /etc/systemd/system/prometheus.service add “–storage.tsdb.retention.time=1y” below to “ExecStart=/usr/local/bin/prometheus \” line. So the config will look like bellow for 1 year of data retention. [Unit] Description=Prometheus Wants=network-online.target After=network-online.target [Service] User=prometheus Group=prometheus Type=simple ExecStart=/usr/local/bin/prometheus \ –config.file /etc/prometheus/prometheus.yml \ –storage.tsdb.path /var/lib/prometheus/ \ –web.console.templates=/etc/prometheus/consoles \ –web.console.libraries=/etc/prometheus/console_libraries \ –web.external-url=http://34.89.26.156:9090 \ –storage.tsdb.retention.time=1y [Install] WantedBy=multi-user.target