Hot answers tagged

31 votes
Accepted

Routing selection: specificity vs metric

The routes metric is to set preference among routes with equal specificity. That is true of routing in general (i.e. Cisco, Windows, etc). So the model works like: Find the most specific route (aka ...
user avatar
  • 81.9k
10 votes

Routing selection: specificity vs metric

Linux provides a number of tools for flexible routing selection. Single routing table In the simplest case, there is just one kernel routing table and no routes with the SRC attribute. This table ...
user avatar
  • 450
6 votes

How can I monitor VM memory usage on Azure?

They have removed the "host metric" memory from VM's. You have to use the new Insight option to expose the memory usage. https://azure.microsoft.com/en-us/blog/rich-insights-for-virtual-machines-from-...
user avatar
  • 695
4 votes

Monitoring / metric collection for system collectives that change a lot in time (a.k.a. cloud)

For systems that are short-lived or where the infrastructure changes often, I use two different tools to handle monitoring. I added a comment asking which metrics were most important to you, and it ...
user avatar
  • 195k
4 votes

Monitor and collect statistics on TCP connection to src or dst host

One way to do it is using tshark. Do the following : Capture traffic with relevant filters on both sides using tshark/tcpdump/whatever produces a pcap formatted file. Once finished, run tshark ...
user avatar
  • 12.8k
3 votes
Accepted

kubectl top node doesn't work. Looks like an issue with heapster

Heapster Deprecation Heapster is a deprecated project and may have problems when running in recent Kubernetes versions. See Heapster Deprecation Timeline: | Kubernetes Release | Action ...
user avatar
3 votes

What metrics should I watch when I monitor a server?

I just wrote and published a guide on exactly this subject: Zen and the Art of System Monitoring Allow me to summarize here: There are 3 main goals to think about when monitoring any sort of ...
user avatar
  • 209
3 votes

Is it "common" for an IT department to provide a Network SLA to the business internally?

No it is not common. An SLA is an assurance or guarantee, and the cost for not meeting the SLA is a financial penalty. I've never seen funding in a budget in IT for internal operational financial ...
user avatar
  • 34.2k
2 votes

Monitor and collect statistics on TCP connection to src or dst host

Create a port mirror for both server and run wireshark from two computers to collect the data. Thus that will not impact your server in production.
user avatar
  • 16.2k
2 votes
Accepted

What is the counter type for Linux's /sys/block/$DEVICE/stat

They are unsigned long integers with a length depending on the platform (32/64 bit). Yes, they can indeed wrap over if the system is very active for very long. You have to consider that when doing any ...
user avatar
  • 97k
2 votes
Accepted

How to display a graphite graph of used memory when you have total memory and free memory

You can do so using mapSeries and reduceSeries. reduceSeries(mapSeries(servers.foo.*.*,2),"diffSeries",3,"mem_total","mem_free")
user avatar
  • 203
2 votes
Accepted

docker won't show stats, says 'command not found'

The stats API endpoint (and corresponding CLI command) was added in Docker v1.5. If that command is not listed as an option, you're likely running an older version, and will need to upgrade.
user avatar
  • 108k
2 votes

How to change Interface Metric permanently in CentOS

Don't set default gateways for interfaces which don't connect to the Internet. Remove the default gateways that are defined for those interfaces. That is, delete the GATEWAY= line from the ifcfg-...
user avatar
2 votes
Accepted

Something for Icinga like sensu-metrics-relay

There is a Python tool called graphios, Icinga 2 has its own graphite writer.
user avatar
2 votes
Accepted

Reading Docker metrics in machine readable format

One could use docker info --format '{{json .}}'. For example: user@host$ docker info --format '{{json .MemTotal}}' 3840544768
user avatar
  • 5,711
2 votes
Accepted

Prometheus with remote_write and backups

1) Do I need to back up the prometheus TSDB if data is being pushed into remote storage? You don't have to. Or will it attempt to query the long term storage for instance if it does not have ...
user avatar
  • 3,904
