現在、Heapster/InfluxDB/Grafanaで構成されたKubernetesクラスタがあります。ヒープスター形式のcAdvisorカスタムメトリック
私は、カスタムメトリックを収集するためにアプリケーションエンドポイントを見るように設定した埋め込みcAdvisorインスタンスがKubeletに追加されていることは知っています。
私は、このガイドに従っ:http://guoshimin.github.io/2016/06/03/custom-metrics.html:
{
"endpoint" : "http://localhost:31234/sessions",
"metrics_config" : [
{
"name" : "activeSessions",
"metric_type" : "gauge",
"units" : "number of active sessions",
"data_type" : "int",
"polling_frequency" : 10,
"regex" : "Active sessions: ([0-9]+)"
}
]
}
現在Kubeletがエラーを投げている -
failed to create collector for container "/docker/664af6c4c1998514770371267ba6c117c532a448f6301f14fc53ca9798abff5b", config "prometheus": json: cannot unmarshal object into Go value of type string
私はプロメテウスの設定を使用していますことを考えているようです。メトリックを収集して、私がセットアップでプロメテウスを持っていないので、Heapsterに渡すために使用するフォーマットがありますか?