Skip to content

Commit

Permalink
feat: [monitoring-dashboards] Added support for PromQL queries (#8688)
Browse files Browse the repository at this point in the history
* feat: Added support for PromQL queries

PiperOrigin-RevId: 483996299

Source-Link: googleapis/googleapis@1742ec3

Source-Link: googleapis/googleapis-gen@0ef6832
Copy-Tag: eyJwIjoiamF2YS1tb25pdG9yaW5nLWRhc2hib2FyZHMvLk93bEJvdC55YW1sIiwiaCI6IjBlZjY4MzI1YTUwNzRkMGE1YzU0YTM0NzU3YjEyMDRmOTI3ZmE4NTUifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Oct 27, 2022
1 parent 1b54799 commit 0635008
Show file tree
Hide file tree
Showing 15 changed files with 523 additions and 139 deletions.
17 changes: 17 additions & 0 deletions java-monitoring-dashboards/.gitignore
@@ -0,0 +1,17 @@
# Maven
target/

# Eclipse
.classpath
.project
.settings

# Intellij
*.iml
.idea/

# python utilities
*.pyc
__pycache__

.flattened-pom.xml
6 changes: 3 additions & 3 deletions java-monitoring-dashboards/README.md
Expand Up @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-monitoring-dashboard</artifactId>
<version>2.5.6</version>
<version>2.7.0</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.5.6'
implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.7.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.5.6"
libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.7.0"
```

## Authentication
Expand Down
3 changes: 2 additions & 1 deletion java-monitoring-dashboards/pom.xml
Expand Up @@ -50,4 +50,5 @@
<module>proto-google-cloud-monitoring-dashboard-v1</module>
<module>google-cloud-monitoring-dashboard-bom</module>
</modules>
</project>

</project>
Expand Up @@ -59,58 +59,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"\n,google/monitoring/dashboard/v1/metrics"
+ ".proto\022\036google.monitoring.dashboard.v1\032\037"
+ "google/api/field_behavior.proto\032+google/"
+ "monitoring/dashboard/v1/common.proto\"\203\002\n"
+ "monitoring/dashboard/v1/common.proto\"\237\002\n"
+ "\017TimeSeriesQuery\022N\n\022time_series_filter\030\001"
+ " \001(\01320.google.monitoring.dashboard.v1.Ti"
+ "meSeriesFilterH\000\022Y\n\030time_series_filter_r"
+ "atio\030\002 \001(\01325.google.monitoring.dashboard"
+ ".v1.TimeSeriesFilterRatioH\000\022$\n\032time_seri"
+ "es_query_language\030\003 \001(\tH\000\022\025\n\runit_overri"
+ "de\030\005 \001(\tB\010\n\006source\"\212\003\n\020TimeSeriesFilter\022"
+ "\023\n\006filter\030\001 \001(\tB\003\340A\002\022@\n\013aggregation\030\002 \001("
+ "\0132+.google.monitoring.dashboard.v1.Aggre"
+ "gation\022J\n\025secondary_aggregation\030\003 \001(\0132+."
+ "google.monitoring.dashboard.v1.Aggregati"
+ "on\022W\n\027pick_time_series_filter\030\004 \001(\01324.go"
+ "ogle.monitoring.dashboard.v1.PickTimeSer"
+ "iesFilterH\000\022i\n\036statistical_time_series_f"
+ "ilter\030\005 \001(\0132;.google.monitoring.dashboar"
+ "d.v1.StatisticalTimeSeriesFilterB\002\030\001H\000B\017"
+ "\n\routput_filter\"\306\004\n\025TimeSeriesFilterRati"
+ "o\022R\n\tnumerator\030\001 \001(\0132?.google.monitoring"
+ ".dashboard.v1.TimeSeriesFilterRatio.Rati"
+ "oPart\022T\n\013denominator\030\002 \001(\0132?.google.moni"
+ "toring.dashboard.v1.TimeSeriesFilterRati"
+ "o.RatioPart\022J\n\025secondary_aggregation\030\003 \001"
+ "(\0132+.google.monitoring.dashboard.v1.Aggr"
+ "egation\022W\n\027pick_time_series_filter\030\004 \001(\013"
+ "24.google.monitoring.dashboard.v1.PickTi"
+ "meSeriesFilterH\000\022i\n\036statistical_time_ser"
+ "ies_filter\030\005 \001(\0132;.google.monitoring.das"
+ "hboard.v1.StatisticalTimeSeriesFilterB\002\030"
+ "\001H\000\032b\n\tRatioPart\022\023\n\006filter\030\001 \001(\tB\003\340A\002\022@\n"
+ "\013aggregation\030\002 \001(\0132+.google.monitoring.d"
+ "ashboard.v1.AggregationB\017\n\routput_filter"
+ "\"\252\003\n\tThreshold\022\r\n\005label\030\001 \001(\t\022\r\n\005value\030\002"
+ " \001(\001\022>\n\005color\030\003 \001(\0162/.google.monitoring."
+ "dashboard.v1.Threshold.Color\022F\n\tdirectio"
+ "n\030\004 \001(\01623.google.monitoring.dashboard.v1"
+ ".Threshold.Direction\022I\n\013target_axis\030\005 \001("
+ "\01624.google.monitoring.dashboard.v1.Thres"
+ "hold.TargetAxis\"3\n\005Color\022\025\n\021COLOR_UNSPEC"
+ "IFIED\020\000\022\n\n\006YELLOW\020\004\022\007\n\003RED\020\006\"<\n\tDirectio"
+ "n\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\t\n\005ABOVE\020\001\022"
+ "\t\n\005BELOW\020\002\"9\n\nTargetAxis\022\033\n\027TARGET_AXIS_"
+ "UNSPECIFIED\020\000\022\006\n\002Y1\020\001\022\006\n\002Y2\020\002*Q\n\016SparkCh"
+ "artType\022 \n\034SPARK_CHART_TYPE_UNSPECIFIED\020"
+ "\000\022\016\n\nSPARK_LINE\020\001\022\r\n\tSPARK_BAR\020\002B\366\001\n\"com"
+ ".google.monitoring.dashboard.v1B\014Metrics"
+ "ProtoP\001ZGgoogle.golang.org/genproto/goog"
+ "leapis/monitoring/dashboard/v1;dashboard"
+ "\252\002$Google.Cloud.Monitoring.Dashboard.V1\312"
+ "\002$Google\\Cloud\\Monitoring\\Dashboard\\V1\352\002"
+ "(Google::Cloud::Monitoring::Dashboard::V"
+ "1b\006proto3"
+ "es_query_language\030\003 \001(\tH\000\022\032\n\020prometheus_"
+ "query\030\006 \001(\tH\000\022\025\n\runit_override\030\005 \001(\tB\010\n\006"
+ "source\"\212\003\n\020TimeSeriesFilter\022\023\n\006filter\030\001 "
+ "\001(\tB\003\340A\002\022@\n\013aggregation\030\002 \001(\0132+.google.m"
+ "onitoring.dashboard.v1.Aggregation\022J\n\025se"
+ "condary_aggregation\030\003 \001(\0132+.google.monit"
+ "oring.dashboard.v1.Aggregation\022W\n\027pick_t"
+ "ime_series_filter\030\004 \001(\01324.google.monitor"
+ "ing.dashboard.v1.PickTimeSeriesFilterH\000\022"
+ "i\n\036statistical_time_series_filter\030\005 \001(\0132"
+ ";.google.monitoring.dashboard.v1.Statist"
+ "icalTimeSeriesFilterB\002\030\001H\000B\017\n\routput_fil"
+ "ter\"\306\004\n\025TimeSeriesFilterRatio\022R\n\tnumerat"
+ "or\030\001 \001(\0132?.google.monitoring.dashboard.v"
+ "1.TimeSeriesFilterRatio.RatioPart\022T\n\013den"
+ "ominator\030\002 \001(\0132?.google.monitoring.dashb"
+ "oard.v1.TimeSeriesFilterRatio.RatioPart\022"
+ "J\n\025secondary_aggregation\030\003 \001(\0132+.google."
+ "monitoring.dashboard.v1.Aggregation\022W\n\027p"
+ "ick_time_series_filter\030\004 \001(\01324.google.mo"
+ "nitoring.dashboard.v1.PickTimeSeriesFilt"
+ "erH\000\022i\n\036statistical_time_series_filter\030\005"
+ " \001(\0132;.google.monitoring.dashboard.v1.St"
+ "atisticalTimeSeriesFilterB\002\030\001H\000\032b\n\tRatio"
+ "Part\022\023\n\006filter\030\001 \001(\tB\003\340A\002\022@\n\013aggregation"
+ "\030\002 \001(\0132+.google.monitoring.dashboard.v1."
+ "AggregationB\017\n\routput_filter\"\252\003\n\tThresho"
+ "ld\022\r\n\005label\030\001 \001(\t\022\r\n\005value\030\002 \001(\001\022>\n\005colo"
+ "r\030\003 \001(\0162/.google.monitoring.dashboard.v1"
+ ".Threshold.Color\022F\n\tdirection\030\004 \001(\01623.go"
+ "ogle.monitoring.dashboard.v1.Threshold.D"
+ "irection\022I\n\013target_axis\030\005 \001(\01624.google.m"
+ "onitoring.dashboard.v1.Threshold.TargetA"
+ "xis\"3\n\005Color\022\025\n\021COLOR_UNSPECIFIED\020\000\022\n\n\006Y"
+ "ELLOW\020\004\022\007\n\003RED\020\006\"<\n\tDirection\022\031\n\025DIRECTI"
+ "ON_UNSPECIFIED\020\000\022\t\n\005ABOVE\020\001\022\t\n\005BELOW\020\002\"9"
+ "\n\nTargetAxis\022\033\n\027TARGET_AXIS_UNSPECIFIED\020"
+ "\000\022\006\n\002Y1\020\001\022\006\n\002Y2\020\002*Q\n\016SparkChartType\022 \n\034S"
+ "PARK_CHART_TYPE_UNSPECIFIED\020\000\022\016\n\nSPARK_L"
+ "INE\020\001\022\r\n\tSPARK_BAR\020\002B\366\001\n\"com.google.moni"
+ "toring.dashboard.v1B\014MetricsProtoP\001ZGgoo"
+ "gle.golang.org/genproto/googleapis/monit"
+ "oring/dashboard/v1;dashboard\252\002$Google.Cl"
+ "oud.Monitoring.Dashboard.V1\312\002$Google\\Clo"
+ "ud\\Monitoring\\Dashboard\\V1\352\002(Google::Clo"
+ "ud::Monitoring::Dashboard::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand All @@ -128,6 +128,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"TimeSeriesFilter",
"TimeSeriesFilterRatio",
"TimeSeriesQueryLanguage",
"PrometheusQuery",
"UnitOverride",
"Source",
});
Expand Down

0 comments on commit 0635008

Please sign in to comment.