Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

sanitize label values for invalid utf-8 #42

Merged
merged 1 commit into from
May 20, 2020

Conversation

tivvit
Copy link
Contributor

@tivvit tivvit commented May 20, 2020

Hi,

we encountered a problem with the exporter and utf-8 labels. When label value is not a valid utf-8 the prometheus client rejects it and exporter panics. We had invalid utf-8 value in the set name. This is certainly not a common issue but I think it is better to handle it if Aerospike server accepts it.

I will add this change also to this project https://github.com/aerospike/aerospike-prometheus-exporter/blob/master/watcher_sets.go after it will be merged here.

@alicebob
Copy link
Owner

Looks good, thanks for the fix!

@alicebob alicebob merged commit d187280 into alicebob:master May 20, 2020
@tivvit tivvit deleted the fix-uft8-label branch May 20, 2020 22:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants