-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[receiver/elasticsearch] Add metric definitions (#6892)
* Add metrics metadata Also move to experimental mdatagen Move go generate directive to separate codegen.go * Update some descriptions in metadata. * Update readme to be more clear about the purpose of this scraper. * small tweaks to wording in readme * Some PR feedback * Make every description a full sentence * Ensure punctuation at the end of each description * Fuse node.fs.disk.usage and node.fs.disk.free * Minor tweaks to wording * Rename thread_pool tasks metrics * Add newline to end of file * remove cluster health metric for now * rerun go generate * Use value override for attributes that are obvious in context * rename some attributes to make more sense. * update some metric names * depluralize units * make sure metrics units are plural * add enabled so that mdatagen works again * Add changelog entry * node.fs.io.operations: -> node.fs.operations: * remove year from copyright * fix clunky sentence in README * shard_type -> shard_state * Minor tweaks to metric descriptions * go generate * Fix JVM metrics * remove elasticsearch.node.fs.operations metric * Add in missing JVM metrics * add cluster health status metric * run go generate
- Loading branch information
1 parent
2089c54
commit 0bdb885
Showing
8 changed files
with
2,683 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
//go:build !windows | ||
// +build !windows | ||
|
||
//go:generate mdatagen --experimental-gen metadata.yaml | ||
|
||
package elasticsearchreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/elasticsearchreceiver" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 0 additions & 70 deletions
70
receiver/elasticsearchreceiver/internal/metadata/generated_metrics.go
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.