Skip to content

Conversation

@ridwanmsharif
Copy link
Contributor

@ridwanmsharif ridwanmsharif commented Aug 4, 2022

This change adds the name label to the metrics. When used with multiple
of the same exporter, the metrics from each of them become
indistinguishable from the others. This leads to problems when ingesting
metrics. For example the prometheus receiver in Open Telemetry will
assume they are one and the same metric and will replace existing data
points with later ones.

Backporting

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

ridwanmsharif added a commit to ridwanmsharif/fluent-bit that referenced this pull request Aug 4, 2022
This change adds the `name` label to the metrics. When used with multiple
of the same exporter, the metrics from each of them become
indistinguishable from the others. This leads to problems when ingesting
metrics. For example the `prometheus` receiver in Open Telemetry will
assume they are one and the same metric and will replace existing data
points with later ones.

Backport PR of fluent#5836

Signed-off-by: Ridwan Sharif <ridwanmsharif@google.com>
ridwanmsharif added a commit to GoogleCloudPlatform/ops-agent that referenced this pull request Aug 9, 2022
This change preserves the `response_code` label on self metrics where
appropriate. See the [spec](https://cloud.google.com/monitoring/api/metrics_opsagent#agent-agent) for more details.

Note: This requires a change in Fluent Bit befoe merging. See
fluent/fluent-bit#5836 for more details.

Signed-off-by: Ridwan Sharif <ridwanmsharif@google.com>
ridwanmsharif added a commit to GoogleCloudPlatform/ops-agent that referenced this pull request Aug 9, 2022
This change preserves the `response_code` label on self metrics where
appropriate. See the [spec](https://cloud.google.com/monitoring/api/metrics_opsagent#agent-agent) for more details.

Note: This requires a change in Fluent Bit befoe merging. See
fluent/fluent-bit#5836 for more details.

Signed-off-by: Ridwan Sharif <ridwanmsharif@google.com>
@edsiper
Copy link
Member

edsiper commented Aug 15, 2022

please sign-off your commits to pass the DCO error

@qingling128 @igorpeshansky pls let us know if this is ok to go

ridwanmsharif added a commit to ridwanmsharif/fluent-bit that referenced this pull request Aug 15, 2022
This change adds the `name` label to the metrics. When used with multiple
of the same exporter, the metrics from each of them become
indistinguishable from the others. This leads to problems when ingesting
metrics. For example the `prometheus` receiver in Open Telemetry will
assume they are one and the same metric and will replace existing data
points with later ones.

Backport PR of fluent#5836

Signed-off-by: Ridwan Sharif <ridwanmsharif@google.com>
This change adds the `name` label to the metrics. When used with multiple
of the same exporter, the metrics from each of them become
indistinguishable from the others. This leads to problems when ingesting
metrics. FOr example the `prometheus` reciever in Open Telemetry will
assume they are one and the same metric nad will replace existing data
points with later ones.

Signed-off-by: Ridwan Sharif <ridwanmsharif@google.com>
@ridwanmsharif ridwanmsharif force-pushed the ridwanmsharif/add_name_label branch from 12eb5a8 to 47273a3 Compare August 15, 2022 17:16
Copy link
Collaborator

@qingling128 qingling128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@edsiper edsiper merged commit 2d8ff0b into fluent:master Aug 17, 2022
ridwanmsharif added a commit to ridwanmsharif/fluent-bit that referenced this pull request Aug 17, 2022
This change adds the `name` label to the metrics. When used with multiple
of the same exporter, the metrics from each of them become
indistinguishable from the others. This leads to problems when ingesting
metrics. For example the `prometheus` receiver in Open Telemetry will
assume they are one and the same metric and will replace existing data
points with later ones.

Backport PR of fluent#5836

Signed-off-by: Ridwan Sharif <ridwanmsharif@google.com>
@lecaros lecaros added this to the Fluent Bit v2.0 milestone Aug 17, 2022
edsiper pushed a commit that referenced this pull request Aug 18, 2022
This change adds the `name` label to the metrics. When used with multiple
of the same exporter, the metrics from each of them become
indistinguishable from the others. This leads to problems when ingesting
metrics. For example the `prometheus` receiver in Open Telemetry will
assume they are one and the same metric and will replace existing data
points with later ones.

Backport PR of #5836

Signed-off-by: Ridwan Sharif <ridwanmsharif@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants