Manual Draft, written before the product exists
The Upstacked manual
How to set up Upstacked, watch your networks, handle incidents, be on call and change things safely.
About this manual
This manual is a draft. It is written from the agreed design before the product is built, so details will change. Anything not decided yet is marked like this and listed in Open questions.
When reviewing, comment on what would change the data model, the API or a promise the manual makes. Details such as field formats, defaults and exact wording in the product are settled when that part is built, and questions about them are closed as parked.
It is written for three kinds of readers:
- Operators at a service provider or an IT department, who set up monitoring and handle incidents.
- Customers who want to see their own network, raise tickets or give a provider access.
- Developers and automation: scripts, the
upscommand-line tool and AI agents. Chapters end with the API resources they use. The full reference is at upstacked-api-v2.dihost.app.
Chapters 1 and 2 are enough to get a first network monitored. Read the rest when you need it. Chapters marked Planned describe features that are designed but not yet in the API reference.
1What Upstacked is
Upstacked watches network equipment, works out what broke when something fails, and makes sure the right person knows.
It is built for IT service providers and the companies they look after, and works just as well for a single IT department.
How it fits together
Everything belongs to an organization: a company, either your own or a customer. An organization owns infrastructures. Each infrastructure is one network you look after, such as an office or a data centre. Devices, subnets and credentials belong to the organization and are placed in infrastructures, so a spare in stock needs no infrastructure, each organization keeps one IPAM plan, and one credential can serve several networks.
organization
├── people, invitations, tokens
├── grants ─────────── gives another organization (your provider) access
├── metric schemas, profiles, on-call schedules
├── credentials
├── devices ── checks ── alerts ── incidents
├── subnets ── IP addresses
├── tickets
└── infrastructure
├── agents
├── the devices and subnets placed in it
├── links (topology)
├── changes, maintenance windows
└── plans, runs
The ideas, one line each
| Idea | What it is | Example |
|---|---|---|
| Agent | A small program installed in the network that does the collecting | oslo-collector-1 |
| Device | Anything with a network cable, with both its health and its paperwork | core-sw-01, warranty until 2029 |
| Credential | A secret used to reach devices, never shown again once saved | SNMPv3 login for core switches |
| Check | One thing to watch on one device: what, how often, when to alert | CPU every minute, alert above 90% |
| Profile | A reusable set of checks | Everything we check on a Cisco switch |
| Metric schema | The shape of collected data: fields, types, units | Interface: name, traffic in and out, errors |
| Integration | A connection to another system | Meraki, ServiceNow, Slack, SMS |
| Alert | One alert condition that fired | printer-2 is not answering |
| Incident | Related alerts grouped into one problem | core-sw-01 down, 14 devices behind it unreachable |
| Ticket | Work for a person, optionally synced to another ticket system | #1042 Replace power supply |
| Maintenance window | A period in which alerts on chosen devices stay quiet | Firmware upgrade, 22:00 to 23:00 |
| Change | Planned work, approved by someone else | Upgrade core switches to 17.12 |
| Plan | A preview of a bulk change, applied only when approved | Import: 12 new, 3 changed, 1 removed |
| Run | A receipt for work that takes time | A discovery scan of 10.0.0.0/24 |
Three rules the product is built around
- Silent loss of monitoring is the worst failure. A broken check sends no alarm, so Upstacked refuses or warns before anything that would quietly stop monitoring, such as deleting a credential that checks still use.
- A check is not trusted until it has returned data. New checks start as unverified, and every check can be test-run before it is saved.
- Bulk changes are previewed. Imports, discovery and configuration files produce a plan that a person reviews before anything changes.
2Getting started
This chapter takes one network from nothing to monitored, with someone on call. Plan for about an afternoon.
- Sign inSign in with your company account through Upstacked IDP. The first time, you are asked to create your organization. If you are a service provider, this is your own company.
- Create the customer's organizationService providers only. Choose New managed organization and enter the customer's name. Your organization becomes its owner, so you can set everything up before the customer has any users, and the customer can take over later. See chapter 3.
- Create an infrastructureGive it a name people recognise, such as Oslo HQ, and the time zone of the site. The time zone is used for maintenance windows and on-call handovers.
- Install an agentAdd an agent to the infrastructure. You get a one-time install command, valid for 24 hours. Run it on a small Linux machine or VM inside the network. The agent shows as online within a minute. See chapter 4.
- Add credentialsAdd the SNMP, SSH or API logins your devices need. They are encrypted and never shown again. See chapter 7.
- Find your devicesRun a discovery on the network's address ranges, import a spreadsheet, or connect a cloud controller such as Meraki. Each of these gives you a plan to review. Apply it to add the devices. See chapter 5.
- Attach profilesAttach a profile such as Cisco IOS-XE switch to the devices it fits. Their checks start straight away. Make sure every check turns OK. Any that stay unverified have never returned data. See chapter 8.
- Set up on-callAdd your phone number and verify it. Create a schedule and an escalation policy, and a notification rule that sends incidents to it. See chapter 11.
- Test itUnplug something unimportant, or use a test device. Check that an incident opens and that the right person is paged.
3Organizations, people and access
People are members of organizations with a role. A service provider gets access to a customer through a grant, which the customer can take back at any time.
Roles
| Role | Can |
|---|---|
| Viewer | See everything in the organization |
| Operator | Also acknowledge incidents, work tickets, open maintenance windows, test checks and run discovery |
| Admin | Also configure devices, checks, credentials and profiles, apply plans and manage members |
| Owner | Also manage grants and other owners, and delete the organization |
An organization always has at least one owner. An owner is a person or another organization, such as the service provider that created it. An organization that owns another acts through its own owners, and ownership goes no further. Upstacked refuses to demote or remove the last one.
Inviting people
Invite people by email and choose their role. The invitation is valid for 14 days. They sign in through the identity provider and accept it. You can revoke a pending invitation at any time.
Giving a service provider access
A grant gives the members of another organization access to yours, up to a role you choose. Each member gets the lower of that role and their own role in their own organization, so a viewer at the provider stays a viewer. This is how a customer lets its service provider work on its network.
Grants do not chain: a grant covers only your own organization, never the organizations you have access to through grants of your own. Two organizations can each grant the other access; the two grants are independent.
- The role can be viewer, operator or admin. A grant can never make anyone an owner.
- A grant can be limited to some infrastructures. Without a limit it covers all of them, including ones created later.
- Either organization can revoke a grant. It stops working immediately.
- Only owners can create grants.
Service providers see all the organizations they have access to in one list, and every list in
Upstacked (devices, incidents, tickets) covers all of them unless filtered. Finding all urgent open
incidents across every customer is one search: status:open AND priority:(p1 OR p2).
A provider can also take your on-call. A notification rule sends the incidents you choose to the provider, and the provider's own rules decide which of its teams gets them (chapter 11). Upstacked refuses to revoke a grant while a notification rule still sends incidents to it, and lists the rules.
Setting up an organization for a customer
A service provider can create an organization for a customer. The provider's organization becomes its owner, so the provider can set everything up and the customer never has to sign in. When the customer wants control, the provider invites the customer's first owner. The customer can then remove the provider as owner, and keep it on a grant or let it go.
Features
Every organization is the same kind of thing. Some have extra features on top, depending on their subscription. The first is service provider: creating and onboarding organizations for customers, taking their on-call, and seeing all customers in one view. Because a customer is just an organization, it can change provider, or have more than one, without moving anything. [more features, such as for security consultants]
Tokens for scripts and integrations
| Kind | Acts as | Use it for |
|---|---|---|
| Personal token | You, with your roles | Your own scripts and the ups tool |
| Organization token | The organization, with a role you choose | Integrations that must keep working when people leave |
A token is shown once, when it is created. Tokens expire after at most a year. Revoke a token as soon as you think it may have leaked.
API/organizations (with features), /organizations/{id}/members,
/invitations, /grants, /tokens, /me
4Infrastructures and agents
An infrastructure is one network. Its agents are what actually reach the devices.
Infrastructures
An infrastructure has a name, a description, a time zone and labels. Its overview shows live counts: devices, devices down, open incidents and offline agents.
Deleting an infrastructure is refused while devices or subnets are placed in it, or while a credential can only be used there. Move them out first, or remove them with a plan that has prune turned on. The devices themselves belong to the organization, so taking them out of an infrastructure keeps them.
Installing an agent
- Add an agent to the infrastructure and give it a name, such as oslo-collector-1.
- Copy the install command. It holds a one-time enrollment token that expires after 24 hours.
- Run the command on a Linux machine or VM inside the network. [minimum hardware]
- The agent connects out to Upstacked and swaps the enrollment token for its own long-lived token. It needs no inbound firewall openings.
The agent sends a heartbeat every 30 seconds. With no heartbeat for 2 minutes it is shown as offline. It updates itself when a newer version is available.
Agents also receive syslog on port 514 and NetFlow, IPFIX or sFlow on port 2055. Point devices' logging and flow export at the agent's address.
More than one agent
Large or segmented networks can have several agents. Each device can be assigned to a specific agent. If it is not, Upstacked picks one.
Moving or replacing an agent
Use Re-enroll. The old token stops working at once and you get a new install command. Do this when moving the agent to new hardware or if its token may have leaked.
Deleting an agent moves its devices to another agent in the infrastructure. Deleting the last agent of an infrastructure with active devices is refused, because their monitoring would silently stop.
API/infrastructures, /agents, /agents/{id}/reenroll
5Devices
A device is anything on the network you care about. It holds both how the device is doing and its paperwork.
You set the name, management address, lifecycle, site, labels, profiles and credentials. Discovery fills in vendor, model, OS and serial number where it can, and you can correct them. Upstacked sets status and support status, and they cannot be edited. The lifecycle, infrastructure, management address and profiles decide whether the device is monitored (Lifecycle and status below). Vendor and SKU match it to the catalogue, which is where its end-of-life dates come from (chapter 6).
What a device records
| Field | Meaning |
|---|---|
| Name | Unique within the organization, for example core-sw-01 |
| Infrastructure | The network it is placed in. A spare in stock has none, and is not monitored until it is placed. |
| Management address | IP address or hostname used to reach it. Required for monitoring. |
| Lifecycle | Where it is in its life, from planned to disposed. Only active devices are monitored. See chapter 6. |
| Status | Up, down, unknown, maintenance or unmonitored. Set by Upstacked. |
| Vendor, model, OS, OS version | What it is. Filled in by discovery where possible. |
| Serial number, SKU | For support cases and matching with controllers |
| Site, position | Where it is, such as Oslo DC1, rack B4, U12 |
| Owner, asset tag, purchase, value | Who owns the hardware, what it cost and what it is worth. See chapter 6. |
| Credentials | The secrets its checks use. At most one of each type. |
| Profiles | The profiles it follows. A device can have several, such as one for its OS and one for BGP. |
| Labels | Your own key and value pairs, such as site: oslo or role: core |
| Support status, coverage | Whether it is still supported, and by which agreements. Set by Upstacked. |
Lifecycle and status
Lifecycle is what you say about the device. Status is what Upstacked sees. A spare switch in the warehouse keeps its record and its agreements but raises no alarms. Setting a device to retired stops monitoring and resolves its alerts. Use that rather than deleting, when you want to keep history.
Unknown means no data yet. Unmonitored means the device is not active, not placed in an infrastructure, or has no checks.
Adding devices
One at a time
Create a device with at least a name. If it is active, placed in an infrastructure, and has a management address and a profile, monitoring starts straight away.
From a spreadsheet
Import a CSV file with a header row. Columns are field names, such as name,
management_address, vendor, serial_number and
label.site. Up to 10,000 rows.
- Every problem in the file is reported at once, with its line number, so you can fix it in one go.
- Rows are matched to existing devices by name. New names are added; existing ones updated.
- An import never deletes anything.
- The result is a plan. Nothing changes until you apply it.
By discovery
Give a discovery the address ranges to scan, up to 64 targets of at most a /16 each. Choose methods: ICMP finds what answers, SNMP identifies it, and LLDP finds the links between devices. By default it tries every SNMP credential that can be used in the infrastructure.
Discovery never changes anything. Its result is a plan with the devices and links it found, matched against existing devices by serial number, then by address. Review it and apply it.
From a cloud controller
Connect Meraki, Catalyst Center or SD-WAN as an integration and run discovery through it. See chapter 9.
Deleting devices
Deleting a device removes its checks, links and collected data. Retire it instead if you want to keep the record.
API/devices, /devices/import, /infrastructures/{id}/discover
6Assets and lifecycle
Every piece of hardware has a life: it is ordered, installed, covered by support and licenses, repaired, replaced and finally disposed of. Upstacked keeps track of all of it, warns before anything runs out, and shows what it is all worth.
Lifecycle states
| State | Means |
|---|---|
| Planned | Not bought yet, for example in a design |
| Ordered | Bought, not received |
| Active | In use. The only state that is monitored. |
| Spare | In stock at a site |
| In repair | Sent to the vendor. Records the vendor's case number and the support contract it is claimed under. |
| Missing | On record, but not where it should be |
| Retired | Out of use, still owned |
| Disposed | Gone for good. Records how (recycled, resold, returned to the lessor or vendor, destroyed), when, whether its data was wiped, and the certificate. This state is final. |
Every change of state is in the audit log, so each device and module has a timeline. Retiring or disposing of something that still has agreements or modules works, but Upstacked lists them, so nothing is paid for or left behind unnoticed.
Sites
A site is a physical place: an office, a data centre, a warehouse, a ship. Devices and modules name their site, and where inside it they are, such as rack B4, U12. An infrastructure can span several sites.
Modules
Line cards, transceivers such as SFPs, power supplies and fans are tracked as modules, each with its own serial number, support and lifecycle. A module is either installed in a device, in a slot, or stored as a spare at a site. Moving a module to another device or into stock keeps its own agreements.
Unlike a device, a module has no management address, checks, credentials or profiles: it is never reached on the network itself, only through the device it sits in.
Discovery finds installed modules, from the standard ENTITY-MIB that most switches and routers answer, or from a controller such as Meraki, and proposes them in its plan. For hardware that exposes neither, add modules by hand or import them. When a module stops being seen, it is not deleted: the next discovery plan lists it, so a pulled SFP is a decision, not silence.
The catalogue
Devices and modules are matched by vendor and SKU to a hardware model, which carries the vendor's end-of-life dates: end of sale, end of software maintenance, end of security fixes, last day to buy or renew support, and last day of support. It also names the recommended replacement and its list price.
Devices are also matched by vendor, OS and version to a software release, with its end of maintenance, end of security fixes, and whether the vendor recommends it. An old switch running an unsupported OS has two problems, and Upstacked shows both.
The data comes from every vendor, not just Cisco. Vendor APIs are connected as integrations, such as Cisco EoX and Service Coverage, Fortinet, HPE Aruba, Juniper, Palo Alto, Dell and Lenovo. For vendors without an API, import a spreadsheet or add the dates by hand. Every date shows where it came from and when it was last checked.
The catalogue is shared by all organizations and kept up to date by Upstacked, so one vendor's end-of-life notice reaches everyone with that model. An organization can keep its own copy of a model with other dates, for example after negotiating extended support.
Agreements
| Agreement | Is | Records |
|---|---|---|
| License | A right to use software or a feature, forever or for a term | Vendor, SKU, quantity, the vendor's pool (such as a Smart Account), the key (encrypted) |
| Subscription | A service paid for again and again, such as Meraki licensing | Quantity, whether it renews by itself, price per period |
| Support contract | Vendor support, a warranty, or third-party maintenance | Contract number, service level such as 24x7x4 |
| Lease | A financial agreement for hardware | Lessor, payments, interest, what happens at the end: return, buy out or extend |
Every agreement has a supplier, a purchase, a start and end date, and a price. An agreement is linked to each device or module it covers by an assignment, which can have its own dates: a vendor's support for one serial number can end before the contract does. Because agreements point at the hardware, not at its place, they move with it. A service provider can hold one contract that covers several customers' devices.
An assigned agreement cannot be deleted, so coverage never disappears without a trace.
Is it still supported?
Every device and module has one support status, with the reasons:
| Status | When |
|---|---|
| Supported | Nothing to do |
| Attention | Something ends within its notice period, or a renewal has not been decided |
| Unsupported | Past the vendor's end of support or security fixes, for the hardware or the software, or without a support contract |
It takes into account the hardware model, the software release, support contracts and warranties,
licenses, subscriptions, leases and the device's modules. Find everything that needs work with
support_status.state:(attention OR unsupported).
Renewals
Each agreement has a notice period, 90 days unless you set another for the organization or the agreement. Inside it the agreement is expiring. Record the decision on it: renew, let lapse or replace, with a note. Upstacked records who decided and when. An expiring agreement without a decision makes its devices need attention. For subscriptions that renew by themselves, the warning comes before the last day to cancel.
Warnings
Lifecycle warnings use the same alerts, notification rules and tickets as everything else. A check with the lifecycle as its source looks at every device, module, agreement and stock level once a day:
when: kind:device AND lifecycle_dates.last_day_of_support_on:<now+1y
priority: p4
message: {{device.name}} loses vendor support on {{row.lifecycle_dates.last_day_of_support_on}}
Other examples: kind:agreement AND status:expiring AND renewal.decision:undecided, or
kind:device AND software.end_of_security_support_on:<now. Because they are ordinary
alerts, a service desk integration can turn them into tickets.
Repairs and replacements
When hardware goes to the vendor, set it to in repair with the vendor's case number, and open a ticket for the case. When the replacement arrives, replace the old one: Upstacked makes a plan that moves its agreements, and for a device optionally its modules, to the replacement, and sets the old one to spare, retired or disposed. The same works for a hardware refresh.
Spares
Set a minimum stock level per site and hardware model, such as at least 2 SFP-10G-SR in
Oslo DC1. Watch it with kind:stock_level AND below:true.
What it is worth
Devices and modules record four kinds of value, shown side by side:
| Value | Is |
|---|---|
| Purchase price | What was paid, from the purchase |
| Book value | The purchase price written off in a straight line over the depreciation period |
| Replacement cost | What replacing it would cost, from its model's list price unless set |
| Invoiced | What the service provider charges the customer for it |
The inventory summary adds these up for any selection, such as one customer's site, grouped by site, customer, owner, category or status, together with the agreements and what they cost a year. Totals are per currency; Upstacked never converts. It also says how many items have no price, so an incomplete total is never mistaken for a complete one. [which values a customer can see, such as the provider's purchase price]
Planning refreshes
The forecast shows how many devices and modules reach a milestone, such as last day of support, in each year or quarter, per site or customer, what replacing them would cost, and with what. Use it for budgets and refresh projects. Doing the refresh then goes through replace, a plan and a change.
Suppliers and purchases
A supplier is who you buy, lease or get support from; the vendor is who made it. A purchase is a purchase order with its numbers and dates, which devices, modules and agreements point to.
Importing
Modules, licenses, subscriptions, support contracts, hardware models and software releases can all be imported from CSV, like devices. Every import is a plan: nothing changes until it is applied.
API/sites, /modules, /hardware-models,
/software-releases, /suppliers, /purchases, /licenses,
/subscriptions, /support-contracts, /leases, /assignments,
/devices/{id}/replace, /inventory-summary, /lifecycle-forecast,
/stock-levels
7Credentials
Credentials are the secrets used to reach devices. Once saved, a secret is never shown again, not even to admins.
A credential belongs to the organization and can be used in all its infrastructures, or limited to some where access must stay separate.
| Type | Holds |
|---|---|
| SNMP v2c | Community string |
| SNMP v3 | Username, security level, authentication and privacy protocols and passwords |
| SSH | Username, password and/or private key, port |
| HTTP | Basic login, bearer token, API key header, or OAuth2 client credentials |
How credentials are used
A device lists its credentials, at most one of each type. Its checks use them unless a check names a credential of its own. Profiles never name credentials, which is why one profile works on every device.
Secrets are encrypted at rest and only sent to the agents that need them. Only agents use credentials, for monitoring, discovery and tests. People with the admin role create and change them, but never use or see them.
Customer-managed keys
By default Upstacked manages the encryption keys. An organization can instead use a key of its own, kept in its own key management service, such as AWS KMS, Azure Key Vault or Google Cloud KMS. This is often called bring your own key (BYOK). It covers every secret the organization stores: credentials, integration secrets and license keys.
Each secret is encrypted with a data key, and only your key can decrypt that data key. Upstacked never sees your key, a copy of Upstacked's database reveals nothing without it, and every use of it shows up in your key service's own log.
Owners set up the key. If you disable it or take away Upstacked's access, Upstacked can no longer decrypt secrets or send them to agents, and monitoring that needs them stops. That never happens quietly: Upstacked opens a critical incident listing what can no longer be monitored, and picks up again as soon as access is back.
Testing and changing
Test a credential against a device to check that it logs in. The answer says what went wrong, for example SNMPv3 authentication failed: wrong digest (check auth protocol).
When you update a credential, send only what changes. Secrets you leave out keep their value. The type cannot be changed.
Deleting
Upstacked refuses to delete a credential while devices or checks use it, because they would stop collecting without telling anyone. The error lists what still uses it.
Never put secrets in labels, descriptions or tickets. Only credential fields are encrypted and hidden.
API/credentials, /credentials/{id}/test
8Monitoring
A check is one thing to watch on one device. Profiles hand out the same checks to many devices. Metric schemas describe the data they collect.
Checks
A check says:
- What to collect: a source (ICMP ping, SNMP, HTTP API, or an integration) and the metric schema its data fills.
- How often: every 30 seconds to once a day. The default is every minute, with a 10 second timeout.
- When to alert: up to 20 alert conditions.
| Source | Use it for | You set |
|---|---|---|
| ICMP | Is it reachable, and how fast | Pings each time it runs (gives round-trip time, packet loss, reachable) |
| SNMP | Switches, routers, firewalls, UPSes | Which OID or MIB object fills each field. Tables are walked, one row per index. |
| HTTP | Any JSON API | URL, method, headers, where the rows are, which value fills each field, and how a row is matched to the device |
| Integration | Cloud controllers such as Meraki | The integration and one of its datasets. Collected once for all devices and matched to each by serial number, so there is nothing to map. |
| Lifecycle | Warnings before end-of-life, support or license dates pass, and low spares | The organization. Checked once a day. See chapter 6. |
| Audit log | Watching changes in Upstacked itself | The organization. Conditions are checked against every audit event, for example action:token.create AND role:admin. Such a check belongs to the organization, not a device. |
Alert conditions
An alert condition is a rule in the query language, checked for every row the check returns:
name: High CPU
when: cpu_percent:>90
for: 300 seconds
severity: critical
priority: p2
message: CPU at {{row.cpu_percent}}% on {{device.name}}
For is how long the condition must hold before the alert fires, so a short spike does not wake anyone. The message is a template: write it the way the person who gets it at night needs to read it.
Every condition has both a severity and a priority. They answer different questions:
| Severity | Priority | |
|---|---|---|
| Answers | How bad is it technically? | How urgently does a person need to act? |
| Values | Info, warning, critical | P1 (most urgent) to P4 |
| Set by | The condition | The condition, defaulting from severity: critical is P2, warning P3, info P4. P1 is only ever set on purpose. People can change an incident's priority. |
| Used for | Reading the alert | Paging and tickets |
A CPU at 95% on a lab switch can be critical and P4. The same on a core router is critical and P1.
Ignoring some rows
Some rows should never alert. On an access switch, most ports connect laptops that come and go, and a port going down is normal. Instead of turning the check off, which would also stop the uplinks from alerting, add an ignore rule:
rows: if_alias:*desk* OR if_alias:*laptop*
conditions: Port down
reason: Desk ports, laptops come and go
expires: (never)
- Ignored rows are still collected, so traffic graphs and history are still there.
- The rule can ignore some conditions (Port down) and keep others (Errors on port).
- A reason is required. It is shown wherever the rows appear, so the next person knows why they are quiet.
- Each rule shows how many rows it matches right now. Zero usually means the query is wrong.
- A rule can expire, for example while an office is being rebuilt.
- The fastest way is from the alert itself: Stop alerting for this port adds a rule for exactly that row and resolves the alert. You can then widen it, for example to every port with the same description.
- Rules can be put on a profile, for all its devices, or on one device's check, even when the check comes from a profile.
- A test run shows which alerts would have fired but are ignored.
Testing a check
A check set up wrong does not complain; it stays silent. So test it. A test run collects once, through the real agent, and shows each stage:
| Stage | If it fails |
|---|---|
| Fetch | The device or API did not answer, or refused the credential |
| Device mapping | The answer came back, but nothing in it matched this device. Upstacked lists what it found instead. |
| Schema mapping | The values you asked for are not there |
| Alert evaluation | Shows which alerts would fire with this data |
A test run stores nothing and raises no alert. It shows at most 100 rows and 200,000 characters of the raw answer, and says when it was cut. You can test a check before saving it, test an existing one, or test one with unsaved changes. Test runs are queued for the agent and usually finish within seconds.
Check health
| State | Meaning |
|---|---|
| Unverified | Has never returned data. Do not trust it yet. |
| OK | The last collection returned data |
| Failing | The last collection failed. The error and when it started are shown. |
Changing a check's source or schema resets it to unverified. To find checks that have never
worked: health.state:unverified AND enabled:true.
Profiles
A profile is a named set of checks, such as IOS-XE base, BGP or PoE. Attach it to devices and they get its checks. A device can have several profiles, and profiles do not contain other profiles, so a device's list of profiles is the whole story. Change the profile and every device gets the change at once.
- Alert conditions, including their priority, come with the profile, so they do not have to be set up again for every device.
- To give many devices the same set, select them with a query and attach the profiles through a plan.
- On the device, a check from a profile can only be enabled, disabled or given extra ignore rules. Everything else is changed on the profile.
- Each check in a profile has a key, such as
cpu, that is set once. Devices are matched to it by key, so renaming a check keeps its history. Changing the key removes it and adds a new one, which starts a new history. - Two profiles on one device cannot have a check with the same key. Attaching the second is refused and names the clash.
- A profile in use cannot be deleted. Detach it from its devices first.
Metric schemas
A metric schema is the form the answers are written on: its fields, their types (integer, decimal, text, yes/no) and units. Fields that only grow, like byte counters, are marked as counters and shown as a rate per second.
Every check returns rows. A single value, such as CPU, is one row. A table, such as interfaces walked over SNMP, is one row per entry. A schema for tables names the fields that tell its rows apart, such as the interface index: those are its identifier fields. Alert conditions and ignore rules are checked row by row, which is how one port can be ignored while the others still alert.
Upstacked comes with built-in schemas that everyone can use but nobody can change. Use them where you can: data in the same schema can be compared across vendors. Fields can be added to your own schemas, but not removed or changed while checks use them.
API/checks, /checks/dry-run, /checks/{id}/dry-run,
/profiles, /metric-schemas
9Integrations
An integration connects Upstacked to another system. Each one is connected once, has a health status, and does what its type is good at.
| Integration | Find devices | Collect data | Sync tickets | Notify |
|---|---|---|---|---|
| Cisco Meraki | Yes | Yes | ||
| Catalyst Center (DNAC) | Yes | Yes | ||
| Cisco SD-WAN (vManage) | Yes | Yes | ||
| Webex, Cyber Vision | Yes | |||
| ServiceNow, ConnectWise, TOPdesk, Jira Service Management | Both ways | Yes | ||
| Slack, Microsoft Teams | Yes | |||
| SMS and voice | Built in | |||
| PagerDuty, Opsgenie | Yes | |||
| Webhooks | Yes |
Connecting
You connect an integration once, by signing in to the other system or pasting an API key. The secret is stored encrypted on the integration itself, not as a credential, and only Upstacked's servers can read it. Agents never see it. If the other system stops accepting it, the integration shows as failing, and so do the checks that read from it, so nothing goes quiet unnoticed.
An integration that checks or escalation policies still use cannot be disconnected. The error says which.
Cloud controllers
A controller serves many devices through one API. Upstacked calls it once per collection and hands each device its own rows, matched by serial number. Vendor details such as paging and rate limits are handled by Upstacked. No agent is needed.
What a controller collects is offered as datasets, such as device statuses or uplink loss. A check reads a dataset by choosing it as its source, so controller data gets the same alert conditions, profiles and ignore rules as everything else. A profile can name just the dataset and use whichever integration the device's infrastructure has.
A controller can also propose its devices: discovering from it produces a plan, like discovery by an agent.
Ticket systems
Tickets stay in sync in both directions: title, status, priority, assignee and comments. A service
desk can also open tickets by itself for some incidents, for example priority:(p1 OR p2),
with default fields such as the assignment group. Each ticket
shows a link to its copy and its sync status. When both sides change the same field, the most recent
change wins, and the conflict is written to the audit log. Comments are merged, never overwritten.
[field mapping per system]
Chat and paging
Slack and Teams messages carry buttons to acknowledge. SMS can be acknowledged by replying, and voice calls by pressing 1. A webhook can be a step in an escalation policy, to set off anything from a status page to a siren. See chapter 11.
API/integrations, /integrations/{id}/test,
/integrations/{id}/discover, /integrations/{id}/authorize
10Alerts and incidents
An alert is one condition that fired. An incident is the problem behind one or more alerts. People work incidents, not alerts.
Alerts
Alerts are created and cleared by Upstacked. Each one says which device, which check, which row (for example which interface), the value that triggered it and when. An alert during a maintenance window is recorded as silenced and opens no incident. Rows matched by an ignore rule raise no alert at all.
How alerts are grouped
| Method | When it applies |
|---|---|
| Single | One alert with nothing related |
| Topology | Alerts from devices behind a device that failed. The failed device is named as the likely cause. |
| Similarity | The same condition on many devices at once |
| Sequence | Alerts that usually follow each other |
| AI | Alerts the rules above do not connect, but that the AI links through logs, flows, recent changes or similar past incidents |
Every incident explains why its alerts were grouped, in plain words, for example 14 devices behind core-sw-01 became unreachable within 40 seconds of it. Topology grouping depends on correct links, so keep the topology up to date.
What the AI found
Every incident gets an analysis: a short summary of what is happening and up to five suggested causes, most likely first. Each suggestion has a confidence and the evidence it is based on, such as a change applied two minutes earlier or a log line, so a person can check it. The analysis is updated as alerts join or clear. It is advice: Upstacked never acts on it by itself.
When an incident is over, ask for a report. The AI writes a draft with the timeline, impact, likely cause and what was done, from the incident's alerts, pages, tickets and changes. Edit it and post it where it is needed, for example as a ticket comment for the customer.
Working an incident
- Acknowledge to say you are on it. Paging stops.
- Assign it to someone. That also acknowledges it.
- Open a ticket from it when follow-up work is needed. The ticket gets the incident's title, infrastructure and devices.
- Resolve it by hand, or let it resolve itself when all its alerts clear. If the same cause fires again after a manual resolve, a new incident opens.
An incident's severity is the highest severity among its alerts, and its priority starts as the highest priority among them. Change the priority by hand when the situation calls for it; notification rules are checked again.
API/alerts, /alerts/{id}/ignore, /incidents,
/incidents/{id}/escalate, /incidents/{id}/report
11On-call
On-call decides who is woken up, how, and who comes next if they do not answer.
Contact methods
Each person adds the ways they can be reached: phone for SMS and voice calls, email, Slack or Teams. Every method is verified with a code before it can be used, because an unverified number fails without anyone noticing. Each method can wait before it is used: for example an SMS straight away and a call after 2 minutes if nobody has acknowledged. Send yourself a test page to check.
A voice call is automated. It reads out the incident and asks you to press 1 to acknowledge and take it, or 2 to pass it to the next step. An SMS can be answered the same way, with 1 or 2.
Your last verified method cannot be deleted while you are in a schedule.
Schedules
A schedule says who is on duty at any time. It has one or more rotations, for example weekly with handover on Monday at 08:00 in Europe/Oslo time, and a list of people who take turns.
An override covers a gap: Per covers Kari on 3 November from 18:00 to midnight. Overrides win over the rotation. Anyone with access can be on call, including engineers at a service provider.
A layer can be limited to some hours, such as nights and weekends, on top of the normal rotation. The list of shifts shows who is on call when, and shows gaps as shifts with nobody in them. A change that would open a new gap is refused.
Escalation policies
An escalation policy is a list of steps:
Step 1 Page the schedule "Network primary" wait 10 minutes
Step 2 Page the schedule "Network secondary" wait 15 minutes
Step 3 Page Kari (team lead) wait 10 minutes
Step 4 Call the webhook "24/7 room siren"
Repeat 2 times
A step pages schedules, people or integrations: a webhook, a Slack or Teams channel, PagerDuty or Opsgenie. The last step can be a Hail Mary, such as a siren in a room staffed around the clock. Repeat 2 means three rounds in total before Upstacked gives up. Pressing 2 on a call, or Escalate in Upstacked, moves on to the next step without waiting.
Escalation moves to the next step when nobody acknowledges in time. It stops as soon as someone acknowledges, wherever they do it: in Upstacked, by SMS reply, on the voice menu, or with a Slack or Teams button.
Notification rules
A notification rule sends incidents that match a filter to an escalation policy:
name: Urgent in Oslo
when: priority:(p1 OR p2) AND device.label.site:oslo
to: escalation policy "Network"
Rules are checked in order and the first one that matches wins, so put the specific rules first and a catch-all last. A rule without a policy matches on purpose without paging anyone, for example to keep P4 incidents quiet. Labels are yours to choose, so rules can be as simple or as detailed as you need, and the same rules work for every customer.
Rules belong to an organization. A rule can send incidents to another organization instead of an escalation policy: a service provider with a grant of at least operator, so its people can acknowledge. The provider's own rules then route them internally, for example by customer label or by site, so one set of rules serves all its customers. An incident handed to a provider cannot be handed on again.
name: Oslo to Telenor
when: device.label.site:oslo
to: organization "Telenor"
People at the provider can also simply be in your own schedules.
Before relying on a rule, ask who would be paged: give an incident, real or made up, and Upstacked shows which rule matches and who the first step would page right now, or warns when nobody would be.
Who was paged
Every page is recorded: who, how, at which step and round, and what they did, such as pressing 1. The incident shows where escalation is now and when the next step will be paged.
During maintenance
Alerts in a maintenance window open no incident, so nobody is paged. An incident that was already open before the window started keeps escalating.
API/schedules, /schedules/{id}/shifts,
/schedules/{id}/overrides, /escalation-policies, /notification-rules,
/notification-rules/evaluate, /contact-methods, /notifications
12Tickets
Tickets are work for people: fixing something, following up, or answering a customer.
A ticket belongs to an organization, usually the customer it is about, and can name an infrastructure, devices and the incident that caused it. Tickets get a short number per organization, such as #1042.
| Status | Meaning |
|---|---|
| Open | New, not started |
| In progress | Someone is working on it |
| Waiting | On the requester or a third party |
| Resolved | Done. Needs a resolution code. The requester can still reopen it. |
| Closed | Final, 7 days after being resolved |
Resolution codes: fixed, workaround, duplicate, not reproducible, won't fix, resolved by customer. Priorities are the same as for incidents, P1 to P4, and a ticket opened from an incident starts with its priority.
A ticket synced with a service desk such as ServiceNow, ConnectWise or TOPdesk shows its number and link there, and whether the last sync worked. If a sync fails, the ticket keeps working in Upstacked and catches up when the problem is fixed.
Comments
Comments are written in Markdown. An internal comment is only visible to the people working the ticket, not to the requester. Comments cannot be edited or deleted, so a ticket stays a reliable record.
On someone's behalf
Create a ticket with a requester's email address and they get updates by email, even without a user.
Merging duplicates
Merge a ticket into another to close it as a duplicate. Its comments and devices move to the ticket you keep.
API/tickets, /tickets/{id}/comments, /tickets/{id}/merge
13Changes and maintenance windows
A change is planned work that someone else approves. A maintenance window keeps alarms quiet while the work is done.
The change flow
| From | To | Who |
|---|---|---|
| Draft | Submitted or cancelled | The requester |
| Submitted | Approved or rejected | An admin other than the requester |
| Approved | In progress or cancelled | An operator |
| In progress | Completed or failed | An operator |
A change has a title, a description (what, why, and how to roll back), a risk level, planned start and end, and the devices it touches. Only drafts and rejected changes can be edited. Rejecting or failing a change needs a note. When you start a change you can open a maintenance window for its devices until the planned end.
Maintenance windows
A window has a reason, a start, an end (at most 7 days later) and the devices it covers: either a
list, or a filter such as label.site:oslo AND label.role:core. A filter is checked
continuously, so devices added during the window are covered too.
- Monitoring keeps collecting. Alerts are recorded as silenced and open no incidents.
- End a window early by setting its end to now. Anything still broken then becomes a normal incident.
- Windows that have started cannot be deleted, only ended, so the record is kept.
API/changes, /changes/{id}/transition, /maintenance-windows
14Topology and IP address management
Topology is which device is connected to which. IP address management keeps track of subnets and the addresses in them.
Links and the topology map
Links are found by discovery from LLDP and CDP data, and kept up to date. Add links discovery cannot see, such as a provider circuit, by hand. Each link shows as up, down or unknown, based on interface monitoring at either end.
The topology map shows every active device and its links. Correct topology is what lets Upstacked name the cause of an outage instead of listing every device behind it.
Subnets
A subnet has a CIDR (IPv4 or IPv6), a name, a VLAN and a gateway. Subnets nest by themselves: a /24 inside an existing /16 gets it as parent. Each subnet shows how full it is.
To find nearly full subnets: utilization.percent:>90. Deleting a subnet moves its
addresses to its parent; it is refused when there is no parent to move them to.
IP addresses
Record an address as assigned, reserved or DHCP, optionally linked to a device and a hostname. Use Allocate next free to take the lowest free address in a subnet. It skips the network, broadcast and gateway addresses, and two people allocating at the same time never get the same address.
API/links, /infrastructures/{id}/topology, /subnets,
/subnets/{id}/allocate, /ip-addresses
15Metrics, logs and flows
Everything Upstacked collects can be searched and graphed.
Metrics
Ask for one device and one schema over a time range, for example interface traffic on the uplinks of core-sw-01 for the last day. Counters are shown as a rate per second. Points are averaged into about 300 steps unless you choose the step size.
Logs
Syslog messages from devices, searchable by device, severity, program, fields parsed from the message and free text:
device_id:dev_01jb8xkq2m9v7r3t5w6y8z0a1c AND severity:<=warning AND "link down"
Severity compares by rank, so severity:<=warning means warning or worse.
Flows
NetFlow, IPFIX and sFlow records show who talks to whom. The flow summary answers the common
question, where is the traffic going?, by grouping traffic by one or two fields such as
destination address. Address fields accept subnets, such as source_address:10.20.0.0/24.
How long data is kept
| Data | Detailed | Summarised |
|---|---|---|
| Metrics | 30 days | 5-minute summaries for 13 months |
| Logs | 30 days | |
| Flows | 7 days | Hourly summaries for 90 days |
| Runs | 30 days | |
| Audit log | 13 months |
API/metrics, /logs, /flows, /flows/summary
16Plans and infrastructure as code
A plan shows what a bulk change would do before it does it. Plans let you keep an infrastructure's setup in files, reviewed like any other change.
Where plans come from
- You, by describing how the infrastructure should look: its devices with their profiles, credentials and checks, its links and its subnets.
- A CSV import of devices.
- A discovery, with what it found.
Reading a plan
A plan lists every change, deletions first, with the fields that differ. It also shows:
- Warnings a person should read. The most important is monitoring removed: nothing pages anyone when monitoring quietly stops.
- Errors that stop it from being applied, such as an unknown profile name. All of them are listed at once.
Applying
- A plan is applied all at once, or not at all.
- A plan that deletes anything needs an explicit confirmation to delete.
- If the infrastructure changes after the plan was made, the plan becomes stale. Make a new one. Plans expire after 24 hours.
Keeping setup in files
Resources in a plan are matched by name: devices by name, checks by device and key, subnets by CIDR, links by their two ends. The same description always gives an empty plan once applied, so it is safe to plan and apply on every commit. Without prune a plan only adds and updates. With prune it also removes what the description leaves out.
Credentials are never part of a plan. Devices name credentials, and the secrets stay out of your files.
API/plans, /plans/{id}/apply
17Runs and the audit log
Runs
Work that takes time gives you a run: discovery, check test runs, credential tests and plan applies. A run is queued, running, succeeded, failed or cancelled. A run that no agent picks up within 2 minutes fails and says which agent was last seen when.
Queued runs can be cancelled at once. Running ones stop at the next safe point. A plan apply is never stopped half-way.
Audit log
Every change made through Upstacked is recorded: who (a person, a token, an agent or Upstacked itself), what, when, and which fields changed from what to what. Secrets are never included. Search by resource, person, action or time.
The audit log can also be watched. A check with the audit log as its source alerts on matching events, like any other alert, for example when someone creates a token with admin rights, or a grant is given to a new organization.
API/runs, /runs/{id}/cancel, /audit-events
18Query language reference
One small language is used everywhere: to filter any list, search logs and flows, pick devices for a maintenance window, write alert conditions and ignore rules, and route incidents with notification rules.
| Write | Means |
|---|---|
status:down | Field equals value |
name:core-* | Wildcard |
label.site:oslo | A label's value |
cpu_percent:>90 | Comparison: >, >=, <, <= |
created_at:>=2026-10-01 | Dates and times |
ends_on:<now+90d | Relative to now: now, now-7d, now+12w, now+6m, now+2y |
status:(down OR unknown) | Any of several values |
NOT lifecycle:retired | Negation |
status:down AND label.site:oslo | Combine with AND, OR and parentheses |
"connection refused" | Free text, in logs, flows and tickets |
source_address:10.20.0.0/24 | Address within a subnet |
assignee.id:me | You |
Each list documents the fields it accepts. An unknown field is an error, not an empty result, so a typo never looks like “nothing found”.
Useful searches
| Question | Search |
|---|---|
| What is down in Oslo? | status:down AND label.site:oslo |
| Which devices lose support within 90 days? | coverage.support_ends_on:<now+90d AND lifecycle:active |
| What is no longer supported? | support_status.state:unsupported |
| Which renewals are undecided? | status:expiring AND renewal.decision:undecided on agreements |
| Which checks have never worked? | health.state:unverified AND enabled:true |
| What is firing right now? | state:firing AND silenced:false |
| Unhandled urgent incidents | status:open AND priority:(p1 OR p2) |
| Am I on call? | on_call_now.id:me on schedules |
| Integrations that need attention | status:(failing OR pending_authorization) |
| My open tickets | assignee.id:me AND status:(open OR in_progress) |
19Using the API and the ups tool
Everything in Upstacked can be done through the API. The web app, the ups
tool, AI agents and the collector agents all use the same API.
Conventions
- All paths start with
/v2. Every resource lives at/{resources}and/{resources}/{id}. Lists cover everything you can access; narrow them withfilter. - To create something, send it to the collection with its parent in the body, for example
POST /v2/deviceswithorganization_id. - IDs carry their type:
dev_…is a device,inc_…an incident. Passing the wrong kind is an error that says what was expected. - Updates change only the fields you send.
- Lists return up to 50 items, at most 200. Pass
next_cursorascursorfor the next page. - Errors explain what was wrong and point at the field.
- Work that takes time answers
202with a run. Wait for it withGET /v2/runs/{id}?wait_seconds=30.
Authentication
Send a token in the header: Authorization: Bearer <token>.
curl -H "Authorization: Bearer $UPSTACKED_TOKEN" \
"https://[api host]/v2/incidents?filter=status:open"
The ups tool
The ups command-line tool covers the same ground. Without a terminal it never prompts:
commands that change things need --yes, and deleting through ups apply also
needs --allow-delete. [ups v2 command reference]
ReferenceThe full API reference, with every field and example, is at upstacked-api-v2.dihost.app.
20Troubleshooting
A device shows as unknown
It has no data yet. Make sure it is active, placed in an infrastructure, has a management address and has at least one check, and that its agent is online.
A check stays unverified
Run a test. The stage that fails says where to look: fetch means the device did not answer or refused the credential; device mapping means the answer did not match this device; schema mapping means the values asked for are not in the answer.
An agent is offline
Check that the machine is running and can reach Upstacked on the internet. If it was moved or rebuilt, re-enroll it.
A test run fails with “agent unavailable”
No agent picked it up within 2 minutes. The message says when the agent was last seen.
Lots of separate incidents for one outage
Topology grouping needs links. Run a discovery with LLDP, or add the missing links by hand.
Nobody was paged
Ask who would be paged for the incident, and look at its list of pages. Check that a notification rule matches the incident, that its escalation policy has a schedule with someone on duty, and that their contact methods are verified. Check whether a maintenance window covered the device.
I can't delete a credential, profile or agent
Something still uses it, and deleting it would stop monitoring without warning. The error lists what uses it.
A port should alert but does not
Look for an ignore rule on the check. Every rule shows its reason and who added it.
A plan says “stale”
The infrastructure changed after the plan was made. Make a new plan.
21Glossary
- Agent
- A program installed in a network that collects data and runs work for Upstacked.
- Alert
- One alert condition that fired.
- Assignment
- The link between an agreement and a device or module it covers.
- Change
- Planned work, approved before it starts.
- Check
- What to collect from one device, how often, and when to alert.
- Credential
- A secret used to reach devices.
- Device
- Anything on the network you care about, with its health and its paperwork.
- Escalation policy
- Who to page, how long to wait, and who comes next.
- Feature
- Something extra an organization can do, such as being a service provider.
- Hardware model
- A vendor's product, with its end-of-life dates.
- Grant
- Access given by one organization to another, typically to a service provider.
- Incident
- The problem behind one or more related alerts.
- Infrastructure
- One network you look after.
- Ignore rule
- Rows of a check that are collected but never alert.
- Integration
- A connection to another system: a controller, a service desk, chat or paging.
- Lease
- A financial agreement for hardware.
- License
- A right to use software or a feature.
- Label
- A key and value you attach to things, such as
site: oslo. - Maintenance window
- A period in which alerts on chosen devices stay quiet.
- Metric schema
- The shape of collected data: fields, types and units.
- Module
- A line card, SFP, power supply or other part with its own serial number.
- Notification rule
- Which incidents go to which escalation policy or service provider.
- Organization
- A company: your own, or a customer.
- Override
- A temporary change to who is on call.
- Purchase
- A purchase order that hardware and agreements point to.
- Plan
- A preview of a bulk change, applied only when approved.
- Priority
- How urgently a person needs to act, P1 to P4.
- Profile
- A reusable set of checks.
- Run
- A record of work that takes time, with its result.
- Site
- A physical place, such as an office or a data centre.
- Software release
- A version of a vendor's OS, with its end-of-life dates.
- Schedule
- Who is on duty, and when.
- Severity
- How bad something is technically: info, warning or critical.
- Subscription
- A service paid for again and again, that renews.
- Supplier
- Who you buy, lease or get support from.
- Support contract
- Vendor support, a warranty or third-party maintenance.
- Support status
- Whether a device or module is supported, needs attention, or is unsupported.
- Test run
- One collection that stores nothing, to see that a check works.
- Ticket
- Work for a person.
22Open questions
These are not decided yet, and the manual will change when they are.
- Which identity provider people sign in with.
- Minimum hardware for the agent.
- The field mapping for each service desk (ServiceNow, ConnectWise, TOPdesk, Jira Service Management).
- Whether an agent belongs to the organization, and can be pointed at an infrastructure, or to one infrastructure as today.
- Assets: whether licenses and subscriptions are really two things; which depreciation method and period to use; which values a customer may see; how many levels of sites are needed; which vendor APIs come first; whether customers can add hardware models of their own to the shared catalogue.
- Which organization features exist besides service provider, for example for security consultants.
- Log-based alert rules: the audit log can be watched; whether device logs work the same way.
- Outbound webhooks and an event stream for integrators: which events, and their format.
- Whether Zabbix, the CVE feed, health check reports and device configuration backups return.
- API host name, pricing, and how existing customers move over.
- The command reference for
upsagainst the v2 API.