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

Improve Github Integration #1845

Closed
Tracked by #466
proffalken opened this issue Jul 1, 2022 · 11 comments · Fixed by #5289
Closed
Tracked by #466

Improve Github Integration #1845

proffalken opened this issue Jul 1, 2022 · 11 comments · Fixed by #5289
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. upstream An issue that must be fixed upstream

Comments

@proffalken
Copy link
Contributor

I'd like to improve the Gihub Integration so we can get the following metrics:

  1. Issue state (at the moment, it only returns "open" issues. We'd like to track open vs closed vs reopened over time)
  2. Contributors, ideally with the number of PR's they've approved on the repo etc
  3. Enhanced PR data such as checks passed, approvals required vs approvals granted, and merged vs awaiting merge

I'm struggling to find the code where this would happen, can anyone enlighten me?

@rfratto
Copy link
Member

rfratto commented Jul 5, 2022

Hi! We already had a chat on the public Slack, but I'll rewrite my answer here for anyone else who might be curious.

I definitely agree these things would be useful. Unfortunately, there's not much code in this repository for the exporter itself. Our code is in pkg/integrations/github_exporter, which wraps around the open source infinityworks/github-exporter exporter.

We tend to opt for existing exporters from the community so that:

  • We don't reinvent the wheel for code that already exists
  • We can add more integrations into the agent quickly
  • We help give existing exporters in the community get more attention

Fixes and new features would have to be made upstream, which we could then re-import downstream.

In this case, it looks like there hasn't been much activity in this specific upstream exporter. If the repo has become stale, we'll want to discuss whether it makes sense to do nothing (e.g., if it's considered feature-complete), fork it, find another existing exporter, or to write a new exporter for GitHub metrics.

@proffalken
Copy link
Contributor Author

Finally got around to logging githubexporter/github-exporter#85 to find out what the state of the exporter is and see where we go from here.

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had any activity in the past 30 days.
The next time this stale check runs, the stale label will be removed if there is new activity. The issue will be closed in 7 days if there is no new activity.
Thank you for your contributions!

@github-actions github-actions bot added the stale Issue/PR mark as stale due lack of activity label Aug 28, 2022
@proffalken
Copy link
Contributor Author

Given there's been no reply to my issue raised on the other repo, then I think we need to assume that the other project is dead.

Probably need to have a think about where we go from here, as being able to timestamp from git PR's is a really important part of our end-to-end observability

@github-actions github-actions bot removed the stale Issue/PR mark as stale due lack of activity label Aug 29, 2022
@marctc
Copy link
Contributor

marctc commented Aug 29, 2022

@proffalken if the project is not really maintained (but still relevant) I think it could be transferred here which there are already non-official exporters. Although is just my opinion: not sure if any of both orgs would agree on doing this transfer of ownership.

@proffalken
Copy link
Contributor Author

@marctc good idea, I'll log a ticket over there and see what they think.

@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had any activity in the past 30 days.
The next time this stale check runs, the stale label will be removed if there is new activity. The issue will be closed in 7 days if there is no new activity.
Thank you for your contributions!

@github-actions github-actions bot added the stale Issue/PR mark as stale due lack of activity label Sep 30, 2022
@proffalken
Copy link
Contributor Author

Need to spend some time on the upstream to port it over to the prom community plugins repo

@github-actions github-actions bot removed the stale Issue/PR mark as stale due lack of activity label Oct 1, 2022
@marctc marctc added the upstream An issue that must be fixed upstream label Nov 16, 2022
@marctc
Copy link
Contributor

marctc commented Jun 12, 2023

Looks like github-exporter has been moved its own organization: https://github.com/githubexporter/github-exporter.

@proffalken
Copy link
Contributor Author

@rfratto - does the information from @marctc mean that we'll automatically see updates from the new maintainers, or is there work to do in order to switch it over?

@marctc
Copy link
Contributor

marctc commented Sep 22, 2023

Hey @proffalken, I tried to switch to the org/repo but I got some errors. This PR upstream should fix the issue. Thanks for the heads up!

@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Feb 21, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. upstream An issue that must be fixed upstream
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants