Docs / Without the agent

Data sources

Hosts you can't or won't put the agent on still get CPU, memory, disk IO and disk space checks. A data source either pushes metrics to central or central polls it. Its checks work exactly like an agent's: the same names (db-01:cpu, db-01:disk:var), thresholds, incidents, alerts and dashboard.

TypeGood forEdition
pushScripts, cron jobs, Telegraf, anything that can send HTTPSCommunity
prometheusHosts already scraped for node_exporter (also VictoriaMetrics, Thanos, Mimir)Pro
influxdbHosts already sending Telegraf metrics to InfluxDB 1, 2 or 3Pro
snmpSwitches, NAS boxes, printers, appliances, Windows with the SNMP servicePro
sshLinux hosts where nothing may be installedPro
netdataHosts running a Netdata agentPro
glancesSmall boxes and home labs running a Glances serverPro

Settings every source has

Sources live in git under the sources: key (any config file). Settings → Data sources shows each one's status, hosts, checks and last error.

sources:
  - name: telegraf          # unique
    type: push
    env: prod               # given to the source's checks
    severity: critical      # default critical
    hosts: ["db-*"]         # optional globs: other hosts are refused
    tags: { team: data }    # added to every check
    stale_after: 5m         # a metric silent this long is unknown
    forget_after: 24h       # a host silent this long is retired
    cpu: { warn_pct: 80, crit_pct: 95 }
    memory: { warn_pct: 90 }
    disk: { warn_pct: 80, inode_warn_pct: 90 }

Thresholds start from discovery.cpu, discovery.memory, discovery.io and discovery.disk (the agent's), then the source's own. A host may feed one source only, and when the agent already runs on a host its checks win.

Push (any script, Telegraf)

POST to central's /ingest/v1/sources/<name> with the source's token. Percentages are 0 to 100; leave out what you don't measure.

sources:
  - name: telegraf
    type: push
    env: prod
    token: ${secret:telegraf_push_token}   # at least 16 characters
curl -sS -X POST "https://uptight.example.com:8090/ingest/v1/sources/telegraf" \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"hosts":[{"host":"db-01","cpu_pct":42.5,"memory_pct":71,"io_pct":3,
       "disks":[{"mount":"/","used_pct":64,"inodes_used_pct":3}]}]}'

Or let Telegraf send it (the cpu, mem, disk and diskio inputs):

[[outputs.http]]
  url = "https://uptight.example.com:8090/ingest/v1/sources/telegraf"
  data_format = "json"
  json_timestamp_units = "1s"
  [outputs.http.headers]
    Authorization = "Bearer ${UPTIGHT_PUSH_TOKEN}"
    Content-Type = "application/json"

The answer lists how many results were taken and every host it refused, with the reason.

Prometheus Pro

sources:
  - name: prom
    type: prometheus
    env: prod
    url: https://prometheus.example.com
    headers: { Authorization: "Bearer ${secret:prometheus_token}" }
    interval: 1m
    host_label: instance        # the default; a :port is dropped

The built-in queries read node_exporter: CPU busy over 5 minutes, MemAvailable, the busiest disk's IO, and space and inodes per mountpoint. Replace any of them under queries: (cpu, memory, io, disk, inodes): each must return one series per host whose value is the percentage.

InfluxDB Pro

sources:
  - name: influx
    type: influxdb
    env: prod
    url: https://influx.example.com:8086
    database: telegraf          # InfluxDB 2 and 3: a database mapped to the bucket
    headers: { Authorization: "Token ${secret:influx_token}" }

It reads Telegraf's cpu, mem, disk and diskio measurements with InfluxQL, grouped by the host tag.

SNMP Pro

sources:
  - name: network
    type: snmp
    env: prod
    community: ${secret:snmp_community}
    targets:
      - core-switch.example.com           # named after its address
      - { name: nas-01, address: 10.0.0.20 }
      - { name: printer, address: "10.0.0.30:1161" }

SNMPv2c over UDP 161. It reads the standard HOST-RESOURCES-MIB (processor load, fixed disks, RAM) and, on net-snmp, UCD-SNMP-MIB for accurate available memory. Disk IO is not available over SNMP. Windows drives become <host>:disk:c, as with the agent.

On a Linux host with net-snmp, allow central to read: in /etc/snmp/snmpd.conf, rocommunity <community> <central-ip>, then restart snmpd. Test from central: snmpwalk -v2c -c <community> <target> 1.3.6.1.2.1.25.2.3.1.3.

SSH Pro

sources:
  - name: legacy
    type: ssh
    env: prod
    user: uptight
    private_key: ${secret:uptight_ssh_key}   # a PEM key without a passphrase
    known_hosts: /etc/uptight/known_hosts    # required: host keys are always checked
    targets: [old-db.example.com, "batch-02.example.com:2222"]

Central logs in and runs one read-only command (it reads /proc/stat, /proc/meminfo, /proc/diskstats and df), so the target needs no software and the user needs no privileges. CPU and IO are rates, so they appear from the second poll. Linux targets only.

Set up a target:

# on the target
sudo useradd -m -s /bin/sh uptight
sudo -u uptight mkdir -m 700 ~uptight/.ssh
echo "ssh-ed25519 AAAA... uptight" | sudo -u uptight tee ~uptight/.ssh/authorized_keys
# on central: record the target's host key
ssh-keyscan old-db.example.com >> /etc/uptight/known_hosts

Netdata Pro

sources:
  - name: netdata
    type: netdata
    env: prod
    targets:
      - { name: web-01, address: "http://web-01.example.com:19999" }
      - { name: web-02, address: "http://netdata-parent:19999/host/web-02" }   # a child, through a parent

Reads system.cpu, system.ram and mem.available, every disk_space and disk_inodes chart and the busiest disk_util chart over the last minute. Netdata 1.x and 2.x.

Glances Pro

sources:
  - name: glances
    type: glances
    env: lab
    interval: 30s
    targets: ["http://pi.local:61208"]

Run Glances in web server mode (glances -w). Uptight reads its REST API (v4, falling back to v3): CPU, memory and filesystems. Glances has no portable disk-busy figure, so there is no IO check.

Stale data and forgotten hosts

Problems? See troubleshooting data sources.