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

[APM][Multi-signal service inventory] Collect summary Traces and Logs metrics from OAM services #181719

Closed
cauemarcondes opened this issue Apr 25, 2024 · 2 comments · Fixed by #182960
Assignees
Labels
enhancement New value added to drive a business result Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team

Comments

@cauemarcondes
Copy link
Contributor

cauemarcondes commented Apr 25, 2024

After fetching the Assets of type service in the OAM index, we must fetch the associated metrics.

There are two types of metrics one per signal type:

Traces

  • Latency
  • Throughput
  • Failed transaction rate

Logs - #181813

  • Log rate
  • Log error rate

It should return a summary for each metric based on the signal type.

@cauemarcondes cauemarcondes added the Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team label Apr 25, 2024
@cauemarcondes cauemarcondes self-assigned this Apr 25, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@cauemarcondes cauemarcondes changed the title [APM][New Inventory] Collect summary Traces and Logs metrics from OAM services [APM][New Service Inventory] Collect summary Traces and Logs metrics from OAM services Apr 25, 2024
@roshan-elastic
Copy link

Hey @cauemarcondes - I removed these from the ROO project board as that board should only show 'projects':

@smith smith added the enhancement New value added to drive a business result label Apr 30, 2024
@kpatticha kpatticha changed the title [APM][New Service Inventory] Collect summary Traces and Logs metrics from OAM services [APM][Multi-signal service inventory] Collect summary Traces and Logs metrics from OAM services May 7, 2024
kpatticha added a commit that referenced this issue May 14, 2024
closes #181719

Payload example:
```
{
  "services": {
    "services": [
      {
        "asset": {
          "signalTypes": {
            "asset.traces": true,
            "asset.logs": true
          },
          "identifyingMetadata": [
            "service.name"
          ]
        },
        "service": {
          "name": "synth-node-0",
          "environment": "Synthtrace: traces_logs_assets"
        },
        "metrics": {
          "latency": 1000000,
          "throughput": 0.001388888904963992,
          "transactionErrorRate": 0.5,
          "logRatePerMinute": 0.002777777809927984,
          "logErrorRate": null
        }
      },
      {
        "asset": {
          "signalTypes": {
            "asset.traces": true
          },
          "identifyingMetadata": [
            "service.name"
          ]
        },
        "service": {
          "name": "synth-node-1",
          "environment": "Synthtrace: traces_logs_assets"
        },
        "metrics": {
          "latency": 1000000,
          "throughput": 0.001388888904963992,
          "transactionErrorRate": 0.5
        }
      },
      {
        "asset": {
          "signalTypes": {
            "asset.traces": true
          },
          "identifyingMetadata": [
            "service.name"
          ]
        },
        "service": {
          "name": "synth-node-2",
          "environment": "Synthtrace: traces_logs_assets"
        },
        "metrics": {
          "latency": 1000000,
          "throughput": 0.001388888904963992,
          "transactionErrorRate": 0.5
        }
      },
      {
        "asset": {
          "signalTypes": {
            "asset.logs": true
          },
          "identifyingMetadata": [
            "service.name"
          ]
        },
        "service": {
          "name": "synth-java"
        },
        "metrics": {
          "logRatePerMinute": 0.002083333357445988,
          "logErrorRate": 0.3333333333333333
        }
      }
    ]
  }
}
```

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kate Patticha <aikaterini.patticha@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants