brunopsoares / prometheus_couchbase_exporter Goto Github PK
View Code? Open in Web Editor NEWThis Prometheus exporter runs configured queries against Couchbase and exports the results as Prometheus gauge metrics.
License: MIT License
This Prometheus exporter runs configured queries against Couchbase and exports the results as Prometheus gauge metrics.
License: MIT License
root@ubuntu:/usr/local/couchdb# prometheus-couchbase-exporter -c http://localhost:8091
Response Status (404): {"error":"not_found","reason":"Database does not exist."}
Response Status (404): {"error":"not_found","reason":"Database does not exist."}
Traceback (most recent call last):
File "/usr/local/bin/prometheus-couchbase-exporter", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/prometheus_couchbase_exporter/init.py", line 125, in main
REGISTRY.register(CouchbaseCollector(args.couchbase))
File "/usr/local/lib/python2.7/dist-packages/prometheus_client/core.py", line 50, in register
names = self._get_names(collector)
File "/usr/local/lib/python2.7/dist-packages/prometheus_client/core.py", line 86, in _get_names
for metric in desc_func():
File "/usr/local/lib/python2.7/dist-packages/prometheus_couchbase_exporter/init.py", line 89, in collect
self._collect_metrics(api_key, api_values, couchbase_data)
File "/usr/local/lib/python2.7/dist-packages/prometheus_couchbase_exporter/init.py", line 70, in _collect_metrics
for node in couchbase_data['nodes']:
KeyError: 'nodes'
If you try to run prometheus_couchbase_exporter inside the docker image python:3.6.4-alpine the reduce method used on the _dot_get method is not defined. You need to include the import
from functools import reduce
Where can I submit questions to you guys pertaining to this. The only issue I am having is I am not familiar with this exporter.
Thanks,
hi, i got this error
text format parsing error in line 28: invalid metric name in comment
abouth this line:
the exporter itterates all buckets but adds only metrics from the last one
tried to find a way to fix it but i couldn't
thanks
is this project still being maintained?
I'm asking because I kind of use it so if it's not being maintained anymore I'll fork it or do something else.. hehe
Thanks for the project, btw :)
hi,
in case anyone else stumbles upon same issue like me, the instructions suggest to use:
$ prometheus-couchbase-exporter -c <couchbase host:port> -p <port to listen>
correct way is to use:
$ prometheus-couchbase-exporter -c http://<couchbase host:port> -p <port to listen>
sample output from my env:
[root@optima-ansible ~]# prometheus-couchbase-exporter -c 192.168.16.205:8091
Failed to establish a new connection. Is 192.168.16.205:8091 correct?
[root@optima-ansible ~]# prometheus-couchbase-exporter -c http://192.168.16.205:8091
Response Status (401):
[root@optima-ansible ~]#
i believe readme.rst should be updated.
thanks!
The exporter should fall in line with other standard Prometheus exporters by listening on /metrics
.
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.