-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getting error - unmarshal object while running the couchdb exporter #295
Comments
Can you provide some more details about the CouchDB version you are using and whether it runs as single node or in a cluster? |
Hi , we are using "couchdb":"Welcome","version":"3.3.2" and it runs as single node |
@kunalpalan can you please check the couchdb info like shown below? curl http://localhost:5984/ For me, the reponse looks like this: {"couchdb":"Welcome","version":"3.3.2","git_sha":"11a234070","uuid":"8d375d33af396fd8d731de6df57a8e88","features":["access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The Apache Software Foundation"}} Does your CouchDB instance run in a container? I tried to reproduce the issue with the following setup: docker swarm init
docker network create couchdb
docker run --rm -d --network couchdb --name couchdb -p 5984:5984 --env COUCHDB_USER=admin --env COUCHDB_PASSWORD=password couchdb:3.3.2
curl -X PUT --user admin:password http://localhost:5984/_users
docker run --rm -d --network couchdb --name couchdb-exporter -p 9984:9984 gesellix/couchdb-prometheus-exporter:v30.9.5 --couchdb.uri http://couchdb:5984 --couchdb.username admin --couchdb.password password
curl -s http://localhost:9984/metrics | grep couchdb_server_node_info
docker logs couchdb
docker logs couchdb-exporter Cleanup of the setup above: docker stop couchdb-exporter
docker stop couchdb
docker network rm couchdb |
Hi {"couchdb":"Welcome","version":"3.3.2","git_sha":"11a234070","uuid":"8ffb60e6bf8bbe82394c4f65adb7ceb8","features":["search","access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The Apache Software Foundation"}} |
Can you share the couchdb-prometheus-exporter config, without the actual credentials? |
Hi, couchdb.username=admin |
Please change the |
E0523 15:35:39.231336 3321696 exporter.go:118] Get "http://192.168.10.10.6984/_all_dbs": dial tcp: lookup 192.168.10.10.6984: no such host
[root@dchxdqcouch1 couchdb-exporter]# couchdb-prometheus-exporter --config=/etc/couchdb-exporter/config.ini |
The error |
There is less load in the server. |
I'm not sure if this is related to apache/couchdb#4076. Looking at the supported features of your CouchDB instance, I stumbled over the |
config.ini file for reference I'm getting below error, when i mention all databases. If I mention any one db, It's working fine. E0902 17:33:08.482643 584577 collector.go:446] Error collecting stats: error collecting couchdb stats: error reading database 'all_dbs' stats: status 404 Object Not Found (404): {"error":"not_found","reason":"Database does not exist."} And is there any way to view Search plugin status(up/down) and Search index running status |
Any update on this |
Hi Gesellix,
I'm running the exporter using the below command
couchdb-prometheus-exporter --config=/etc/couchdb-exporter/config.ini
E0507 13:52:47.770990 1215732 exporter.go:118] error collecting couchdb stats: json: cannot unmarshal object into Go struct field NodeInfo.couchdb of type string
screencapture-192-168-57-250-9984-metrics-2024-05-07-14_32_53.pdf
The text was updated successfully, but these errors were encountered: