nix-instantiate '<nixos>' -A system
[illustris@illustris-thinkpad:~/src/nixpkgs]$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
[illustris@illustris-thinkpad:~/src/nixpkgs]$ git remote -v
origin [email protected]:illustris/nixpkgs.git (fetch)
origin [email protected]:illustris/nixpkgs.git (push)
Example metrics:
# HELP node_hwmon_sensor_label Label for given chip and sensor
# TYPE node_hwmon_sensor_label gauge
node_hwmon_sensor_label{chip="pci0000:00_0000:00:18_3",label="tccd1",sensor="temp3"} 1
node_hwmon_sensor_label{chip="pci0000:00_0000:00:18_3",label="tccd2",sensor="temp4"} 1
node_hwmon_sensor_label{chip="pci0000:00_0000:00:18_3",label="tccd3",sensor="temp5"} 1
node_hwmon_sensor_label{chip="pci0000:00_0000:00:18_3",label="tccd4",sensor="temp6"} 1
node_hwmon_sensor_label{chip="pci0000:00_0000:00:18_3",label="tccd5",sensor="temp7"} 1
node_hwmon_sensor_label{chip="pci0000:00_0000:00:18_3",label="tccd6",sensor="temp8"} 1
| import sys | |
| import functools | |
| callstack = [] | |
| @functools.cache | |
| def lookup(func): | |
| try: | |
| parts = func.split(":") | |
| with open(parts[0]) as f: |
| #!/usr/bin/env bpftrace | |
| /* | |
| * biosnoop.bt Block I/O tracing tool, showing per I/O latency. | |
| * For Linux, uses bpftrace, eBPF. | |
| * | |
| * TODO: switch to block tracepoints. Add offset and size columns. | |
| * | |
| * This is a bpftrace version of the bcc tool of the same name. | |
| * | |
| * 15-Nov-2017 Brendan Gregg Created this. |