ngcat

Results 36 comments of ngcat

using vs for mac, when adding package it warns this: ``` Running non-parallel restore. Reading project file /Users/psyduck/Projects/SAL/DBAInternalAPI/DBAInternalAPI.csproj. Persisting no-op dg to /Users/psyduck/Projects/SAL/DBAInternalAPI/obj/DBAInternalAPI.csproj.nuget.dgspec.json Restoring packages for /Users/psyduck/Projects/SAL/DBAInternalAPI/DBAInternalAPI.csproj... Restoring packages for...

And using nuget it show this ``` $ nuget install ini-parser Feeds used: https://api.nuget.org/v3/index.json Installing package 'ini-parser' to '/Users/psyduck/Projects/SAL/DBAInternalAPI'. CACHE https://api.nuget.org/v3/registration4-gz-semver2/ini-parser/index.json Attempting to gather dependency information for package 'ini-parser.3.4.0' with...

fixed with ```c# parser.Configuration.KeyValueAssigmentChar = ' '; ``` but the ```ini save 900 1 save 300 10 save 60 10000 ``` how to parse? the `parser.Configuration.AllowDuplicateKeys = true` only leaves...

and unable to use System.Text.Json to serialize ``` System.InvalidCastException: Unable to cast object of type 'System.Collections.Generic.KeyValuePair`2[System.String,IniParser.Model.KeyData]' to type 'IniParser.Model.KeyData'. at get_Comments(Object ) at System.Text.Json.JsonPropertyInfoCommon`4.GetValueAsObject(Object obj) at System.Text.Json.JsonSerializer.HandleEnumerable(JsonClassInfo elementClassInfo, JsonSerializerOptions options,...

serialize problem fixed with ```c# var dict = new Dictionary(); foreach (var i in data.Global) { dict.Add(i.KeyName, i.Value); } ``` hope there is a ToJson Method, or `__json__` magic method

below is an irate result graph vs original points ![image](https://user-images.githubusercontent.com/20264659/139822020-6db5801a-f697-4c00-b0e2-6b72d080480f.png) ![image](https://user-images.githubusercontent.com/20264659/139822230-3c3b6c6f-c803-48c0-bdce-4beb309ff6f5.png)

### Version ```sh m3dbnode --help 2021/11/02 17:27:23 Go Runtime version: go1.13.8 2021/11/02 17:27:23 Build Version: v0.15.9 2021/11/02 17:27:23 Build Revision: 1b7e6a758 2021/11/02 17:27:23 Build Branch: HEAD 2021/11/02 17:27:23 Build Date:...

### Expected result > this is another sidecar cluster scrape data with Prometheus and write directly to Prometheus, given right result ![image](https://user-images.githubusercontent.com/20264659/139827356-4f4b016a-1bb2-463e-aba4-6abae2cf9f5d.png)

[m3-prom-points.zip](https://github.com/m3db/m3/files/7561441/m3-prom-points.zip) here are raw points, have something wrong when irate(xxx[2m]) to them