Skip to content

Commit 0635008

Browse files
feat: [monitoring-dashboards] Added support for PromQL queries (#8688)
* feat: Added support for PromQL queries PiperOrigin-RevId: 483996299 Source-Link: googleapis/googleapis@1742ec3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0ef68325a5074d0a5c54a34757b1204f927fa855 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>
1 parent 1b54799 commit 0635008

File tree

15 files changed

+523
-139
lines changed

15 files changed

+523
-139
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Maven
2+
target/
3+
4+
# Eclipse
5+
.classpath
6+
.project
7+
.settings
8+
9+
# Intellij
10+
*.iml
11+
.idea/
12+
13+
# python utilities
14+
*.pyc
15+
__pycache__
16+
17+
.flattened-pom.xml

java-monitoring-dashboards/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
1919
<dependency>
2020
<groupId>com.google.cloud</groupId>
2121
<artifactId>google-cloud-monitoring-dashboard</artifactId>
22-
<version>2.5.6</version>
22+
<version>2.7.0</version>
2323
</dependency>
2424
```
2525

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

2828
```Groovy
29-
implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.5.6'
29+
implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.7.0'
3030
```
3131

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

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

3838
## Authentication

java-monitoring-dashboards/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@
5050
<module>proto-google-cloud-monitoring-dashboard-v1</module>
5151
<module>google-cloud-monitoring-dashboard-bom</module>
5252
</modules>
53-
</project>
53+
54+
</project>

java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/MetricsProto.java

Lines changed: 48 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -59,58 +59,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
5959
"\n,google/monitoring/dashboard/v1/metrics"
6060
+ ".proto\022\036google.monitoring.dashboard.v1\032\037"
6161
+ "google/api/field_behavior.proto\032+google/"
62-
+ "monitoring/dashboard/v1/common.proto\"\203\002\n"
62+
+ "monitoring/dashboard/v1/common.proto\"\237\002\n"
6363
+ "\017TimeSeriesQuery\022N\n\022time_series_filter\030\001"
6464
+ " \001(\01320.google.monitoring.dashboard.v1.Ti"
6565
+ "meSeriesFilterH\000\022Y\n\030time_series_filter_r"
6666
+ "atio\030\002 \001(\01325.google.monitoring.dashboard"
6767
+ ".v1.TimeSeriesFilterRatioH\000\022$\n\032time_seri"
68-
+ "es_query_language\030\003 \001(\tH\000\022\025\n\runit_overri"
69-
+ "de\030\005 \001(\tB\010\n\006source\"\212\003\n\020TimeSeriesFilter\022"
70-
+ "\023\n\006filter\030\001 \001(\tB\003\340A\002\022@\n\013aggregation\030\002 \001("
71-
+ "\0132+.google.monitoring.dashboard.v1.Aggre"
72-
+ "gation\022J\n\025secondary_aggregation\030\003 \001(\0132+."
73-
+ "google.monitoring.dashboard.v1.Aggregati"
74-
+ "on\022W\n\027pick_time_series_filter\030\004 \001(\01324.go"
75-
+ "ogle.monitoring.dashboard.v1.PickTimeSer"
76-
+ "iesFilterH\000\022i\n\036statistical_time_series_f"
77-
+ "ilter\030\005 \001(\0132;.google.monitoring.dashboar"
78-
+ "d.v1.StatisticalTimeSeriesFilterB\002\030\001H\000B\017"
79-
+ "\n\routput_filter\"\306\004\n\025TimeSeriesFilterRati"
80-
+ "o\022R\n\tnumerator\030\001 \001(\0132?.google.monitoring"
81-
+ ".dashboard.v1.TimeSeriesFilterRatio.Rati"
82-
+ "oPart\022T\n\013denominator\030\002 \001(\0132?.google.moni"
83-
+ "toring.dashboard.v1.TimeSeriesFilterRati"
84-
+ "o.RatioPart\022J\n\025secondary_aggregation\030\003 \001"
85-
+ "(\0132+.google.monitoring.dashboard.v1.Aggr"
86-
+ "egation\022W\n\027pick_time_series_filter\030\004 \001(\013"
87-
+ "24.google.monitoring.dashboard.v1.PickTi"
88-
+ "meSeriesFilterH\000\022i\n\036statistical_time_ser"
89-
+ "ies_filter\030\005 \001(\0132;.google.monitoring.das"
90-
+ "hboard.v1.StatisticalTimeSeriesFilterB\002\030"
91-
+ "\001H\000\032b\n\tRatioPart\022\023\n\006filter\030\001 \001(\tB\003\340A\002\022@\n"
92-
+ "\013aggregation\030\002 \001(\0132+.google.monitoring.d"
93-
+ "ashboard.v1.AggregationB\017\n\routput_filter"
94-
+ "\"\252\003\n\tThreshold\022\r\n\005label\030\001 \001(\t\022\r\n\005value\030\002"
95-
+ " \001(\001\022>\n\005color\030\003 \001(\0162/.google.monitoring."
96-
+ "dashboard.v1.Threshold.Color\022F\n\tdirectio"
97-
+ "n\030\004 \001(\01623.google.monitoring.dashboard.v1"
98-
+ ".Threshold.Direction\022I\n\013target_axis\030\005 \001("
99-
+ "\01624.google.monitoring.dashboard.v1.Thres"
100-
+ "hold.TargetAxis\"3\n\005Color\022\025\n\021COLOR_UNSPEC"
101-
+ "IFIED\020\000\022\n\n\006YELLOW\020\004\022\007\n\003RED\020\006\"<\n\tDirectio"
102-
+ "n\022\031\n\025DIRECTION_UNSPECIFIED\020\000\022\t\n\005ABOVE\020\001\022"
103-
+ "\t\n\005BELOW\020\002\"9\n\nTargetAxis\022\033\n\027TARGET_AXIS_"
104-
+ "UNSPECIFIED\020\000\022\006\n\002Y1\020\001\022\006\n\002Y2\020\002*Q\n\016SparkCh"
105-
+ "artType\022 \n\034SPARK_CHART_TYPE_UNSPECIFIED\020"
106-
+ "\000\022\016\n\nSPARK_LINE\020\001\022\r\n\tSPARK_BAR\020\002B\366\001\n\"com"
107-
+ ".google.monitoring.dashboard.v1B\014Metrics"
108-
+ "ProtoP\001ZGgoogle.golang.org/genproto/goog"
109-
+ "leapis/monitoring/dashboard/v1;dashboard"
110-
+ "\252\002$Google.Cloud.Monitoring.Dashboard.V1\312"
111-
+ "\002$Google\\Cloud\\Monitoring\\Dashboard\\V1\352\002"
112-
+ "(Google::Cloud::Monitoring::Dashboard::V"
113-
+ "1b\006proto3"
68+
+ "es_query_language\030\003 \001(\tH\000\022\032\n\020prometheus_"
69+
+ "query\030\006 \001(\tH\000\022\025\n\runit_override\030\005 \001(\tB\010\n\006"
70+
+ "source\"\212\003\n\020TimeSeriesFilter\022\023\n\006filter\030\001 "
71+
+ "\001(\tB\003\340A\002\022@\n\013aggregation\030\002 \001(\0132+.google.m"
72+
+ "onitoring.dashboard.v1.Aggregation\022J\n\025se"
73+
+ "condary_aggregation\030\003 \001(\0132+.google.monit"
74+
+ "oring.dashboard.v1.Aggregation\022W\n\027pick_t"
75+
+ "ime_series_filter\030\004 \001(\01324.google.monitor"
76+
+ "ing.dashboard.v1.PickTimeSeriesFilterH\000\022"
77+
+ "i\n\036statistical_time_series_filter\030\005 \001(\0132"
78+
+ ";.google.monitoring.dashboard.v1.Statist"
79+
+ "icalTimeSeriesFilterB\002\030\001H\000B\017\n\routput_fil"
80+
+ "ter\"\306\004\n\025TimeSeriesFilterRatio\022R\n\tnumerat"
81+
+ "or\030\001 \001(\0132?.google.monitoring.dashboard.v"
82+
+ "1.TimeSeriesFilterRatio.RatioPart\022T\n\013den"
83+
+ "ominator\030\002 \001(\0132?.google.monitoring.dashb"
84+
+ "oard.v1.TimeSeriesFilterRatio.RatioPart\022"
85+
+ "J\n\025secondary_aggregation\030\003 \001(\0132+.google."
86+
+ "monitoring.dashboard.v1.Aggregation\022W\n\027p"
87+
+ "ick_time_series_filter\030\004 \001(\01324.google.mo"
88+
+ "nitoring.dashboard.v1.PickTimeSeriesFilt"
89+
+ "erH\000\022i\n\036statistical_time_series_filter\030\005"
90+
+ " \001(\0132;.google.monitoring.dashboard.v1.St"
91+
+ "atisticalTimeSeriesFilterB\002\030\001H\000\032b\n\tRatio"
92+
+ "Part\022\023\n\006filter\030\001 \001(\tB\003\340A\002\022@\n\013aggregation"
93+
+ "\030\002 \001(\0132+.google.monitoring.dashboard.v1."
94+
+ "AggregationB\017\n\routput_filter\"\252\003\n\tThresho"
95+
+ "ld\022\r\n\005label\030\001 \001(\t\022\r\n\005value\030\002 \001(\001\022>\n\005colo"
96+
+ "r\030\003 \001(\0162/.google.monitoring.dashboard.v1"
97+
+ ".Threshold.Color\022F\n\tdirection\030\004 \001(\01623.go"
98+
+ "ogle.monitoring.dashboard.v1.Threshold.D"
99+
+ "irection\022I\n\013target_axis\030\005 \001(\01624.google.m"
100+
+ "onitoring.dashboard.v1.Threshold.TargetA"
101+
+ "xis\"3\n\005Color\022\025\n\021COLOR_UNSPECIFIED\020\000\022\n\n\006Y"
102+
+ "ELLOW\020\004\022\007\n\003RED\020\006\"<\n\tDirection\022\031\n\025DIRECTI"
103+
+ "ON_UNSPECIFIED\020\000\022\t\n\005ABOVE\020\001\022\t\n\005BELOW\020\002\"9"
104+
+ "\n\nTargetAxis\022\033\n\027TARGET_AXIS_UNSPECIFIED\020"
105+
+ "\000\022\006\n\002Y1\020\001\022\006\n\002Y2\020\002*Q\n\016SparkChartType\022 \n\034S"
106+
+ "PARK_CHART_TYPE_UNSPECIFIED\020\000\022\016\n\nSPARK_L"
107+
+ "INE\020\001\022\r\n\tSPARK_BAR\020\002B\366\001\n\"com.google.moni"
108+
+ "toring.dashboard.v1B\014MetricsProtoP\001ZGgoo"
109+
+ "gle.golang.org/genproto/googleapis/monit"
110+
+ "oring/dashboard/v1;dashboard\252\002$Google.Cl"
111+
+ "oud.Monitoring.Dashboard.V1\312\002$Google\\Clo"
112+
+ "ud\\Monitoring\\Dashboard\\V1\352\002(Google::Clo"
113+
+ "ud::Monitoring::Dashboard::V1b\006proto3"
114114
};
115115
descriptor =
116116
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -128,6 +128,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
128128
"TimeSeriesFilter",
129129
"TimeSeriesFilterRatio",
130130
"TimeSeriesQueryLanguage",
131+
"PrometheusQuery",
131132
"UnitOverride",
132133
"Source",
133134
});

0 commit comments

Comments
 (0)