Π“Ρ€Π°Ρ„ ΠΊΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

167 ΠšΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

Автор SHA1 Π‘ΠΎΠΎΠ±Ρ‰Π΅Π½ΠΈΠ΅ Π”Π°Ρ‚Π°
Leli 09b64c3c0c
Bug 1880095 fix opmon fail (#181)
* Issue 177: Add group_by_dimension to the metrics table

* fixing some typos

* test setup

* test setup

* test setup

* Bug 1880095 - Fix group_by_dimension

* delete wrong files
2024-02-13 19:21:54 +01:00
Leli 65503ab73d
fix-178 move comma in metric query (#180) 2024-02-12 20:04:18 +01:00
Leli f8216840ae
Issue 177: Add group_by_dimension to the metrics table (#178)
* Issue 177: Add group_by_dimension to the metrics table

* fixing some typos
2024-02-12 19:00:18 +01:00
Leli e3b07418f6
add VPN (#176)
* add VPN

* Update platform_config.toml

Co-authored-by: Anna Scholtz <anna@scholtzan.net>

---------

Co-authored-by: Anna Scholtz <anna@scholtzan.net>
2023-12-04 19:10:06 +01:00
Anna Scholtz 34a489c86c Cast client ID to string 2023-11-30 09:36:47 -08:00
Anna Scholtz b79049ab57 Handle client_id_columns set to NULL 2023-11-28 09:57:42 -08:00
Anna Scholtz 8afa15aae6 Add monitor_cirrus platform config 2023-11-06 12:32:33 -08:00
Anna Scholtz 28c35be21d Filter out clients that spam pings 2023-10-11 11:31:17 -07:00
Anna Scholtz 03a031e1e0 Update to python 3.10 2023-09-18 14:01:06 -07:00
Anna Scholtz c66b38102a Fix rollout defaults 2023-09-18 14:01:06 -07:00
Anna Scholtz b63396dcff Fix using rollout defaults 2023-09-18 13:07:34 -07:00
Leli Schiestl 32cd2bf454 add preview to readme 2023-09-18 08:33:50 -07:00
dependabot[bot] 87b7f5bd37 Bump gitpython from 3.1.30 to 3.1.32
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.30 to 3.1.32.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.30...3.1.32)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-18 08:33:18 -07:00
Anna Scholtz 307c67e8bf Cast null dimensions to strings in alerts 2023-09-07 11:20:46 -07:00
Nick Alexander 54a8809ef7 Add submission_timestamp column sibling to submission_date. (#126)
This makes it easier to visualize Opmon aggregate metrics in Grafana:
Grafana's Bigquery integration is fundamentally `TIMESTAMP` shaped,
not `DATE` shaped, and this avoids writing nested queries.
2023-03-10 10:55:02 -08:00
Anna Scholtz 895e0d9033 Fix test_spec_for_experiment 2023-03-10 10:50:25 -08:00
Anna Scholtz b7908ddeed SQL introspection for multipart queries 2023-02-28 11:42:27 -08:00
Nick Alexander 049274eae3 Optionally write generated SQL for inspection during development. (#115)
There are many ways to skin this cat; here's one.  We add a somewhat
general "before execution" callback that the BigQuery client itself
invokes before queuing jobs for processing.  This callback is a member
of the `Monitoring` instance and is threaded through in turn to its
BigQuery client.  In addition, we manually invoke the callback around
the dry run service.

The callback takes arbitrary annotations (in a dictionary) and takes
action as appropriate.  For now, we annotate with the slug, submission
date, and a "type" describing the query.

A new optional `--sql-output-dir` command line option determines
whether output is written to disk and, when present, to what
directory.  Each SQL query is written to a separate file whose name is
based on the provided annotations.

This callback mechanism could be generalized to, for example, be
invoked "after exection" as well; this would allow collecting BigQuery
timing and job details (data processed or estimates there-of, for
example).

This commit will require an additional commit to the `opmon-config`
repository to actually make use of the new feature.
2023-02-28 11:42:27 -08:00
Nick Alexander ae7001e382 [preview] Fix date timestamp to midnight, like "YYYY-MM-DD 00:00:00+00:00".
This is simply a quality of life improvement: it makes it easier to
reason about various timestamps, most of which are treated as date
fields anyway.
2023-02-28 11:42:27 -08:00
Nick Alexander 12a697ee44 [preview] Fish slug from `--config-file` by default.
The slug does not appear explicitly in (some) configuration files;
this eases invocation.
2023-02-28 11:42:27 -08:00
Nick Alexander 2360578bd9 [preview] Add `preview --num-days=N` to extend preview time window.
In the future, we might teach the preview window computation to
consider `window_size` for relevant alerts such as those with `type =
"avg_diff"`.
2023-02-28 11:42:27 -08:00
Daniel Thorn 45f1fde118 Remove pytest-flake8
it hasn't been updated to work with flake8>=5 and this project uses flake8 6
2023-02-27 08:29:22 -08:00
Anna Scholtz 84e49040a3 Remove unused UDFs 2023-02-13 15:15:31 -08:00
Anna Scholtz 7785257019 Use new percentile UDF 2023-02-13 15:13:06 -08:00
Anna Scholtz 73148e3d6e Update metric parser 2023-01-24 15:57:40 -08:00
Anna Scholtz 7857ebabd6 Update metrics parser 2023-01-24 15:34:18 -08:00
Anna Scholtz 64eaf95515 Load configs from metric-hub 2023-01-23 15:44:34 -08:00
Daniel Thorn 3291261a49
Automatically split up metrics queries based on probe quantity (#104) 2023-01-17 09:36:23 -08:00
Anna Scholtz 9d1308b927 Only create alerts view if alerts table exists 2023-01-11 09:04:13 -08:00
Anna Scholtz 31d608edc0 destination_table parameter name 2023-01-11 09:04:13 -08:00
Daniel Thorn 6a6a5abf25
Refactor table generation to repeat less logic (#117) 2023-01-10 14:17:44 -08:00
Anna Scholtz 2987b4cb34 Pass derived_dataset into Metadata 2022-12-21 09:33:59 -08:00
Anna Scholtz dc21e3b1c4 Fix derived_dataset_id option 2022-12-21 09:03:54 -08:00
Anna Scholtz ce585a46f6 Preview tweaks 2022-12-20 10:26:57 -08:00
Anna Scholtz fa3f033703 Remove previously created preview tables 2022-12-20 09:57:49 -08:00
Anna Scholtz 8bee4ae301 opmon preview CLI command 2022-12-20 09:57:49 -08:00
Daniel Thorn 84865269ee
Fix population join to prevent duplication of input rows (#102) 2022-11-21 14:40:18 -08:00
Anna Scholtz df6dcb370b ETL docs 2022-11-10 13:47:25 -08:00
Anna Scholtz 0851a16347 Support multiple Glean channels 2022-11-09 13:40:14 -08:00
Anna Scholtz 3d16e5d2c1 Correct client_id_column referenced in query 2022-11-03 13:29:42 -07:00
Anna Scholtz 3138195825 Add option to percentiles to remove nulls 2022-11-02 19:09:34 -07:00
Anna Scholtz 288c807bd4 Add total ratio statistic 2022-11-02 11:49:33 -07:00
Anna Scholtz 7b58c7fcf1 Update metric parser version 2022-11-01 09:55:22 -07:00
Anna Scholtz 268d3d0034 Support metric groups 2022-10-31 10:42:30 -07:00
Anna Scholtz af48baddc5 Enable Glean apps 2022-10-25 15:08:21 -07:00
Anna Scholtz 3bf6a710b3 Fix type check for non-rollout run configs 2022-10-25 12:50:41 -07:00
Anna Scholtz 6e9e189483 Validation of definitions files 2022-10-19 13:57:53 -07:00
Anna Scholtz 2919589b0f Fix validation for definition configs 2022-10-19 11:55:13 -07:00
Anna Scholtz a45df5b20b Integrate metric hub 2022-10-19 11:47:45 -07:00
Anna Scholtz e943188df8 Fix alerts dummy value 2022-10-13 13:22:31 -07:00