Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CockroachDB] Revert metrics field definition to the format used befo… #7429

Merged
merged 2 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/cockroachdb/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
- version: "1.5.1"
changes:
- description: Revert metrics field definition to the format used before introducing metric_type.
type: enhancement
link: https://github.com/elastic/integrations/pull/7429
- version: "1.5.0"
changes:
- description: Add `metric_type` mapping for the fields of `status` datastream.
Expand Down
12 changes: 9 additions & 3 deletions packages/cockroachdb/data_stream/status/fields/fields.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
- name: cockroachdb.status.*.value
type: double
type: object
object_type: double
object_type_mapping_type: "*"
metric_type: gauge
description: >
Prometheus gauge metric

- name: cockroachdb.status.*.counter
type: double
type: object
object_type: double
object_type_mapping_type: "*"
metric_type: counter
description: >
Prometheus counter metric

- name: cockroachdb.status.*.rate
type: double
type: object
object_type: double
object_type_mapping_type: "*"
metric_type: counter
description: >
Prometheus rated counter metric
Expand Down
6 changes: 3 additions & 3 deletions packages/cockroachdb/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ exposing metrics in Prometheus format.
| cloud.project.id | Name of the project in Google Cloud. | keyword | |
| cloud.provider | Name of the cloud provider. Example values are aws, azure, gcp, or digitalocean. | keyword | |
| cloud.region | Region in which this host is running. | keyword | |
| cockroachdb.status.\*.counter | Prometheus counter metric | double | counter |
| cockroachdb.status.\*.counter | Prometheus counter metric | object | counter |
| cockroachdb.status.\*.histogram | Prometheus histogram metric | object | |
| cockroachdb.status.\*.rate | Prometheus rated counter metric | double | counter |
| cockroachdb.status.\*.value | Prometheus gauge metric | double | gauge |
| cockroachdb.status.\*.rate | Prometheus rated counter metric | object | counter |
| cockroachdb.status.\*.value | Prometheus gauge metric | object | gauge |
| cockroachdb.status.labels.advertise_addr | The IP address/hostname and port to tell other nodes to use. | keyword | |
| cockroachdb.status.labels.go_version | The version of Go in which the source code is written. | keyword | |
| cockroachdb.status.labels.http_addr | The IP address/hostname and port to listen on for DB Console HTTP requests. | keyword | |
Expand Down
2 changes: 1 addition & 1 deletion packages/cockroachdb/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: cockroachdb
title: CockroachDB Metrics
version: "1.5.0"
version: "1.5.1"
release: ga
description: Collect metrics from CockroachDB servers with Elastic Agent.
type: integration
Expand Down