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

feat(sumologicexporter): allows ., /, : and _ for prometheus key #211

Merged

Conversation

sumo-drosiek
Copy link
Contributor

Allow . and / for prometheus key

Signed-off-by: Dominik Rosiek drosiek@sumologic.com

@sumo-drosiek sumo-drosiek requested a review from a team as a code owner September 13, 2021 08:52
@github-actions github-actions bot added the go label Sep 13, 2021
@sumo-drosiek sumo-drosiek force-pushed the drosiek-extend-allowed-chars-for-prometheus-format branch from aeecd6b to 4af33f2 Compare September 13, 2021 09:00
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
@sumo-drosiek sumo-drosiek force-pushed the drosiek-extend-allowed-chars-for-prometheus-format branch from 4af33f2 to b794892 Compare September 13, 2021 09:01
@sumo-drosiek sumo-drosiek changed the title feat(sumologicexporter): allows . and / for prometheus key feat(sumologicexporter): allows ., /, : and _ for prometheus key Sep 13, 2021
@sumo-drosiek
Copy link
Contributor Author

@kkujawa-sumo it should solve issue with label names:

Fluentd: pod_labels_statefulset.kubernetes.io/pod-name="collection-sumologic-fluentd-events-0"
OTC: pod_labels_statefulset_kubernetes_io_pod_name="collection-sumologic-fluentd-events-0"

@sumo-drosiek sumo-drosiek merged commit 62da616 into main Sep 13, 2021
@sumo-drosiek sumo-drosiek deleted the drosiek-extend-allowed-chars-for-prometheus-format branch September 13, 2021 09:50
mx-psi pushed a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request Apr 23, 2024
…32595)

**Description:**

Use new formatter for prometheus, which fixes metric name sanitization.
This also refactors the formatter itself, which is part of #31479 and
reduces size of #32315

**Link to tracking Issue:**

Applies SumoLogic/sumologic-otel-collector#211
and more, but this one is a bug fix

**Testing:**

Unit tests

**Documentation:**

N/A

---------

Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants