docs(observability-proxy): describe the proxy as it stands

The package and serve comments described a delivery plan rather than
the code: the command named metrics it does not serve, and serve gave a
plan as the reason to refuse unknown roots before authenticating.

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
This commit is contained in:
ZverGuy committed 2026-11-10 03:53:24 +07:00
1 parent 4eff1617e5
commit d2ef5e031f
2 files changed
+5 -6

No files matched your search

+3 -4
View File
@@ -14,10 +14,9 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
// Command observability-proxy serves tenant logs (and, in later waves,
// metrics) from the VictoriaLogs and VictoriaMetrics stores behind a
// Kubernetes TokenReview and SubjectAccessReview, with the tenant's
// namespace scope forced into every upstream request.
// Command observability-proxy serves tenant logs from the VictoriaLogs
// stores behind a Kubernetes TokenReview and SubjectAccessReview, with the
// tenant's namespace scope forced into every upstream request.
package main
import (
+2 -2
View File
@@ -164,8 +164,8 @@ func writeError(w http.ResponseWriter, e *HTTPError) {
http.Error(w, e.Message, e.Code)
}
// serve answers an unimplemented root before authenticating, so later
// waves only add a case here.
// serve answers a root it has no handler for before authenticating, so an
// unknown path costs no review calls.
func (s *Server) serve(w http.ResponseWriter, r *http.Request, route Route) *HTTPError {
if route.Kind != NamespaceLogs {
return errorf(http.StatusNotFound, "not found")