Comments (2)
Hi there! Similar to other Push Gateways, we don't persist state here. The logic is that this behaves as sort of a proxy for your metrics - if you restart a standard service, then you lose state so we figured that it wasn't important here.
That being said, I think the idea of persisting state, at least for an opt-in subset of metrics is interesting. Did you have a usecase in mind?
from prometheus-gravel-gateway.
Similar to other Push Gateways, we don't persist state here. The logic is that this behaves as sort of a proxy for your metrics - if you restart a standard service, then you lose state so we figured that it wasn't important here.
I understand, we have been using the "original" Pushgateway which does allow you to define a persistent file. It is written to the file system which we have had varied success with when running on Kubernetes and with network storage.
That being said, I think the idea of persisting state, at least for an opt-in subset of metrics is interesting. Did you have a use case in mind?
Our use case is for batch and other types of long running jobs that have a more "loose" coupling to the push gateway, as in the push gateway will be a continuous proxy, but the jobs will come and go throughout the day.
The concern with having the push gateway being able to "recover" after a restart would be for very long running jobs that might not emit continuous metrics. In that scenario, if the push gateway is restarted, we might end in a scenario where the last metric emitted by a job is "lost" and marked absent by Prometheus since it is no longer in the push gateway.
I agree that this isnt necessary for every use case, so a opt-in sounds like a reasonable approach.
Blob/S3 is suggested to make the application a bit more resilient to things that attempt to mimic POSIX semantics (like a persistent kubernetes volume) but might fail because of networking etc.
from prometheus-gravel-gateway.
Related Issues (20)
- Support PUT for clearing all existing metrics HOT 2
- [Pebbles] AggregationError HOT 1
- [Questions] Clustering HOT 1
- Pebbles - mean not correct HOT 2
- Support K8s deployment via helm charts HOT 1
- Base64 encode the authorization header HOT 1
- Metrics that do not always have a recorded value cause 400 errors. HOT 1
- Why is there a TODO for prometheus distributions summaries? HOT 3
- Docker build is broken?
- Release v1.6.1 missing HOT 1
- clearmode="family" only allows removing labels HOT 1
- Cluster Returning Values from All Peers
- URL label values are being swapped HOT 1
- Segmentation Fault (SIGSEGV) when cluster is enabled
- Pushing a metric with a subset or superset of existing label names causes error HOT 1
- Label value not decoded
- Use per-job aggregators HOT 1
- Error when dealing with metrics that only contain HELP and TYPE lines HOT 1
- Reset Endpoint
- metric label overriding HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus-gravel-gateway.