-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Support ClickHouse server monitoring & Support service hierarchy #11966
Conversation
The SWIP part should be updated too. |
@mrproliu Could you check why ebpf failed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e2e seems not to be added into GHA control file?
oap-server/server-starter/src/main/resources/otel-rules/clickhouse/clickhouse-service.yaml
Outdated
Show resolved
Hide resolved
prometheus: | ||
config: | ||
scrape_configs: | ||
- job_name: 'clickhouse-monitoring' | ||
scrape_interval: 15s | ||
static_configs: | ||
- targets: ['clickhouse1:9363','clickhouse2:9363'] | ||
labels: | ||
host_name: clickhouse:8123 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By following my question, the point is, is this process making metrics from two targets in one metric report or two?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CzyerChen Could you share how the metrics from clickhouse1 and clickhouse2 would be scraped here? One metric reported per target with the same host_name, or one metric for both targets in the same time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ClickHouseMetrics_MySQLConnection -> {SampleFamily@26369}
"SampleFamily(samples=[Sample(name=ClickHouseMetrics_MySQLConnection, labels={net_host_port=9363, job_name=clickhouse-monitoring,
node_identifier_host_name=clickhouse1,
http_scheme=http,
service_instance_id=clickhouse1:9363,
host_name=clickhouse:8123},
value=0.0, timestamp=1709519785903)], context=SampleFamily.RunningContext(metricName=null, meterSamples={}, defaultHistogramBucketUnit=SECONDS))"
The OTEL will scrape and send the metrics node by node, in other words, OAP only received 1 node's metric at one time, so we can't sum the metrics from separate node's metrics.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have to make it from two targets to two hostnames. Prometheus endpoint fetches data for per node.
I will correct otel-collector-config.yaml
.
# Conflicts: # docs/en/changes/changes.md # docs/en/concepts-and-designs/service-hierarchy.md # oap-server/server-starter/src/main/resources/hierarchy-definition.yml
eb82717
to
2957524
Compare
@wankai123 PTAL |
Two empty metrics
|
Are we fetching metrics from ClickHouse Keeper Prometheus endpoint? |
My Cluster test works with Zookeeper not ClickHouse Keeper. If to test the data from ClickHouse Keeper Prometheus endpoint, we have to try a ClickHouse Keeper cluster. |
I see, then, please be clear about this in the docs if you don't intent to build this mode. |
oap-server/server-starter/src/main/resources/otel-rules/clickhouse/clickhouse-instance.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The others LGTM
Please update the SWIP according to the latest implementation and add it to the docs. |
ok |
SWIP5 needs to attach on SWIP page. |
Ok, linked. |
I mean this page should be updated, https://github.com/apache/skywalking/blob/master/docs/en/swip/readme.md. Note the next SWIP number and the following existing SWIPs. |
BTW, have you read #11992? Is this helping to polish clickhouse monitoring? Or it is good enough for now. |
It doesn't seem to be necessary on ClickHouse, where the metrics values are all singular values. The enhancement looks great for multi labels. |
Would you like to post dual-language blogs for this new feature? |
Ok. |
Feature #11904
ClickHouse root:
ClickHouse Service:
ClickHouse Instance:
Service Hierarchy:
click
CLICKHOUSE
node and jump to server monitoring dashboard.Virtual DB:
CHANGES
log.