Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document: persistant metrics storage in production #1312

Open
2 of 3 tasks
LucasRoesler opened this issue Sep 16, 2019 · 3 comments
Open
2 of 3 tasks

Document: persistant metrics storage in production #1312

LucasRoesler opened this issue Sep 16, 2019 · 3 comments

Comments

@LucasRoesler
Copy link
Member

My actions before raising this issue

Expected Behaviour

When a cluster is restarted or more specifically if the Prometheus pod is restarted, the function metrics should be unaffected

Current Behaviour

When a cluster is restarted or more specifically if the Prometheus pod is restarted, the function metrics are not persisted to a volume and are therefore reset to 0

Possible Solution

Update the production documentation https://docs.openfaas.com/architecture/production/ to describe how to deploy Prometheus with a persistent volume storage. This may require exposing a new option in the Helm chart.

Context

In the Kubernetes channel in the OpenFaaS Slack, a user noticed a cluster restart or some kind of pod restarts because all of the function stats were reset to zero. This was unexpected and was original seen as a potential crash or bug in the entire OF system.

@s1monw1
Copy link

s1monw1 commented Nov 30, 2020

Has this come up again? What are the options to enable persistent storage for OpenFaas' Prometheus?

@alexellis
Copy link
Member

No specific configuration is required in OpenFaaS, the operator should configure a volume mount or use a service with long term storage built in like Thanos or Cortex.

@alexellis
Copy link
Member

Feel free to ask about Prometheus configuration on the Prometheus slack or in their docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants