简体   繁体   中英

Custom metric not showing up on New Relic

I am using the Go's port of newrelic SDK to create custom metric in NR. I was able to create a new metric for measuring throughput for my app and I am trying to create a metric for average response time.

I have added the necessary code to report the (average response time) data but I do not see it showing up in my new relic when I am trying to create a new graph (The metric does not recognize the custom metric name). However, if I change the GUID (which forces NR to create a new plugin entry), I am able to see the custom metric name in auto complete. I switched back to the old GUID and still I do not see the new custom metric name.

I can always delete the old New Relic Plugin and create a new one with a new GUID but is this really necessary???

If you're using GoRelic try clearing the metric data from the New Relic dashboard:

  • Go to the drop down menu in the top right corner (near your username).
  • Click on "Account Settings".
  • Go to the "Connected agents" tab.
  • Click the red "Clear metric data" button on the right.

That should wipe any stored measurements from your app and may cause it to refresh the metric labels again.

Are you attempting to put your Plugin metrics on a Custom Dashboard? https://docs.newrelic.com/docs/dashboards-menu/custom-dashboards

Or, are you attempting to use the new Agent SDK to monitor your Go app? https://docs.newrelic.com/docs/features/agent-sdk https://github.com/yvasiyarov/newrelic_go_api

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM