Comments (1)
I think that's entirely possible, especially if you do not hit the /metrics
endpoint, which is what will cause the cache to refresh when something is not found.
The HTTP interface hits the database directly, it has no connection with the code that is responsible for receiving data points and storing them in the database. And so it's possible that series/datapoints exist, and yet the HTTP interface doesn't know about them yet.
IIRC tgres used to refresh the UI name cache periodically, but I may have disabled that because when you have a lot of series, it doesn't work very well. What it presently does is refresh after calls to '/metrics'.
The right way to do this would be to listen for notifications from Postgres that a new series was created, there's even a comment left to that extent: https://github.com/tgres/tgres/blob/master/dsl/named_ds.go#L125
from tgres.
Related Issues (17)
- undefined: pq.Array golang go version go1.8 darwin/amd64 HOT 2
- fatal error: concurrent map iteration and map write HOT 3
- isNonNull is incorrect
- Failed to get final advertise address HOT 3
- provide a way to delete data sources HOT 2
- The gap / backfill problem. HOT 3
- Tgres is not exiting properly HOT 1
- Connecting to Grafana HOT 2
- Can't build on Windows?
- HTTP /render endpoint not returning data HOT 1
- Collectd support
- Add foreground option for Docker use HOT 4
- Graceful restart broken HOT 1
- Metric listing is incorrect sometimes
- averageSeries with wildcard causes 'invalid memory address or nil pointer dereference' HOT 4
- Value Lists not supported HOT 3
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 tgres.