Skip to content

Commit

Permalink
Improve description of build info for nodeinfo collector
Browse files Browse the repository at this point in the history
  • Loading branch information
kuskoman committed Jun 17, 2023
1 parent 1f4b8c4 commit c654177
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ Table of exported metrics:
| Name | Type | Description |
| ----------- | ----------- | ----------- |
| logstash_exporter_build_info | gauge | A metric with a constant '1' value labeled by version, revision, branch, goversion from which logstash_exporter was built, and the goos and goarch for the build. |
| logstash_info_build | counter | A metric with a constant '1' value labeled by build date, sha, and snapshot. |
| logstash_info_node | counter | A metric with a constant '1' value labeled by node name, version, host, http_address, and id. |
| logstash_info_build | counter | A metric with a constant '1' value labeled by build date, sha, and snapshot of the logstash instance. |
| logstash_info_node | counter | A metric with a constant '1' value labeled by node name, version, host, http_address, and id of the logstash instance. |
| logstash_info_pipeline_batch_delay | counter | Amount of time to wait for events to fill the batch before sending to the filter and output stages. |
| logstash_info_pipeline_batch_size | counter | Number of events to retrieve from the input queue before sending to the filter and output stages. |
| logstash_info_pipeline_workers | counter | Number of worker threads that will process pipeline events. |
Expand Down
4 changes: 2 additions & 2 deletions collectors/nodeinfo/nodeinfo_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ func NewNodeinfoCollector(client logstashclient.Client) *NodeinfoCollector {
client: client,
NodeInfos: prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "node"),
"A metric with a constant '1' value labeled by node name, version, host, http_address, and id.",
"A metric with a constant '1' value labeled by node name, version, host, http_address, and id of the logstash instance.",
[]string{"name", "version", "http_address", "host", "id"},
nil,
),
BuildInfos: prometheus.NewDesc(
prometheus.BuildFQName(namespace, subsystem, "build"),
"A metric with a constant '1' value labeled by build date, sha, and snapshot.",
"A metric with a constant '1' value labeled by build date, sha, and snapshot of the logstash instance.",
[]string{"date", "sha", "snapshot"},
nil,
),
Expand Down

0 comments on commit c654177

Please sign in to comment.