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

feat: add configurable offset field to account for metrics ingestion delays #305

Draft
wants to merge 109 commits into
base: master
Choose a base branch
from

Conversation

lvaylet
Copy link
Collaborator

@lvaylet lvaylet commented Nov 25, 2022

Fixes #111.

Olivier Cervello and others added 30 commits March 9, 2021 11:16
* Update CI builds
* Update Dockerfile, improve CloudBuild deployment
* Add CI test configs
* Update .gitignore
* Update Makefile
* Remove buildpack builds and replace with Dockerfile-based builds
* feat!: Support slo-generator config v2 format (core changes)
* Add step property
* Fix kind filtering
* Fix Istio cluster naming for Service Monitoring API + modularize logging format based on debug flag
* Fix linting
* feat!: Upgrade slo-geneartor CLI to Click library
* Change --version implementation to use pkg_resources instead of importlib which is different in Python 3.6 and above
* fix: Migrate sample configurations to v2
* Add --project-id to Cloud Run deployment

* Add GCR release

* Fix API Cloud Scheduler

* Update release yaml

* Update github workflow
* Update migrator to fail softly when invalid YAMLs are found

* Add support for multiple error budget policies

* Fix migrator

* Fix lint

* Fix dependency issue

* Remove libgdal from Dockerfile
* Add CloudRun documentation

* Update CloudRun doc

* Update CloudBuild / CloudFunctions docs

* Update docs, fix migrator output
* Fix linting after upgrading to pylint2.11

* Fix encoding in open call
pradeepbbl and others added 19 commits November 25, 2022 08:59
Custom exporters are failing to load due to `capitalize`. This PR propagates the `get_backend()` logic to `get_exporters()`.
* add type hints

* add more type hints

* fix lint

* cleanup

* integrate mypy test to tests workflow

* fix types test workflow

* disable more pylint options

* add new line to mypy.ini

* disable warnings locally

* change Pylint annotation position

* update .pylintrc

* fix misc errors

* feat: add pytype linting (#249)

* add pytype linting and fix all reported errors

* revert metaclass fix to make tests pass

* refactor Makefile

* fix mypy errors

* more specific types in prometheus.py

* remove Optional type on arguments with default

* update test workflow

* fix lint

* fix unsubscriptable-object errors

* refactor variables declarations and some typings

* add new line on .gitignore file

* remove clean from mypy make cmd

* keep line before cmd

* bring back Optional type

* bring back Optional type on utils.py

* reverse last commit

* add Optional type to args in utils.py

* wrong arg type

* fix annotation-type-mismatch in compute.py

* fix attribute-error on main.py

* fix line too long

* fix indentation

* fix return types

* add Optional type

* fix already defined variables

* fix None has no attribute

* fix line too long

* update Makefile mypy script

* reverse last changes

* reverse cloud_monitoring_mql init refactoring

* ignore lint duplicate code warnings

* skip pytype attribute-error error to fix later

* ignore attr-defined type errors

* ignore union-attr type errors

* ignore fixme pylint warning

* add missing types dependencies

Co-authored-by: Laurent Vaylet <[email protected]>
* configure setuptools using setup.cfg (PEP 517, PEP 518)

* fix TOML syntax thah prevents CI from running

* make FIXME messages more explicit

* black 22.1.0 depends on click>=8.0.0

* add/configure black and isort

* configure pylint in pyproject.toml

* remove unused pylint config file

* add/configure pre-commit

* trim trailing whitespaces

* fix linting/formatting globally

* install pre-commit hooks in dev mode only

* add/configure bandit and safety

* add black, isort, bandit and safety to lint target and CI

* update versions of GitHub Actions

* add `make format` target (with isort then black)

* update version of release-please GitHub Action

* update contributing doc with new dev workflow and tools + fix/reformat Markdown

* add sample output of pre-commit hook

* detail how pre-commit hooks work

* fix mypy warnings/errors

* reformat Markdown

* fix discrepancy on Python version and license name

* add pytest and pytype temp folders to .gitgnore

* configure mypy using pyproject.toml
* add details on development workflow

* fix markdown style violations
* add documentation for Cloud Monitoring MQL backend

* fix markdown style violations
* add `cloud_monitoring_mql` backend section to sample config

* update docs with missing backends
…toring exporter to prevent Quota Exceeded errors (#286)
* add bug report template

* add feature request template

* prevent users from creating blank issues (i.e. force them to use a template)

* fix config file extension
* fix no_implicit_optional errors (cf. PEP 484)

* fix package name
@lvaylet lvaylet self-assigned this Nov 25, 2022
@lvaylet lvaylet changed the title Add configurable offset field to handle metrics ingestion delays feat: Add configurable offset field to make up for metrics ingestion delays Nov 25, 2022
@lvaylet lvaylet marked this pull request as draft November 25, 2022 16:14
@lvaylet
Copy link
Collaborator Author

lvaylet commented Nov 25, 2022

Marking as "draft" as I want to add unit tests and update the documentation.

@lvaylet lvaylet changed the title feat: Add configurable offset field to make up for metrics ingestion delays feat: add configurable offset field to make up for metrics ingestion delays Nov 30, 2022
@lvaylet lvaylet changed the title feat: add configurable offset field to make up for metrics ingestion delays feat: add configurable offset field to account for metrics ingestion delays Nov 30, 2022
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

Successfully merging this pull request may close these issues.

Add 'offset' field to handle metrics ingestion delays