Using mongodb exporter + Prometheus + grafana to implement mongodb cluster monitoring

1 create Mongodb cluster Directly use the following yaml file to create a mongodb cluster. In this environment, only two nodes of mongodb are started. Use hostPath for data storage and create storage directory [root@master ~]# mkdir -p /home/storage/mongo/db/ [root@master mongo]# cat mongo.yaml apiVersion: v1 kind: Service metadata: name: mo ...

Posted on Fri, 08 May 2020 07:40:46 -0700 by Neoraven456

php realizes simple chat function

1. To create a chat message table, its fields include message content, sending time and sender's name; SQL: CREATE TABLE `guanhui`.`message` ( `id` INT(10) NOT NULL AUTO_INCREMENT COMMENT 'news ID' , `content` VARCHAR(255) NOT NULL COMMENT 'Message content' , `sender` VARCHAR(60) NOT NULL COMMENT 'sender ' , `send_time` IN ...

Posted on Thu, 07 May 2020 08:33:20 -0700 by thatsme

Nearly 8000 words of Spring common annotation summary, 80% of people do not know

0. Preface Hello, I'm brother Guide! This is my 221 excellent original articles. If you need to reprint, please indicate the address at the beginning of the article, crab! This article has been included in my open source Java project JavaGuide of 75K Star: github.com/Snailclimb/... Related reading: Version 2.0 of "JavaGuide interview shoc ...

Posted on Thu, 07 May 2020 00:57:27 -0700 by Lorik

spring Source Read Notes 10: bean Life Cycle

The previous articles focused on analyzing SpringThe principle of the IOC Container section, the core logic of which is related to the creation and management of beans. For the management of single beans, from creation to caching to destruction, there is a complete life cycle, and Spring also provides multiple interfaces for users to extend the ...

Posted on Wed, 06 May 2020 18:04:27 -0700 by justgrafx

Common SQL statements of oracle

1. Merge a field (multiple documents) of a table into a string output (comma separated)   + ",(select LISTAGG(mo.model_code,',') within group(order by mo.model_code) from srm_pos_resource_model mo where mo.supplier_id=t.supplier_id) modelCodeList\n" 2. Query the latest document according to a field in the table   -according to su ...

Posted on Wed, 06 May 2020 07:37:41 -0700 by sspatel82

One stop solution to various pain points of enumeration

If the variable value has only a limited number of optional values, it is a normal operation to define constants with enumeration classes. However, in the business code, we do not want to rely on the coordination () for business operations, but to customize the number attributes to avoid the impact of increasing or decreasing the enumeration va ...

Posted on Tue, 05 May 2020 22:59:49 -0700 by mrhappiness

Getting started with JE in Berkeley DB

Getting started with JE in Berkeley DB Getting started with JE in Berkeley DB brief introduction Get JE installation environment Code brief introduction Berkeley DB Java Edition (JE) is written entirely in JAVA, which is suitable for managing massive file databases. Je has the following advantages: ...

Posted on Tue, 05 May 2020 10:31:16 -0700 by depsipher

ubuntu uses mysql and connects it to C + + programs

Install mysql sudo apt-get install mysql-server sudo apt-get install mysql-client sudo apt-get install libmysqlclient-dev During the installation process, you will be prompted to set a password, so that you can complete the mysql installation. You can log in through the following command: mysql -u root -p where - u represents the user n ...

Posted on Tue, 05 May 2020 10:27:51 -0700 by mrneilrobinson

Android uses TBS browser to load pdf and other files

Project structure Technical proposal Other advantages of TBS, you can search other information on the Internet, many. The core class of the load file is TbsReaderView. Tencent documents are not written, so you need to find online data. TBS currently only supports loading local files. Therefore, the remote file needs to be downloaded fir ...

Posted on Tue, 05 May 2020 03:56:42 -0700 by cpetercarter

tyboot simple function demonstration without sql encoding

tyboot simple function demonstration without sql encoding tybootdemo source https://gitee.com/magintursh/tybootdemo tyboot source: https://gitee.com/magintursh/tyboot https://github.com/magintursh/tyboot Example project interface screenshot The following are the interface features for this demonstration to demonstrate simple tyboot-based encod ...

Posted on Tue, 05 May 2020 03:38:28 -0700 by ukphoto