[英]Is it possible to see all metrics (all paths) in whisper (graphite)?
我在 Graphite 中有很多指標,我必須搜索它們。
我嘗試使用whisper-fetch.py,但它返回指標值(數字),我想要指標名稱,如下所示:
prefix1.prefix2.metricName1 prefix1.prefix2.metricName2 ...
謝謝你。
您可以只使用 unix find
命令,例如find /data/graphite -name 'some_pattern'
或使用 web api,例如curl http://my-graphite/metrics/find?query=somequery
,請參閱石墨指標 api
Graphite 有一個專用端點,用於檢索所有指標作為其HTTP API 的一部分: /metrics/index.json
例如,針對我的本地 Graphite 運行此命令
curl localhost:8080/metrics/index.json | jq "."
產生以下輸出:
[
"carbon.agents.graphite-0-a.activeConnections",
"carbon.agents.graphite-0-a.avgUpdateTime",
"carbon.agents.graphite-0-a.blacklistMatches",
"carbon.agents.graphite-0-a.cache.bulk_queries",
"carbon.agents.graphite-0-a.cache.overflow",
...
"stats_counts.response.200",
"stats_counts.response.400",
"stats_counts.response.404",
"stats_counts.statsd.bad_lines_seen",
"stats_counts.statsd.metrics_received",
"stats_counts.statsd.packets_received",
"statsd.numStats"
]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.