Comments (5)
You're welcome. There is a blog post I've published recently on how you integrate Prometheus with PostgreSQL/TimescaleDB: https://blog.timescale.com/sql-nosql-data-storage-for-prometheus-devops-monitoring-postgresql-timescaledb-time-series-3cde27fd1e07
from prometheus-postgresql-adapter.
Hi @momania,
since docker containers are ephemeral you need to mount a local host volume to a container so all the data will be saved on you local machine https://docs.docker.com/storage/volumes/
There is a tutorial that shows basic steps on how to get started
http://docs.timescale.com/v0.10/tutorials/prometheus-adapter
from prometheus-postgresql-adapter.
Ah I missed that tutorial, just went with the readme on this repo.
Figured out in the end as well that Prometheus needs at least a mounted volume to keep the index and some of the stats in its local db.
Still a shame though, would be so nice if it can just rebuild its index from the remote storage somehow, so the container running Prometheus can be completely stateless (and thus easy to move around a cluster)
Hope they will improve on this in future releases. I'll check if this is already in the pipeline, otherwise shoot it in as a feature/improvement request on the Prometheus repo.
Thanks for the info and the direction @niksajakovljevic 👍
from prometheus-postgresql-adapter.
Have the same issue.. After restarting prometheus I have gaps in the graphs:
https://upload.wiuwiu.de/share.php/566e520d-aa03-45b3-b956-7ed4d502a70e/Screenshot%20from%202019-02-09%2016-59-13.png
from prometheus-postgresql-adapter.
Same problem. After restarting server lost last ~2 hours of logs (no problem with older logs). Nothing important it's testing machine for prometheus. Typical basic prometheus.yml file from tutorials.
root@lcx:~/promo# uname -a
Linux lcx 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
root@lcx:~/promo# ./prometheus --version
prometheus, version 2.8.1 (branch: HEAD, revision: 4d60eb36dcbed725fcac5b27018574118f12fffb)
build user: root@bfdd6a22a683
build date: 20190328-18:04:08
go version: go1.11.6
Getting warnings:
Fist restart:
level=warn ts=2019-04-04T10:50:46.677339638Z caller=head.go:450 component=tsdb msg="unknown series references" count=1821739
Second restart:
level=warn ts=2019-04-04T10:54:32.894463993Z caller=head.go:450 component=tsdb msg="unknown series references" count=1858139
Issue is similar to this one.
prometheus/prometheus#2390
from prometheus-postgresql-adapter.
Related Issues (20)
- how to clean data in timescaledb HOT 1
- Docker Container Image Outdated HOT 1
- [Thanos Integration] Implementing other API's
- prometheus-postgresql-adapter crashes on prometheus reload HOT 1
- Adapter High memory usage - 20GB+ HOT 1
- too many open files error HOT 1
- Suppot other locales than english
- How to configure to connect to Postgres with a different user account than postgres HOT 3
- Grafana Dashboards not showing correct data from Promethus which is using Timescale db HOT 2
- Error: manifest for timescale/pg_prometheus:latest not found HOT 2
- Error: prometheus_postgresql_adapter on 127.0.0.11:53: no such host
- Too many metrics data are logged in pg-adapter container log HOT 1
- No documentation how to use RAFT based cluster manager like ETCD
- Prometheus-postgresql-adapter in HA mode starts to write with 2 nodes after database restart HOT 5
- Adapter triggers "CREATE TABLE metrics_labels" every start HOT 3
- no docs about how adapter work
- Md5sum for binaries HOT 1
- Logging plaintext password HOT 3
- Leader election not happening if leader resigns due to prometheus timeout
- Run adapter without superuser
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-postgresql-adapter.