At the moment I am trying to apply the following how-to to my Quarkus app: MongoDB Metrics
So I have added the quarkus-smallrye-metrics and quarkus-mongodb-client dependencies in the pom.xml and added quarkus.mongodb.metrics.enabled=true to the application.properties.
When I run the service, and go to /q/metrics, unfortunately specific MongoDB metrics will not appear. Generic vendor items but not related to MongoDB.
Even if I put the quarkus.mongodb.metrics.enabled to =false, it did not changed because vendor still appears.
How can I configure the Metrics of de Quarkus App for MongoDB so I can read the MongoDB metrics of the app?
Related
I activated mongodb plugins for cloud grafana, and I cant understood how i cant use query, all examples make failure db.serverStatus().connections
What query I can use for to collection any metrics
I am planning to implement a mongoDB storage backend for JanusGraph. The reason for picking MongoDB is mainly because all of our existing infrastructure and services use MongoDB, so it would be less net new maintenance requirement. Where do I get started? Is there a list of APIs that JanusGraph provides that need to be implemented by a custom backend? I couldn't find any documentation.
As of now Janusgraph supports only limited number of storage-backends as of now (Cassandra, HBase, BigTable, Berkeley). You can find more info here https://docs.janusgraph.org/storage-backend/.
I am setting up a mongoDB cluster on mongoDB atlas.
To connect to the cluster you get an URL like cluster-01.mongodb.net. For convenience reasons I tried to set up a CNAME record on AWS Route53 pointing from cluster-01.my-company.co to the mongoDB cloud URL above.
When connecting to the cluster:
mongo "mongodb+srv://mongo-01.my-company.co/test" --username user
But I am getting the following error:
DNSHostNotFound: Failed to look up service "_mongodb._tcp.mongo-01.my-company.co": Undefined error: 0
Has anyone experiences in setting up a CNAME record for a mongoDB cloud cluster?
This is not possible. See https://jira.mongodb.org/browse/CDRIVER-2556 and in particular this commit https://github.com/mongodb/specifications/commit/3c1ff124ce47fa7b5d97b336028e575efd0e3d1e , which specifically disallows using CNAME with mongo+srv.
Currently, mongo atlas doesn't have such feature. If your requirement is to update your cluster name and if it is okay to have a little downtime, Use mongo atlas live migration service to migrate it to a different cluster(with the new name) using the following link, cutover to stop migration once migration is done and use new cluster.
https://docs.atlas.mongodb.com/import/live-import/
In case, if you want to have this feature in upcoming releases of mongo atlas, There is a request for this feature in the mongo feedback portal.
https://feedback.mongodb.com/forums/924145-atlas/suggestions/40474783-allow-custom-dns-hostnames-to-be-added-to-cluster
Also, this live migration service supports upgrading the mongo cluster version in atlas with minimal downtime.
Is there any way of getting merged logs from more than one deployments on Kybernetes? What's the best way of logging events for all deployments?
Look for Elasticsearch , Logstash and Kibana (ELK) stack with Filebeats or FluentD to ship log data from individual deployments/pods onto your Elasticsearch DB. Once data is in your DB , use Kibana to visualize and search your merged logs. Logstash can be used to modify your data inflight. A simple google search should yield you lot of resources on doing the same.
I created a spring boot application (simple with database connection) and I would like to put it on a openshift. It's not a problem for me to generate docker image and put it into openshift, but I also want a mongodb database instance on openshift. I already created it on a openshift but know I have no idea how to connect to it from the spring boot application. I recently heard that I need to type a pod name as a connection string. Is that correct? How exactly should I connect to mongodb pod from the spring boot pod. Should I create some route between those two? I am new with playing around docker and openshift, so please try to give me as much info as you can.
Are you using your own OS3 vm?
I'm no expert on the matter, but on OS3 web console, once you create a database from templates already provided by OpenShift, OS3 shows a connection string at the end of the process.
I'm pretty sure OS3 creates a service for your db, the link looks like this:
mysql://servicename:3306/database