2 votes
Accepted

Monitor and collect statistics on TCP connection to src or dst host

This is a very interesting question. The answer depends on the setup of your network but, I will try to cover some case. I quite believe CollectD is part of the answer. First, as you want to collect ...
user avatar
2 votes
Accepted

AWS Application Load Balancer - processed bytes metric

Every byte that goes through the ALB is billed. Pricing is here. The AWS pricing page gives an example how to calculate pricing. Basically every connection, byte, and rule adds to the cost. If you ...
user avatar
  • 29.9k
2 votes

Disk usage metrics missing from Prometheus node exporter

Pay your attention to /etc/default/prometheus-node-exporter: for e. g., recently I realised Ubuntu's (18.04) package cuts out by default all disks statistics: ARGS="--collector.diskstats.ignored-...
user avatar
  • 9,133
2 votes
Accepted

Do prometheus metrics have some sort of "freshness" lifetime?

To the title question - yes, it is documented at https://prometheus.io/docs/prometheus/latest/querying/basics/#staleness: If no sample is found (by default) 5 minutes before a sampling timestamp, ...
user avatar
2 votes

Are Azure VM Metrics Always Accurate?

Sorry everyone, I did not know about CPU credits. The server ran out of CPU credits. The B-Series uses a credit system, I will changing the server to a non-credit series: https://docs.microsoft.com/...
user avatar
2 votes

Is it "common" for an IT department to provide a Network SLA to the business internally?

Generally out of 30 years of experience: NO. It is way more common to have companies with IT departments that have very little real knowledge what they do. The larger the company, in general (and IT ...
user avatar
  • 50.8k
1 vote

kubectl top node doesn't work. Looks like an issue with heapster

I guess your issue might be related to auto-upgrade of your GKE's Master nodes. Mine got upgraded recently to v1.11.8-gke.6, and during the upgrade, I observed the same intermittent errors inside ...
user avatar
  • 306
1 vote

How can I monitor VM memory usage on Azure?

At the time of writing (July 2019), the issue the OP is seeing is actually quite simple. If you have diagnostics enabled, that Metrics screen should actually show you the performance counters, ...
user avatar
1 vote

The command route the "Use" field is only zeroed, it does not count the route searches chosen

First: the route command is obsolete (as well as ifconfig etc.). You should really switch to using the iproute2 tools. Here that would be using ip route That said, from the route man page: Use ...
user avatar
  • 8,727
1 vote

How to Scale graphite?

You need to enable consistent hashing and use carbon-relay. So it would look something like this [relay] LINE_RECEIVER_INTERFACE = 0.0.0.0 LINE_RECEIVER_PORT = 2003 PICKLE_RECEIVER_INTERFACE = 0.0.0....
user avatar
  • 21.9k
1 vote

How to remotely pull Linux metrics into local Carbon/Graphite server?

Graphite is 'push' solution, it's not really easy to switch it to push model. Check 'Prometheus' if you need pull.
user avatar
  • 142
1 vote

Stackdrive agent metric isn't propagated to GCE instance-group-manager autoscaler

Autoscaler used to supports v2 metrics and 'agent.googleapis.com/memory/percent_used metric' is a v3 metric. It looks like this metric can be used now. On this link you can get the metrics that are ...
user avatar
  • 296
1 vote

Azure VM Metric

You could use Azure OMS to achieve your scenario. With near real-time performance data collection, you can collect and visualize any performance counter in OMS. Simply entering the query Type:Perf ...
user avatar
1 vote

I'm unable to change network interfaces' metrics in Linux

As per the ifmetric man page: ifmetric is a Linux tool for setting the metrics of all IPv4 routes attached to a given network interface at once It does not change the metric of the interface ...
user avatar
  • 1,103

Only top scored, non community-wiki answers of a minimum length are eligible