问题标签 [graphite-carbon]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
sockets - Elixir 中的 gen_udp 无法连接到 UDP 套接字
我正在尝试使用Graphitex(Elixir 的 Graphite Carbon API 客户端)gen_udp
代替gen_tcp
.
客户端是包装 UDP 套接字的 GenServer,具有与问题无关的公共 API。
有问题的位似乎是connect/1
,terminate/2
和handle_cast/2
GenServer 回调。
我做了什么:
- 用(获取操作系统选择的端口)替换
:gen_tcp.connect(host, port, opts)
(远程 Graphite Carbon UDP 端点的位置host
和位置)port
:gen_udp.open(0, opts)
- 替换
:gen_tcp.send(socket, msg)
为通过操作系统选择的 UDP 套接字:gen_udp.send(socket, host, port, msg)
发送msg
到远程host:port
使用我的 fork 运行应用程序时遇到的错误graphitex
:
似乎套接字(我清楚地放入状态connect/1
)是nil
. 我很困惑为什么会这样;:gen_udp.open(0)
在 IEx 中工作正常并返回{:ok, socket}
.
python - Graphite pickle protocol: what is the maximum message size?
Graphite-0.9.15
Python client written in python-3.7 connecting directly to Carbon.
I am following the docs here:
https://graphite.readthedocs.io/en/latest/feeding-carbon.html
Once you’ve formed a list of sufficient size (don’t go too big!), and pickled it (if your client is running a more recent version of python than your server, you may need to specify the protocol) send the data over a socket to Carbon’s pickle receiver (by default, port 2004).
How big is "too big"?
When using the pickle protocol, what is the maximum payload and/or message size in terms of:
- number of tuples
- actual byte size uncompressed
- actual byte size compressed with protocol=2
What are the limits here on the server side?
graphite - 从 Graphite DB 了解保留政策
我在storage-schemas.conf
文件中提到了以下保留政策
以下是我对以 metrics.api* 开头的匹配模式运行此策略的理解
第一次:10s:5m -> 在 10s 插入 1 次或多次记录,然后它将获取最新记录并维护 1 个数据点,直到 5 分钟,它会保持历史假设,假设在 5m 中为度量键添加了 5 个数据点。
2nd:1m:1d -> 在 5 分钟后对相同的指标键进行第二次运行,在 1m 处插入 1 次或多次记录,然后它将获取最新记录并维护 1 个数据点,直到 1d 保持历史假设在 1d为 metrics 键添加了 15 个数据点。
所以我的问题是这 2 次保留会发生什么情况,平均第 1 次 5+15/2=10 会发生什么?并从第一次和第二次租借中获得一个平均数据点
--- 它可以存储 10 年的数据
你能解释一下上述保留政策吗
graphite - 首次保留策略后的石墨数据丢失
我在 storage-schemas.conf 中使用以下保留策略将数据插入 Graphite db
我已经为指标键插入了数据,并且数据在 2 分钟后丢失,我无法使用下面的渲染 api 获取数据,它在 2 分钟后丢失,低于过去 3 分钟或 1 小时或当前日期
cassandra - 连接到 cassandra 集群时出错
我正在使用 docker-compose 文件部署一个以 cassandra 集群作为后端的 metrictank:
但是metrictank docker在运行几秒钟后停止并且它的日志显示:
所以metrictank能够连接到cassandra docker但它无法连接到gocql。任何人都可以帮助我解决这个问题。
graphite - Graphite 未显示最近的数据
我在 Docker 容器上运行了 Graphite,并且我已经将 24 小时的数据以 20 分钟的间隔提供给 9 个指标——远不是一个大的有效负载。如果我在 Graphite 网络应用程序中绘制每个指标,最后六个小时的数据是不可见的。如果我从渲染 API 中提取原始数据,这些数据点确实为空(没有值的时间戳)。
但是,如果我将时间范围缩小到最后六个小时,图表会显示我期望的所有数据。更奇怪的是,如果我尝试使用 Grafana 查看这些数据,也会发生同样的事情:除非我缩小时间范围,否则不会显示最后六个小时。
有没有办法解决这个问题,以便在查看超过 6 小时的数据时可以看到最近的数据点?
graphite - 无法将指标发送到石墨导出器
我正在尝试使用 nc 命令将自定义指标发送到石墨导出器,但未成功。以下是步骤:
我使用 url 在我的 redhat 机器上获取石墨导出器: https ://github.com/prometheus/graphite_exporter/releases/download/v0.7.1/graphite_exporter-0.7.1.linux-amd64.tar.gz
解压缩 tar 并使用命令在后台执行:
现在石墨导出器监听端口:
网络统计-ntpl
tcp6 0 0 :::9108 :::* LISTEN 92554/./graphite_ex
tcp6 0 0 :::9109 :::* LISTEN 92554/./graphite_ex
我正在关注这篇文章(http://graphiteapp.org/quick-start-guides/feeding-metrics.html)来执行以下命令并提到输出:
我可以在端口 9108 上远程登录:
我不确定将指标推送到石墨出口商我做错了什么,非常感谢任何帮助。
graphite - 石墨存储模式保留
我有一个问题:我想将耳语数据保留 1 年(7 天 5 秒、30 天 1 分钟、1y 5 分钟)
这个对吗:
我的数据会保留多久?1年 ?还是 (7d+30d+1y) ?
其次,我想将数据保留 2 年(7 天 5 秒,30 天 1 分钟,1y 5 分钟,2y 1h
这个对吗?
谢谢!
graphite - 单击仪表板链接时,石墨下降以在 WEB UI 中合并
我安装了新的 Graphite 实例install-grafana-graphite-and-statsd-on-ubuntu-18-04
当我在仪表板链接上单击 Graphite Web 界面时,它会给我消息 Drop to Merge 我无法理解它想要什么以及如何修复它 我需要检查什么?