Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Fix namespace for metrics invocations (#700) #702

Merged
merged 2 commits into from
Dec 1, 2020

Conversation

alexellis
Copy link
Member

Description

Fix namespace for metrics invocations (#700)

How Has This Been Tested?

Fix namespace for metrics invocations

The metrics for OpenFaaS now have a namespace suffix so
that it is needed when looking up Prometheus metrics.

This change also fixes the proxy issue with create-react-app
now deprecating proxy settings in the package.json

Fixes: #700

Tested before/after with OFC on my RPi - as set up by @Waterdrips. I swapped the image and tested the dashboard locally via yarn start - this gave the expected metrics.

How are existing users impacted? What migration steps/scripts do we need?

Updating the image should be enough.

http-proxy-middleware is now required for local testing instead
of setting "proxy" in package.json

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
The metrics for OpenFaaS now have a namespace suffix so
that it is needed when looking up Prometheus metrics.

This change also fixes the proxy issue with create-react-app
now deprecating proxy settings in the package.json

Fixes: #700

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
@alexellis alexellis requested a review from Waterdrips December 1, 2020 11:17
@alexellis alexellis merged commit ff1aa45 into master Dec 1, 2020
@alexellis alexellis deleted the openfaasltd/metrics-fix branch December 1, 2020 12:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants