Skip to content

夜莺采用thanos如何配置数据源 #1262

Answered by UlricQin
594872799 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanos是可以的,常见时序数据库配置示例(兼容 Prometheus 查询 API):

Prometheus: http://ip:9090/
Thanos: http://ip:19192/
VictoriaMetrics: http://{vmselect}:8481/select/0/prometheus/
M3: http://ip:7201/
SLS: https://{project}.{sls-enpoint}/prometheus/{project}/{metricstore}/

Prometheus有个查询接口是 /api/v1/label/__name__/values 这些时序库都是兼容Prometheus查询接口的,所以也应该支持这个接口,所以,使用下面这些地址用curl命令做一下验证,如果没问题就可以配置到夜莺里了:

# Prometheus
curl -s http://ip:9090/api/v1/label/__name__/values

# Thanos
curl -s http://ip:19192/api/v1/label/__name__/values

# VictoriaMetrics
curl -s http://{vmselect}:8481/select/0/prometheus/api/v1/label/__name__/values

# M3DB
curl -s http://ip:7201/api/v1/label/__name__/values

# SLS
curl -s https://{projec…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@594872799
Comment options

Answer selected by 594872799
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants