camptocamp / wal-g-prometheus-exporter Goto Github PK
View Code? Open in Web Editor NEWExport prometheus metrics for wal-g backup tool
Export prometheus metrics for wal-g backup tool
Potential bug?
Our exporter has worked fine for months, and a few days ago it started emitting logs like this one:
Traceback (most recent call last):
AttributeError: 'NoneType' object has no attribute 'timestamp'
File "exporter.py", line 239, in last_xlog_upload_callback
File "prometheus_client/metrics.py", line 420, in samples
File "prometheus_client/metrics.py", line 213, in _samples
File "prometheus_client/metrics.py", line 220, in _multi_samples
File "prometheus_client/metrics.py", line 94, in collect
File "prometheus_client/registry.py", line 83, in collect
File "prometheus_client/openmetrics/exposition.py", line 22, in generate_latest
File "prometheus_client/exposition.py", line 104, in _bake_output
File "prometheus_client/exposition.py", line 122, in prometheus_app
File "wsgiref/handlers.py", line 137, in run
i.e. here:
wal-g-prometheus-exporter/exporter.py
Line 238 in b5a0a46
(I have different line numbers, due to us using this fork with the changes from #3: https://github.com/pagero/wal-g-prometheus-exporter)
Since Kubernetes doesn't support sending signals (i.e. SIGHUP
) to pods/containers, it would be nice being able to trigger/schedule updates of metrics related to basebackups
Related to this in the current implementation:
wal-g-prometheus-exporter/exporter.py
Lines 296 to 300 in b5a0a46
&
wal-g-prometheus-exporter/exporter.py
Lines 162 to 166 in b5a0a46
What do you think?
Hi,
i am interested in exporting metrics from a wal-g instance that streams the arhive to S3 and uses a config-file similar to:
{
"WALG_S3_PREFIX": "s3://",
"AWS_ACCESS_KEY_ID": "",
"AWS_SECRET_ACCESS_KEY": "",
"AWS_ENDPOINT": "",
"AWS_S3_FORCE_PATH_STYLE": "true",
"WALG_S3_CA_CERT_FILE": "",
"PGPASSWORD": "",
"PGHOST": "",
"PGPORT": 5432
}
And run as wal-g --config /x/y/z.json backup-list
.
It would be very useful to be able to specify the same config to the exporters. Currently i am getting an error when the exporter runs wal-g backup-list..
.
Might be even worth using the wal-g config as input for the exporter..?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.