hashicorp / hashicorp/nomad

Support a non-streaming interface for the agent monitor API

Open
#8,282 0 comments 0 reactions 0 assignees View on GitHub
theme/api type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

Currently, the only way to use the agent monitor API is via streaming HTTP. This is the ideal way to model log streaming, but older browsers (namely IE11) don't support streaming HTTP.

Our other streaming APIs have [follow, and offset params](https://www.nomadproject.io/api-docs/client#follow-1) that can used to construct a simple polling solution for log streaming while guaranteeing no messages lost between requests.

Since agent monitor right now is basically just teeing the agent logs, this probably isn't practical to build right now, but I think it should be a consideration when looking into #8053.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the agent monitor API and the related work in issue #8053. Done would mean a non-streaming option that supports polling with follow and offset parameters, preserves messages between requests, and works for clients such as IE11.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.