Skip to content

Commit

Permalink
Update filebeat.go
Browse files Browse the repository at this point in the history
  • Loading branch information
duhang authored Sep 26, 2018
1 parent a283057 commit 1e008d2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions collector/filebeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Filebeat struct {
Started float64 `json:"started"`
} `json:"harvester"`

Prospector struct {
Input struct {
Log struct {
Files struct {
Renamed float64 `json:"renamed"`
Expand Down Expand Up @@ -116,20 +116,20 @@ func NewFilebeatCollector(beatInfo *BeatInfo, stats *Stats) prometheus.Collector
},
{
desc: prometheus.NewDesc(
prometheus.BuildFQName(beatInfo.Beat, "filebeat", "prospector_log"),
"filebeat.prospector_log",
prometheus.BuildFQName(beatInfo.Beat, "filebeat", "input_log"),
"filebeat.input_log",
nil, prometheus.Labels{"files": "renamed"},
),
eval: func(stats *Stats) float64 { return stats.Filebeat.Prospector.Log.Files.Renamed },
eval: func(stats *Stats) float64 { return stats.Filebeat.Input.Log.Files.Renamed },
valType: prometheus.UntypedValue,
},
{
desc: prometheus.NewDesc(
prometheus.BuildFQName(beatInfo.Beat, "filebeat", "prospector_log"),
"filebeat.prospector_log",
prometheus.BuildFQName(beatInfo.Beat, "filebeat", "input_log"),
"filebeat.input_log",
nil, prometheus.Labels{"files": "truncated"},
),
eval: func(stats *Stats) float64 { return stats.Filebeat.Prospector.Log.Files.Truncated },
eval: func(stats *Stats) float64 { return stats.Filebeat.Input.Log.Files.Truncated },
valType: prometheus.UntypedValue,
},
},
Expand Down

0 comments on commit 1e008d2

Please sign in to comment.