-
-
Notifications
You must be signed in to change notification settings - Fork 602
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
metrics filter not behaving as expected #1647
Comments
@beenanner had me try this set of filters and they work as expected:
|
ping @tobli he is the filter expert :) |
One thing that is hidden in the docs is https://www.sitespeed.io/documentation/sitespeed.io/metrics/#add-a-metric (scroll down to "The best way to test and verify on your local ..." is to run the tcp server on your local machine and check what kind of metrics that are actually sent. |
I used a unique namespace for graphite each run to verify the metrics sent. "*+" works but sends all metrics, and "pagexray.pageSummary.assets.*" "pagexray.pageSummary.domains.*" works, but filtering for particular stats within the pagexray assets or domains does not. |
So looked into this more and this is a very specific bug with the filter for pageSummary and assets. i.e. pagexray.pageSummary.assets.*. pagexray.pageSummary.assets.*.url is required for https://github.com/sitespeedio/sitespeed.io/blob/master/lib/support/flattenMessage.js#L83 I think a fix to allow the indices to be sent to graphite is necessary as a fallback although that probably won't be what the user wants as they would most likely want the URL as the key thus the need for the code above. I'll open a pull-request to allow for indices if a URL key doesn't exist due to customized filters, but what you'll want to do to get the URLs as keys is add the following to your config @jonthemiller
The special sauce being the |
Having an issue when trying to send pagexray and other metrics into Graphite when using the metrics.filter options. I am running 5.3.0. This is what my configuration looks like:
This is the command I'm running and the output:
When I look in Graphite, the only metrics sent are those within the "aggregateassets" and "domains" namespaces.
Sending all metrics works (*+) but adds a lot of unnecessary entries I don't need.
The text was updated successfully, but these errors were encountered: