You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area/metricsIssues or PRs related to metrics and monitoring
2 participants
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
配置如下
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
shutdown:
enabled: true
metrics:
enabled: true
prometheus:
enabled: true
metrics:
tags:
application: it-${spring.application.name}
export:
prometheus:
enabled: true
pushgateway:
base-url: 192.168.1.121:9091
push-rate: 5s
job: it-${spring.application.name}
enabled: true
将这个类https://app.codecov.io/gh/alibaba/Sentinel/pull/735/blob/sentinel-extension/sentinel-metric-prometheus/src/main/java/com/alibaba/csp/sentinel/metric/extension/prometheus/PrometheusMetricExtension.java
复制到我的项目,并通过SPI方式引入,可以成功将指标数据推送到pushgateway,但是没有sentinel的相应指标(pushgateway的指标地址http://192.168.1.121:9091/metrics),而且看了项目暴露的prometheus指标(http://localhost:8081/actuator/prometheus),有sentinel响应的注释,但是没有数据(接口有访问,debug也有执行到onPass),如下
#HELP sentinel_pass_requests_total total pass requests.
#TYPE sentinel_pass_requests_total counter
#HELP sentinel_success_requests_total total success requests.
#TYPE sentinel_success_requests_total counter
#HELP sentinel_block_requests_total total block requests.
#TYPE sentinel_block_requests_total counter
只有注释行没有数据,
All reactions