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

Create option to publish only healthreports reporing a failure #138

Closed
Expecho opened this issue Apr 1, 2019 · 12 comments
Closed

Create option to publish only healthreports reporing a failure #138

Expecho opened this issue Apr 1, 2019 · 12 comments

Comments

@Expecho
Copy link
Contributor

Expecho commented Apr 1, 2019

Given the AddApplicationInsightsPublisher() method, I would love to have it support a flag indicating only reports indicating a failure are send to Application Insights. I am only interested in the amount of failures over time and since I am paying for the amount of data ingested I would like to filter out the normal state.

Other option would be to create an ITelemetryProcessor to filter out the items but I'd rather have built-in support.

I am more than willing to create a PR so we can take a closer look at how an implementation might look like.

@unaizorrilla
Copy link
Collaborator

You can filter on Application Insights using the status property if you are interested only on failures.

@Expecho
Copy link
Contributor Author

Expecho commented Apr 1, 2019

I understand, but I do pay for that ingested data. So I would prefer to prevent it from entering Application Insights at all (we do have a large application generating high volumes of telemetry).

@unaizorrilla
Copy link
Collaborator

You can reduce the amount of data on AI using sampling!

@Expecho
Copy link
Contributor Author

Expecho commented Apr 1, 2019

Also correct, but that might sample out unhealthy reports as well.

@Expecho
Copy link
Contributor Author

Expecho commented Apr 1, 2019

So summarized, this are the current options:

  • Sampling, but the drawback here is that unhealthy reports are excluded as well
  • Telemetry Filter, best option for now but requires more work
  • Filter in the query using the portal, but the drawback here is we still pay for the data we are not interested in and we send data over the wire we do not need/want

So I still see added value for being able to create a flag indicating only reports indicating a failure are send to Application Insights.

@unaizorrilla
Copy link
Collaborator

I'm not sure, let me check this with more people on the project and I try to respond you ASAP!

@lfraile
Copy link
Collaborator

lfraile commented Apr 1, 2019

After talking with @unaizorrilla we think what you propose, @Expecho, makes sense.

Let me a couple of days to work in it.

@unaizorrilla
Copy link
Collaborator

or @Expecho you can contribute this?

@Expecho
Copy link
Contributor Author

Expecho commented Apr 2, 2019

@lfraile @unaizorrilla Sure, no problem. I will give it a go later this week!

@Expecho
Copy link
Contributor Author

Expecho commented Apr 4, 2019

@lfraile @unaizorrilla I think we need to discuss the testing part of this proposed change. See the PR for details. I have an idea in my mind but it involves adding an extra dependency.

@lfraile
Copy link
Collaborator

lfraile commented Apr 4, 2019 via email

@unaizorrilla
Copy link
Collaborator

Closed by #143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants