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

sanitize label values for invalid utf-8#42

Merged
alicebob merged 1 commit intoalicebob:masterfrom
tivvit:fix-uft8-label
May 20, 2020
Merged

sanitize label values for invalid utf-8#42
alicebob merged 1 commit intoalicebob:masterfrom
tivvit:fix-uft8-label

Conversation

@tivvit
Copy link
Copy Markdown
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
Copy Markdown
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