xuande / nacos-consul-adapter Goto Github PK
View Code? Open in Web Editor NEWnacos prometheus
License: MIT License
nacos prometheus
License: MIT License
单独建服务的话在要prometheus.yml里配这个服务的ip是一个瑕疵,而网关是必备的,一般配域名,集成在网关里的话基本上整个集群节点的监控体系就动态化了。
spring:
application:
name: nacos-consul-adapter
cloud:
nacos:
config:
namespace: xxxxxxxxxxxxxxxxxxxxxxx
group: MY_GROUP
discovery:
namespace: xxxxxxxxxxxxxxxxxxxxxxx
group: MY_GROUP
server-addr: 192.168.1.230:8848
按上面的配置运行,需要升级依赖版本 2.1.2.RELEASE
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>2.1.2.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
very good project!
http://192.168.75.134:8084/actuator/prometheus | DOWN | instance="192.168.75.134:8084"job="nacos-prometheus" | 14.295s ago | 10.0s | Get "http://192.168.75.134:8084/actuator/prometheus": context deadline exceeded
http://192.168.75.134:8085/actuator/prometheus | DOWN | instance="192.168.75.134:8085"job="nacos-prometheus" | 22.710s ago | 10.1s | Get "http://192.168.75.134:8085/actuator/prometheus": context deadline exceeded
这个是启动的本服务:
http://10.1.2.160:8888/actuator/prometheus | UP | instance="10.1.2.160:8888"job="nacos-prometheus" | 4.484s ago | 7.197ms
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.