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

Understand which external sites are posting to /newsletter/ #12607

Open
1 task
alexgibson opened this issue Jan 16, 2023 · 4 comments
Open
1 task

Understand which external sites are posting to /newsletter/ #12607

alexgibson opened this issue Jan 16, 2023 · 4 comments

Comments

@alexgibson
Copy link
Member

Description

We have a URL/view here that allows signing up to newsletters. Bedrock is no longer using this view itself as pages now POST directly to Basket instead, however some external sites may still be using it. The form on https://foundation.mozilla.org/en/ is one such example.

We need to understand if there are any more external sites still posting to this URL. Can we do this via logging? Once we have a list, we can do some outreach to help them to POST directly to Basket instead.


Success Criteria

  • List of sites that are still actively using the /newsletter/ endpoint.
@alexgibson
Copy link
Member Author

/cc @pmac

@pmac
Copy link
Member

pmac commented Jan 17, 2023

We can probably get pretty far loggin the source_url values that come through. The question is where to log this info so that we can extract it. We can just spit it out into the app logs and use our log viewer to search for the values, but I think our retention of those logs is very short.

@stevejalim @robhudson any ideas?

@robhudson
Copy link
Member

If we may need things like this frequently can we use Grafana + statsd like we do in basket? I think it would be interesting to wire up more metrics to get some extra insight into bedrock.

@pmac
Copy link
Member

pmac commented Jan 17, 2023

we used to have that but the move to prometheus messed us up a bit. We could do a similar thing to what we do for basket, which is to run a statsd collector that outputs the prometheus stats that can be consumed by grafana. We tried having bedrock output these settings but ran into issues due to the multiple processes outputting their own stats and managing discovery of all the pods in all of the locations. We should talk to @bkochendorfer about it.

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