Skip to content
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

添加prometheus数据源后再编辑告警策略无法读取指标 #144

Open
hanguanglinyun opened this issue Jul 5, 2024 · 7 comments

Comments

@hanguanglinyun
Copy link

What happened?

image
在grafana 上看一看到这个指标的存在的
image

What did you expect to happen?

是我的配置有什么问题嘛,我需要做什么才能让它正常工作?

How can we reproduce it (as minimally and precisely as possible)?

docker run -d --name moon-server -p 8001:8000 -p 8888:8888 -p 8000:80 -v ./moon/server/db:/app/db -v ./moon/server/cache:/app/cache -v ./moon/server/log:/app/log aidemoonio/moon-server:latest

docker run -d --name moon-agent -p 8002:8000 -v ./moon/agent/cache:/app/cache -v ./moon/agent/log:/app/log aidemoonio/moon-agent:latest

是通过docker 部署方式启动的

prometheus 是可以在部署moon主机中正常通信的

Anything else we need to know?

No response

moon version

latest和v0.0.26

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
@aide-cloud
Copy link
Collaborator

这个172是相对的IP地址, 你在web端访问的也是172, 所以访问不了, 你看看有没有web端能访问的地址

@hanguanglinyun
Copy link
Author

image
是这个web的地址?

@aide-cloud
Copy link
Collaborator

对,不包含路由部分对http地址

@aide-cloud
Copy link
Collaborator

目前没有实现类似内网这种的代理, 所以在moon web端查看数据, 需要一个全局环境都能访问的数据源地址,你这个问题提醒我了, 后面实现一下代理功能, 这样就能内网使用了, 给你点赞👍

@hanguanglinyun
Copy link
Author

image
好的,我试一下,我以为是像grafana数据源的方式添加

@hanguanglinyun
Copy link
Author

可以了,可以正常运行了,是单独部署moon-server就可以使用了嘛? moon-agent的功能是什么?

@aide-cloud
Copy link
Collaborator

server只是管理, 告警数据有agent来生成的, 所以如果你需要实际的告警, 需要agent去处理策略和生产事件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants