Skip to content
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

summary type metrics are not showing up. #53

Closed
fieldju opened this issue Jun 18, 2020 · 6 comments
Closed

summary type metrics are not showing up. #53

fieldju opened this issue Jun 18, 2020 · 6 comments
Labels
feature request Categorizes issue or PR as related to a new feature or enhancement.

Comments

@fieldju
Copy link

fieldju commented Jun 18, 2020

I've noticed that none of the summary type metrics from the following scrape (all scrapes on the pods in my cluster) do not show up in NR1/insights

https://gist.github.com/fieldju/90cf92976358853245ba1eb99a94523c#file-prom-scrap-txt-L413-L422

Again I am not seeing any of the sum or count metrics from Micrometer timers.

.*-seconds_count
.*_seconds_sum

This post says that summaries were coming:
#14 (comment)

This pull request says it was adding support:
#15

I am running 1.5.0 of this integration

Controlled By:  ReplicaSet/nri-prometheus-67ff84fbf8
Containers:
  nri-prometheus:
    Container ID:  docker://4c7ea34dc7ac0658d8b3ec45c134da583c20f3fff9abfc038685bdfbc052b02b
    Image:         newrelic/nri-prometheus:1.5.0
@fieldju
Copy link
Author

fieldju commented Jun 18, 2020

Maybe related to #45

@douglascamata
Copy link

Hey @fieldju!

Currently this integration does not pull the _count or _sum metrics of a Summary. Both are not in the New Relic specs for percentiles.

@fieldju
Copy link
Author

fieldju commented Jun 19, 2020 via email

@fieldju
Copy link
Author

fieldju commented Jun 19, 2020

But they are of type summary

# HELP controller_invocations_seconds  
# TYPE controller_invocations_seconds summary
controller_invocations_seconds_count{account="None",applicationName="clouddriver",armoryAppVersion="2.20.1",cause="None",controller="MetricsController",customerEnvName="fieldju-dev",customerName="armory",hostname="spin-clouddriver-d6f48976b-dwmpf",lib="armory-observability-plugin",libVersion="v1.0.0-RC13",method="getMetrics",ossAppVersion="6.9.2-20200606020017",region="None",spinnakerRelease="1.20.5",status="2xx",statusCode="200",success="true",} 2108.0
controller_invocations_seconds_sum{account="None",applicationName="clouddriver",armoryAppVersion="2.20.1",cause="None",controller="MetricsController",customerEnvName="fieldju-dev",customerName="armory",hostname="spin-clouddriver-d6f48976b-dwmpf",lib="armory-observability-plugin",libVersion="v1.0.0-RC13",method="getMetrics",ossAppVersion="6.9.2-20200606020017",region="None",spinnakerRelease="1.20.5",status="2xx",statusCode="200",success="true",} 40.766105613
controller_invocations_seconds_count{account="None",applicationName="clouddriver",armoryAppVersion="2.20.1",cause="None",controller="ApplicationsController",customerEnvName="fieldju-dev",customerName="armory",hostname="spin-clouddriver-d6f48976b-dwmpf",lib="armory-observability-plugin",libVersion="v1.0.0-RC13",method="list",ossAppVersion="6.9.2-20200606020017",region="None",spinnakerRelease="1.20.5",status="2xx",statusCode="200",success="true",} 12513.0
controller_invocations_seconds_sum{account="None",applicationName="clouddriver",armoryAppVersion="2.20.1",cause="None",controller="ApplicationsController",customerEnvName="fieldju-dev",customerName="armory",hostname="spin-clouddriver-d6f48976b-dwmpf",lib="armory-observability-plugin",libVersion="v1.0.0-RC13",method="list",ossAppVersion="6.9.2-20200606020017",region="None",spinnakerRelease="1.20.5",status="2xx",statusCode="200",success="true",} 28.909571336
controller_invocations_seconds_count{account="None",applicationName="clouddriver",armoryAppVersion="2.20.1",cause="None",controller="PrometheusScrapeController",customerEnvName="fieldju-dev",customerName="armory",hostname="spin-clouddriver-d6f48976b-dwmpf",lib="armory-observability-plugin",libVersion="v1.0.0-RC13",method="scrape",ossAppVersion="6.9.2-20200606020017",region="None",spinnakerRelease="1.20.5",status="2xx",statusCode="200",success="true",} 2109.0
controller_invocations_seconds_sum{account="None",applicationName="clouddriver",armoryAppVersion="2.20.1",cause="None",controller="PrometheusScrapeController",customerEnvName="fieldju-dev",customerName="armory",hostname="spin-clouddriver-d6f48976b-dwmpf",lib="armory-observability-plugin",libVersion="v1.0.0-RC13",method="scrape",ossAppVersion="6.9.2-20200606020017",region="None",spinnakerRelease="1.20.5",status="2xx",statusCode="200",success="true",} 14.247636965
controller_invocations_seconds_count{account="None",applicationName="clouddriver",armoryAppVersion="2.20.1",cause="None",controller="CredentialsController",customerEnvName="fieldju-dev",customerName="armory",hostname="spin-clouddriver-d6f48976b-dwmpf",lib="armory-observability-plugin",libVersion="v1.0.0-RC13",method="list",ossAppVersion="6.9.2-20200606020017",region="None",spinnakerRelease="1.20.5",status="2xx",statusCode="200",success="true",} 2099.0
controller_invocations_seconds_sum{account="None",applicationName="clouddriver",armoryAppVersion="2.20.1",cause="None",controller="CredentialsController",customerEnvName="fieldju-dev",customerName="armory",hostname="spin-clouddriver-d6f48976b-dwmpf",lib="armory-observability-plugin",libVersion="v1.0.0-RC13",method="list",ossAppVersion="6.9.2-20200606020017",region="None",spinnakerRelease="1.20.5",status="2xx",statusCode="200",success="true",} 0.916802292

NewRelic Summary types do support min, max, sum, count, should the summaries not be mapped to new relic summaries and include all the critical data?

@douglascamata
Copy link

Hey @fieldju! This should be improved by #54, which is in the v2.0.0-rc1 pre-release. This commit contains more information about the changes being done to histograms and summaries.

I invite you to try this RC release and please tell us if it fixes this problem.

@douglascamata douglascamata added the feature request Categorizes issue or PR as related to a new feature or enhancement. label Jun 25, 2020
@fieldju
Copy link
Author

fieldju commented Jun 29, 2020

Hey @fieldju! This should be improved by #54, which is in the v2.0.0-rc1 pre-release. This commit contains more information about the changes being done to histograms and summaries.

I invite you to try this RC release and please tell us if it fixes this problem.

This is Awesome, I will check this out.

I had no idea if or when this was coming, so I refactored the code I was working on to use a micrometer composite registry and take advantage of the New Relic Micrometer Registry to send metrics to NR and Prometheus. This does double the memory requirements if both integrations are enabled, so still might want the NRI Prom Scrapper over the Micrometer registry 🤔 .

However this will only work for our Java services, we will be wanting this integration for our Golang microservices so that we can instrument the application with a vendor-agnostic metrics library that at least supports prometheus and have metrics locally with Grafana/Prometheus and NR at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Categorizes issue or PR as related to a new feature or enhancement.
Projects
None yet
Development

No branches or pull requests

3 participants