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

Supabase integration #19307

Merged
merged 9 commits into from
Dec 26, 2024
Merged

Supabase integration #19307

merged 9 commits into from
Dec 26, 2024

Conversation

Kyle-Neale
Copy link
Contributor

@Kyle-Neale Kyle-Neale commented Dec 25, 2024

What does this PR do?

Supabase implementation.

  • Just python code and tests

Separate PRs will be made for:

  • Docs and metadata entries
  • Dashboard
  • Logs
  • Saved Views
  • Process Signature
  • Recommended Monitors

Copy link

codecov bot commented Dec 25, 2024

Codecov Report

Attention: Patch coverage is 93.97590% with 5 lines in your changes missing coverage. Please review.

Project coverage is 87.63%. Comparing base (aa9bd4e) to head (dc374b1).
Report is 6 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
activemq ?
cassandra ?
hive ?
hivemq ?
ignite ?
jboss_wildfly ?
kafka ?
presto ?
solr ?
supabase 93.97% <93.97%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

@Kyle-Neale Kyle-Neale marked this pull request as ready for review December 25, 2024 12:26
@Kyle-Neale Kyle-Neale requested review from a team as code owners December 25, 2024 12:26
# (C) Datadog, Inc. 2024-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from datadog_checks.base.checks.openmetrics.v2.metrics import DEFAULT_GO_METRICS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing I'd say we should do differently here is to change this metric:

'process_start_time_seconds': 'process.start_time.seconds',

We should make it an elapsed time metric. I can do that. But then we'd have to make a release and bump the min base package in this check. The easier way maybe to overwrite the metric in your metric list.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made the overwrite and the PR to fix it in the base class. I'm also adding some missing metrics to both.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

estherk15
estherk15 previously approved these changes Dec 26, 2024
Copy link
Contributor

@estherk15 estherk15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No docs review needed

estherk15
estherk15 previously approved these changes Dec 26, 2024
Comment on lines +373 to +375
# HELP postgres_exporter_config_last_reload_success_timestamp_seconds Timestamp of the last successful configuration reload.
# TYPE postgres_exporter_config_last_reload_success_timestamp_seconds gauge
postgres_exporter_config_last_reload_success_timestamp_seconds{supabase_project_ref="xdgggqomhgiilfjtepts",service_type="postgresql"} 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if this was manually created? Seems like this metric also references a timestamp?

Copy link
Contributor Author

@Kyle-Neale Kyle-Neale Dec 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed separately - this was not manually edited. Even though it references a timestamp, we can't use time_elapsed here since it regularly reports 0's.

@Kyle-Neale Kyle-Neale added this pull request to the merge queue Dec 26, 2024
Merged via the queue into master with commit a85eecf Dec 26, 2024
43 of 45 checks passed
@Kyle-Neale Kyle-Neale deleted the kyle.neale/supabase-integration branch December 26, 2024 17:26
github-actions bot pushed a commit that referenced this pull request Dec 26, 2024
* Supabase integration

* Add initial release changelog

* ddev validate ci --sync

* add metric check

* sync metadata

* validate labeler

* Overwrite default process start time metric

* Added missed metrics

* Override another default go metric a85eecf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants