You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2022/12/06 13:37:18 UTC
[GitHub] [skywalking] mahmoud-anwer opened a new pull request, #10115: Support mariadb
mahmoud-anwer opened a new pull request, #10115:
URL: https://github.com/apache/skywalking/pull/10115
<!--
β οΈ Please make sure to read this template first, pull requests that don't accord with this template
maybe closed without notice.
Texts surrounded by `<` and `>` are meant to be replaced by you, e.g. <framework name>, <issue number>.
Put an `x` in the `[ ]` to mark the item as CHECKED. `[x]`
-->
<!-- ==== π Remove this line WHEN AND ONLY WHEN you're fixing a bug, follow the checklist π ====
### Fix <bug description or the bug issue number or bug issue link>
- [ ] Add a unit test to verify that the fix works.
- [ ] Explain briefly why the bug exists and how to fix it.
==== π Remove this line WHEN AND ONLY WHEN you're fixing a bug, follow the checklist π ==== -->
<!-- ==== π Remove this line WHEN AND ONLY WHEN you're improving the performance, follow the checklist π ====
### Improve the performance of <class or module or ...>
- [ ] Add a benchmark for the improvement, refer to [the existing ones](https://github.com/apache/skywalking/blob/master/apm-commons/apm-datacarrier/src/test/java/org/apache/skywalking/apm/commons/datacarrier/LinkedArrayBenchmark.java)
- [ ] The benchmark result.
```text
<Paste the benchmark results here>
```
- [ ] Links/URLs to the theory proof or discussion articles/blogs. <links/URLs here>
==== π Remove this line WHEN AND ONLY WHEN you're improving the performance, follow the checklist π ==== -->
### <Feature description>
- [ ] If this is non-trivial feature, paste the links/URLs to the design doc.
- [ ] Update the documentation to include this new feature.
- [x ] Tests(including UT, IT, E2E) are added to verify the new feature.
- [ ] If it's UI related, attach the screenshots below.
- [ ] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #<issue number>.
- [ ] Update the [`CHANGES` log](https://github.com/apache/skywalking/blob/master/docs/en/changes/changes.md).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] mahmoud-anwer commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
mahmoud-anwer commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1344450435
> > @yswdqz it's better you change your codes through your own PR and sync to here.
>
> Because the `fluent-bit.lua` of this PR is based on mine, so I changed these two codes together.
Yes, I have just edited it to work with `MariaDB` :smile: in addition to the `fluentbit` parser.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng merged pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng merged PR #10115:
URL: https://github.com/apache/skywalking/pull/10115
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1340821163
MariaDB e2e doesn't pass. Please recheck.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1345538381
This would show at here
<img width="1705" alt="image" src="https://user-images.githubusercontent.com/5441976/206902816-56f6b123-ed39-4a36-bcd5-2a64e64bd8f0.png">
We could leave MySQL dashboards without any change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1045099450
##########
test/e2e-v2/cases/mariadb/mariadb-slowsql/docker-compose.yaml:
##########
@@ -0,0 +1,124 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+version: '2.1'
+
+services:
+ oap:
+ extends:
+ file: ../../../script/docker-compose/base-compose.yml
+ service: oap
+ image: ghcr.io/apache/skywalking/oap:bcd9f7a56b99ca612711ed3a540bdae5f46e9171
Review Comment:
I think I have stabled the TTL tests. They don't block this PR for now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1345435579
<img width="887" alt="image" src="https://user-images.githubusercontent.com/5441976/206883136-3d128690-dd19-4369-9af8-4cea093d6dfb.png">
Revert these three commits, then this PR should be good. You should submit a pull request to https://github.com/apache/skywalking-booster-ui from your UI fork repository
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1339410194
Add this test into e2e testing control file like this
https://github.com/apache/skywalking/blob/6efaa6f9bcca524b4b256ff1128cae87d76b6739/.github/workflows/skywalking.yaml#L600-L601
Docs should be updated to add MariaDB supported words, https://github.com/apache/skywalking/blob/master/docs/en/setup/backend/backend-mysql-monitoring.md
Changelog should be updated as well, https://github.com/apache/skywalking/blob/master/docs/en/changes/changes.md
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] yswdqz commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
yswdqz commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1339543075
> @wu-sheng Please notice that I didn't create dashboard for `MariaDB` database and I am using `MySQL` database dashboard to receive the data from `MariaDB`.
>
> In other words, I am receiving aborted connections data of `MariaDB` at metric called `meter_mysql_connects_aborted`
>
> I think I have to create a dashboard for `MariaDB` with its metrics before updating docs to be able to rename metrics correctly to be like this `meter_mariadb_connects_aborted`.
I think you don't need these.
In fact MariaDB is just a kind of MySQL, we can reuse the MySQL dashboard.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1339572302
> In other words, I am receiving aborted connections data of MariaDB at metric called meter_mysql_connects_aborted
> I think I have to create a dashboard for MariaDB with its metrics before updating docs to be able to rename metrics correctly to be like this meter_mariadb_connects_aborted.
This metric exists in MySQL MAL script and dashboard AFAIK. So besides testing, what is really changed? New fluent-bit, new otel configuration, or both?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1344460984
Could you merge the doc into backend-mysql-monitoring.md as there should be little different?
Because
1. They are similar, so, one doc is easier to maintain.
2. We only have one link from dashboard. We don't have chosen one, and confused the other group of ppl.
Notice, menu.yam should be updated according, to (MySQL/MariaDB server).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] yswdqz commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
yswdqz commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1343062747
The commit above is about :
I have found that the fluent-bit.lua code I wrote previously is not elegant (I was not familiar with the Lua syntax at that time), so I would like to take this opportunity to optimize these two codes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] mahmoud-anwer commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
mahmoud-anwer commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1045200597
##########
.gitignore:
##########
@@ -21,4 +21,4 @@ oap-server/oal-grammar/**/gen/
# This serves as a template but will ONLY be updated when building a source release tar,
# so we don't track future updates of this file.
-oap-server/server-starter/src/main/resources/version.properties
+oap-server/server-starter/src/main/resources/version.properties
Review Comment:
Maybe it was a mistake. @wankai123 asked to rollback it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] yswdqz commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
yswdqz commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1339669960
> If they are the same, then only the mysql and fluent-bit configuration files need to be changed(docker-compose.yaml 's mysql image also need to change to mariadb)
I have tested them, they are the same.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1345538170
In final review, one more place should be updated
https://github.com/apache/skywalking/blob/6ec721e9331c99d5e351b37fa3de33a2107aaf11/oap-server/server-starter/src/main/resources/ui-initialized-templates/mysql/mysql-root.json#L49
Should be `Provide MySQL and MariaDB Server monitoring through OpenTelemetry's Prometheus Receiver`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1344990239
Notice, MySQL menu on the UI should be updated to `MySQL / MariaDB`, as well as i18n files.
https://github.com/apache/skywalking-booster-ui/search?q=mysql
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1041160863
##########
test/e2e-v2/cases/mariadb/mariadb-slowsql/docker-compose.yaml:
##########
@@ -0,0 +1,140 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+version: '2.1'
+
+services:
+ ui:
+ extends:
+ file: ../../../script/docker-compose/base-compose.yml
+ service: ui
+ image: apache/skywalking-ui:9.2.0
+ networks:
+ - e2e
+ ports:
+ - "80:8080"
+ oap:
+ extends:
+ file: ../../../script/docker-compose/base-compose.yml
+ service: oap
+ image: ghcr.io/apache/skywalking/oap:bcd9f7a56b99ca612711ed3a540bdae5f46e9171
+ ports:
+ - 12800
+ entrypoint: ['sh', '-c', '/download-mysql.sh /skywalking/oap-libs && chmod 777 /skywalking/docker-entrypoint.sh && /skywalking/docker-entrypoint.sh']
+ networks:
+ - e2e
+ environment:
+ - TZ=Asia/Shanghai
+ - SW_STORAGE=mysql
Review Comment:
I think for e2e, H2 is good enough, we don't need mysql as storage.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1339574947
@yswdqz Could you confirm what is the difference?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1045029309
##########
docs/en/changes/changes.md:
##########
@@ -31,11 +31,16 @@
* Rename MAL rule `spring-sleuth.yaml` to `spring-micrometer.yaml`.
* Fix memory leak in Zipkin API.
+#### OAP-Backend
+
+* Support monitoring MariaDB.
+
#### UI
#### Documentation
* Remove Spring Sleuth docs, and add `Spring MicroMeter Observations Analysis` with the latest Java agent side
enhancement.
+* Update [monitoring MySQL document](docs/en/setup/backend/backend-mysql-monitoring.md).
Review Comment:
```suggestion
* Update `monitoring MySQL document` to add the `MariaDB` part.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1045201822
##########
.gitignore:
##########
@@ -21,4 +21,4 @@ oap-server/oal-grammar/**/gen/
# This serves as a template but will ONLY be updated when building a source release tar,
# so we don't track future updates of this file.
-oap-server/server-starter/src/main/resources/version.properties
+oap-server/server-starter/src/main/resources/version.properties
Review Comment:
I saw that, but this is still shown as changed in the GitHub changes page.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] mahmoud-anwer commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
mahmoud-anwer commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1339539521
@wu-sheng Please notice that I didn't create dashboard for `MariaDB` database and I am using `MySQL` database dashboard to receive the data from `MariaDB`.
In other words, I am receiving aborted connections data of `MariaDB` at metric called `meter_mysql_connects_aborted`
I think I have to create a dashboard for `MariaDB` with its metrics before updating docs to be able to rename metrics correctly to be like this `meter_mariadb_connects_aborted`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] yswdqz commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
yswdqz commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1340909545
@mahmoud-anwer It seems that `meter_mysql_connects_aborted` is always 0, maybe you can fix it with a bad password login.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1343561914
> The commit above is about :
>
> I have found that the fluent-bit.lua code I wrote previously is not elegant (I was not familiar with the Lua syntax at that time), so I would like to take this opportunity to optimize these two codes.
@yswdqz it's better you change your codes through your own PR and sync to here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1345410293
Or, sync sub module could be done by us. Just make sure you submitted that PR, and this PR is ready(doc fixed is enough).
Please revert recent commits.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] yswdqz commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
yswdqz commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1345518988
@mahmoud-anwer The instance name of mariadb-case.yaml should change because of the change in otel-collector-config.yaml.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] yswdqz commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
yswdqz commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1342133706
> @yswdqz Could you guide to remove MySQL server in the docker dependencies? I think h2 is enough for this testing, including MySQL monitoring.
Yes, but I think we can wait for E2E to pass first.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1345510767
MariaDB case failed once, I just rerun it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1345410118
You don't need to change sub module in this PR. You should submit pull request to booster repo, after it is merged, you could submit commit ID only here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] yswdqz commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
yswdqz commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1339585683
> @yswdqz Could you confirm what is the difference?
I'm not quite sure if mysqld_exporter export mariadb metrics is the same as mysql (I think it should be the same, I will test it tomorrow)
If they are the same, then only the mysql and fluent-bit configuration files need to be changed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] yswdqz commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
yswdqz commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1339600698
Sorry, I accidentally edited answer.
for `mysql`, it refer MySQL server, just `my.cnf`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] mahmoud-anwer commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
mahmoud-anwer commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1339628368
> This metric exists in MySQL MAL script and dashboard AFAIK. So besides testing, what is really changed? New fluent-bit, new otel configuration, or both?
Yes, new `fluentbit` and if we are going to use MySQL database dashboard, `otel-collector` will not change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1045076622
##########
test/e2e-v2/cases/mariadb/mariadb-slowsql/docker-compose.yaml:
##########
@@ -0,0 +1,124 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+version: '2.1'
+
+services:
+ oap:
+ extends:
+ file: ../../../script/docker-compose/base-compose.yml
+ service: oap
+ image: ghcr.io/apache/skywalking/oap:bcd9f7a56b99ca612711ed3a540bdae5f46e9171
Review Comment:
OAP should be latest build, rather than an old commit ID.
@yswdqz Does your test have similar case?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] yswdqz commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
yswdqz commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1045082465
##########
test/e2e-v2/cases/mariadb/mariadb-slowsql/docker-compose.yaml:
##########
@@ -0,0 +1,124 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+version: '2.1'
+
+services:
+ oap:
+ extends:
+ file: ../../../script/docker-compose/base-compose.yml
+ service: oap
+ image: ghcr.io/apache/skywalking/oap:bcd9f7a56b99ca612711ed3a540bdae5f46e9171
Review Comment:
I get it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] mahmoud-anwer commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
mahmoud-anwer commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1345384173
Okay, I have forked `skywalking-ui` repo and created new branch called `mariadb-ui` and edited the required files but I think I am missing something about connecting it with `mariadb` branch on `skywalking` repo.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1339593684
> If they are the same, then only the mysql and fluent-bit configuration files need to be changed(docker-compose.yaml 's mysql image also need to change to mariadb)
What do you mean `mysql`? The MySQL server in e2e deployment?
___
If there is only a little changed, we should consider updating UI menu to `MySQL / MariaDB`, and also update the documents and words to show how to set up MySQL and MariaDB at the same time.
This should be not hard.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1041139689
##########
.gitignore:
##########
@@ -22,3 +22,4 @@ oap-server/oal-grammar/**/gen/
# This serves as a template but will ONLY be updated when building a source release tar,
# so we don't track future updates of this file.
oap-server/server-starter/src/main/resources/version.properties
+test/e2e-v2/cases/mariadb/mariadb-slowsql/log/
Review Comment:
This is an unexpected change.
```suggestion
```
I think the logs should not be generated in local disk.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1340189112
Then, let's start to update menu name on UI, then upgrade docs to guide users to set up for MySQL and MariaDB with different configuration(fluentbit and any others)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] yswdqz commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
yswdqz commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1343736762
> @yswdqz it's better you change your codes through your own PR and sync to here.
Because the `fluent-bit.lua` of this PR is based on mine, so I changed these two codes together.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1345184885
@wankai123 @kezhenxu94 The TTL tests suddenly fail. This PR seems didn't change anything relative.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1342126342
@yswdqz Could you guide to remove MySQL server in the docker dependencies? I think h2 is enough for this testing, including MySQL monitoring.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1345517712
Somehow, e2e fails.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1345551069
Merged. @mahmoud-anwer Thank you for your patience.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wankai123 commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wankai123 commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1045202118
##########
.gitignore:
##########
@@ -21,4 +21,4 @@ oap-server/oal-grammar/**/gen/
# This serves as a template but will ONLY be updated when building a source release tar,
# so we don't track future updates of this file.
-oap-server/server-starter/src/main/resources/version.properties
+oap-server/server-starter/src/main/resources/version.properties
Review Comment:
I think it's caused by IDEβs setting:
<img width="812" alt="image" src="https://user-images.githubusercontent.com/16773043/206896708-ef6dae2e-35a9-42bf-9f01-61045628e268.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1045199525
##########
.gitignore:
##########
@@ -21,4 +21,4 @@ oap-server/oal-grammar/**/gen/
# This serves as a template but will ONLY be updated when building a source release tar,
# so we don't track future updates of this file.
-oap-server/server-starter/src/main/resources/version.properties
+oap-server/server-starter/src/main/resources/version.properties
Review Comment:
Is this changed due to a different OS?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wankai123 commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wankai123 commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1045067817
##########
test/e2e-v2/cases/mariadb/mariadb-slowsql/docker-compose.yaml:
##########
@@ -0,0 +1,124 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+version: '2.1'
+
+services:
+ oap:
+ extends:
+ file: ../../../script/docker-compose/base-compose.yml
+ service: oap
+ image: ghcr.io/apache/skywalking/oap:bcd9f7a56b99ca612711ed3a540bdae5f46e9171
Review Comment:
```suggestion
```
The oap image version should be controled in `base-compose`
##########
test/e2e-v2/cases/mariadb/mariadb-slowsql/docker-compose.yaml:
##########
@@ -0,0 +1,124 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+version: '2.1'
+
+services:
+ oap:
+ extends:
+ file: ../../../script/docker-compose/base-compose.yml
+ service: oap
+ image: ghcr.io/apache/skywalking/oap:bcd9f7a56b99ca612711ed3a540bdae5f46e9171
+ ports:
+ - 12800
+ entrypoint: ['sh', '-c', '/download-mysql.sh /skywalking/oap-libs && chmod 777 /skywalking/docker-entrypoint.sh && /skywalking/docker-entrypoint.sh']
+ networks:
+ - e2e
+ environment:
+ - TZ=Asia/Shanghai
Review Comment:
```suggestion
```
I think it's not belong to OAP
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] yswdqz commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
yswdqz commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1045082280
##########
test/e2e-v2/cases/mariadb/mariadb-slowsql/docker-compose.yaml:
##########
@@ -0,0 +1,124 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+version: '2.1'
+
+services:
+ oap:
+ extends:
+ file: ../../../script/docker-compose/base-compose.yml
+ service: oap
+ image: ghcr.io/apache/skywalking/oap:bcd9f7a56b99ca612711ed3a540bdae5f46e9171
Review Comment:
> OAP should be latest build, rather than an old commit ID.
> @yswdqz Does your test have similar case?
Yes, I think it should be latest build. `Image` should be removed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1045082409
##########
test/e2e-v2/cases/mariadb/mariadb-slowsql/docker-compose.yaml:
##########
@@ -0,0 +1,124 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+version: '2.1'
+
+services:
+ oap:
+ extends:
+ file: ../../../script/docker-compose/base-compose.yml
+ service: oap
+ image: ghcr.io/apache/skywalking/oap:bcd9f7a56b99ca612711ed3a540bdae5f46e9171
Review Comment:
TTL cases have all down. @yswdqz I don't know why. Could you recheck on the master branch as well?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wankai123 commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wankai123 commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1045083577
##########
.gitignore:
##########
@@ -21,4 +21,4 @@ oap-server/oal-grammar/**/gen/
# This serves as a template but will ONLY be updated when building a source release tar,
# so we don't track future updates of this file.
-oap-server/server-starter/src/main/resources/version.properties
+oap-server/server-starter/src/main/resources/version.properties
Review Comment:
Please rollback this file. No need change
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1343762627
I think the tests are passed. We need to upgrade words on UI menu and documents
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1044911669
##########
docs/en/setup/backend/backend-mysql-monitoring.md:
##########
@@ -13,9 +13,9 @@ SkyWalking leverages prometheus/mysqld_exporter for collecting metrics data. It
2. Set up [OpenTelemetry Collector ](https://opentelemetry.io/docs/collector/getting-started/#docker). For details on Prometheus Receiver in OpenTelemetry Collector, refer to [here](../../../../test/e2e-v2/cases/mysql/prometheus-mysql-exporter/otel-collector-config.yaml).
3. Config SkyWalking [OpenTelemetry receiver](opentelemetry-receiver.md).
-### MySQL Monitoring
-MySQL monitoring provides monitoring of the status and resources of the MySQL server. MySQL cluster is cataloged as a `Layer: MYSQL` `Service` in OAP.
-Each MySQL server is cataloged as an `Instance` in OAP.
+### MySQL/MariaDB Monitoring
+MySQL/MariaDB monitoring provides monitoring of the status and resources of the MySQL/MariaDB server. MySQL/MariaDB cluster is cataloged as a `Layer: MYSQL` `Service` in OAP.
+Each MySQL/MariaDB server is cataloged as an `Instance` in OAP.
Review Comment:
In the slow SQL part,
>Config MySQL to enable slow log.example.
You should update MariaDB part, and link to your e2e example.
##########
test/e2e-v2/cases/mariadb/mariadb-slowsql/docker-compose.yaml:
##########
@@ -0,0 +1,124 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+version: '2.1'
+
+services:
+ oap:
+ extends:
+ file: ../../../script/docker-compose/base-compose.yml
+ service: oap
+ image: ghcr.io/apache/skywalking/oap:bcd9f7a56b99ca612711ed3a540bdae5f46e9171
+ ports:
+ - 12800
+ entrypoint: ['sh', '-c', '/download-mysql.sh /skywalking/oap-libs && chmod 777 /skywalking/docker-entrypoint.sh && /skywalking/docker-entrypoint.sh']
+ networks:
+ - e2e
+ environment:
+ - TZ=Asia/Shanghai
+ - SW_CORE_TOPN_REPORT_PERIOD=1
+ - SW_OTEL_RECEIVER=default
+
+ mariadb:
+ image: mariadb:10.7.3
+ networks:
+ - e2e
+ volumes:
+ - ../mariadb-slowsql/log:/var/lib/mysql
+ - ../mariadb-slowsql/my.cnf:/etc/mysql/my.cnf
+ environment:
+ - "MYSQL_ROOT_PASSWORD=password"
+ healthcheck:
+ test: "/usr/bin/mysql --user=root --password=password --execute \"SHOW DATABASES;\""
+ interval: 5s
+ timeout: 60s
+ retries: 120
+
+ mysql-load:
Review Comment:
There are several mysql as prefix of the service names in docker compose, consider renaming them to MariaDB?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on a diff in pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on code in PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#discussion_r1044930855
##########
docs/en/changes/changes.md:
##########
@@ -31,11 +31,16 @@
* Rename MAL rule `spring-sleuth.yaml` to `spring-micrometer.yaml`.
* Fix memory leak in Zipkin API.
+#### OAP-Backend
+
+* Support monitoring MariaDB.
+
#### UI
#### Documentation
* Remove Spring Sleuth docs, and add `Spring MicroMeter Observations Analysis` with the latest Java agent side
enhancement.
+* Update [monitoring MySQL document](docs/en/setup/backend/backend-mysql-monitoring.md).
Review Comment:
This is a dead link. Use the relative path from this file. Or remove the link.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] yswdqz commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
yswdqz commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1341961609
@mahmoud-anwer `mysql -h mariadb -uroot -pwrong-password && mysql -h mariadb -uroot -ppassword < /docker/mock.sql`
seems not work. Maybe you need add a service to execute a wrong-password login.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] mahmoud-anwer commented on pull request #10115: Support monitoring mariadb
Posted by GitBox <gi...@apache.org>.
mahmoud-anwer commented on PR #10115:
URL: https://github.com/apache/skywalking/pull/10115#issuecomment-1345519374
> @mahmoud-anwer The instance name of mariadb-case.yaml should change because of the change in otel-collector-config.yaml.
I got it, I am going to edit it now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org