-
Notifications
You must be signed in to change notification settings - Fork 135
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
Fix plugin metrics #3552
Fix plugin metrics #3552
Conversation
✅ Hey ArthurHlt! The commit authors and yourself have already signed the CLA. |
Codecov Report
@@ Coverage Diff @@
## v2-master #3552 +/- ##
============================================
- Coverage 51.83% 51.8% -0.03%
============================================
Files 720 720
Lines 20221 20221
Branches 3612 3612
============================================
- Hits 10481 10475 -6
- Misses 9740 9746 +6 |
@ ArthurHlt. Thanks for submitting this PR. I've done a quick investigation and it looks like we do store the TokenMetadata as an array
I also tried a version of the PR, with go 1.12, and got the following
My golang is terrible, so I'd like to understand the issue you're facing and the code a bit better. What's the error that you see when running |
@ArthurHlt Are you using bosh-prometheus and not stratos-metrics? If the former we might have fixed the root course for the issue you're seeing - #3602. |
Sorry i couldn't check for now, I am actually using bosh-prometheus yes. Looks like #3602 fix this issue yes, this is a different approach :) probably because k8s part is giving a list Thanks for the fixing and really really thanks for the job on stratos and scf. I'm closing this PR |
Description
Plugin
metrics
store a CNSI Token with some metadata as we can see here those metadata are store as a k/v pairs.But when those metadata need to be retrieve they are unmarshaled as a list of k/v pairs (see here ) which make this plugin unusable.
How Has This Been Tested?
This plugin doesn't include test, mainly just try to make works metrics as describe in the doc.
I was building myself jestream part, maybe it's change from golang 1.11 which break unmarshaling a "not a list" interface.
Types of changes
Checklist: