alan
04/25/2022, 2:15 PMRaviteja Chavali
04/25/2022, 3:27 PMalan
04/27/2022, 2:07 AM郑伟
04/27/2022, 3:47 AM郑伟
04/27/2022, 3:49 AM郑伟
04/27/2022, 3:50 AM郑伟
04/27/2022, 3:51 AMArpit
04/27/2022, 4:50 PMalan
04/28/2022, 2:22 AMC02XGC2HJG5H:Downloads ah1000259263$ k get Instrumentation -A
NAMESPACE NAME AGE ENDPOINT SAMPLER SAMPLER ARG
bdpe-dev my-instrumentation 17h <http://my-release-signoz-otel-collector:4317> parentbased_traceidratio 0.25
alan
04/28/2022, 2:22 AMC02XGC2HJG5H:Downloads ah1000259263$ k get svc -n alantest
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
clickhouse-operator-metrics ClusterIP 172.30.240.102 <none> 8888/TCP 13d
jaeger-test-agent ClusterIP 172.30.241.78 <none> 5775/UDP,6831/UDP,6832/UDP,5778/TCP,14271/TCP 9d
jaeger-test-cassandra ClusterIP None <none> 7000/TCP,7001/TCP,7199/TCP,9042/TCP,9160/TCP 9d
jaeger-test-collector ClusterIP 172.30.241.211 <none> 14250/TCP,14268/TCP,14269/TCP 9d
jaeger-test-query ClusterIP 172.30.241.46 <none> 80/TCP,16687/TCP 9d
my-release-clickhouse ClusterIP 172.30.240.62 <none> 8123/TCP,9000/TCP 13d
my-release-signoz-alertmanager ClusterIP 172.30.241.35 <none> 9093/TCP 13d
my-release-signoz-alertmanager-headless ClusterIP None <none> 9093/TCP 13d
my-release-signoz-frontend ClusterIP 172.30.241.173 <none> 3301/TCP 13d
my-release-signoz-otel-collector ClusterIP 172.30.240.254 <none> 4317/TCP,4318/TCP,55680/TCP,55681/TCP,14250/TCP,14268/TCP,9411/TCP,8888/TCP,8889/TCP 13d
my-release-signoz-otel-collector-metrics ClusterIP 172.30.241.20 <none> 4317/TCP,4318/TCP,55680/TCP,55681/TCP,14250/TCP,14268/TCP,9411/TCP,8888/TCP 13d
my-release-signoz-query-service ClusterIP 172.30.240.200 <none> 8080/TCP 13d
my-release-zookeeper ClusterIP 172.30.240.207 <none> 2181/TCP,2888/TCP,3888/TCP 13d
my-release-zookeeper-headless ClusterIP None <none> 2181/TCP,2888/TCP,3888/TCP
Monesh s
04/28/2022, 12:18 PMMonesh s
04/28/2022, 12:18 PMalan
04/29/2022, 6:08 AMalan
04/29/2022, 6:09 AM# Initialize the list
weekdays = ["Sunday", "Monday", "Tuesday","Wednesday", "Thursday","Friday", "Saturday"]
print("Seven Weekdays are:\n")
# Iterate the list using for loop
for day in range(len(weekdays)):
print(weekdays[day])
alan
04/29/2022, 6:10 AMroot@sample-django-deployment-6fd7b76ccc-694gz:/code# OTEL_RESOURCE_ATTRIBUTES=service.name=c10 OTEL_EXPORTER_OTLP_ENDPOINT="172.30.240.212:4317" opentelemetry-instrument --traces_exporter otlp_proto_http python c10.py
Seven Weekdays are:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
root@sample-django-deployment-6fd7b76ccc-694gz:/code# OTEL_RESOURCE_ATTRIBUTES=service.name=c10 OTEL_EXPORTER_OTLP_ENDPOINT="my-release-signoz-otel-collector-metrics.edgetestteam-dev.svc.cluster.local:4317" opentelemetry-instrument --traces_exporter otlp_proto_http python c10.py
Seven Weekdays are:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
root@sample-django-deployment-6fd7b76ccc-694gz:/code# telnet my-release-signoz-otel-collector-metrics 4317
Trying 172.30.240.28...
Connected to my-release-signoz-otel-collector-metrics.edgetestteam-dev.svc.cluster.local.
Escape character is '^]'.
@^C^C^C^C^CConnection closed by foreign host.
root@sample-django-deployment-6fd7b76ccc-694gz:/code# ^C
alan
04/29/2022, 6:10 AMAtul Jain
05/01/2022, 11:26 AMMonesh s
05/02/2022, 11:09 AMMonesh s
05/02/2022, 11:10 AMPranay
Hercules Gabriel da Silva e Mazucato
05/02/2022, 1:27 PMZishan Shaikh
05/02/2022, 6:53 PMMichael Slavitch
05/02/2022, 9:51 PMalan
05/03/2022, 1:12 AMHercules Gabriel da Silva e Mazucato
05/03/2022, 2:00 PM2. Connect to clickhouse instance in SigNoz
We see that the document indicate us to connect on port 9001 of SigNoz IP but when I try to run it on lab environment I got this:Copy code./clickhouse client --host <SigNoz IP> --port 9001
[root@localhost /]# clickhouse client --host localhost --port 9001
ClickHouse client version 22.4.4.7 (official build).
Connecting to 127.0.0.1:9001 as user default.
Code: 210. DB:NetException Connection refused (172.18.0.3:9001). (NETWORK_ERROR)As per my Docker environment I have this IP address to my ClickHouse server:
[root@localhost /]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c683e0184777 yandex/clickhouse-server:21.12.3.32 "/entrypoint.sh" 13 hours ago Up 43 minutes (healthy) 8123/tcp, 9000/tcp, 9009/tcp clickhouse-setup-clickhouse-1
[root@localhost /]# docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' c683e0184777
172.18.0.3Checking the ClickHouse server config file I see below reference for ports:
<http_port>8123</http_port>
<tcp_port>9000</tcp_port>
<interserver_http_port>9009</interserver_http_port>Which seems to match the ports seen on docker ps above. When I run the connection command with container IP and port 9000 the connection is successfull:
[root@localhost /]# clickhouse client --host 172.18.0.3 --port 9000
ClickHouse client version 22.4.4.7 (official build).
Connecting to 172.18.0.3:9000 as user default.
Connected to ClickHouse server version 21.12.3 revision 54452.This is a documentation inconsistency or a particularity on my lab environment? If so, should I update the documentation to guide user to follow my steps? Many thanks!
Parameswaran Thangaraj
05/04/2022, 8:12 AMMichael Slavitch
05/04/2022, 6:37 PMreceivers:
otlp:
protocols:
grpc:
http:
hostmetrics:
collection_interval: 1m
scrapers:
cpu:
disk:
load:
filesystem:
memory:
network:
paging:
processes:
prometheus:
config:
global:
scrape_interval: 10s
scrape_configs:
- job_name: otel-collector
static_configs:
- targets: ['localhost:8888']
processors:
batch:
send_batch_size: 30000
timeout: 30s
# Ref: <https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/resourcedetectionprocessor/README.md>
resourcedetection:
detectors: [env, system] # include ec2 for AWS, gce for GCP and azure for Azure.
# Using OTEL_RESOURCE_ATTRIBUTES envvar, env detector adds custom labels.
timeout: 2s
override: false
system:
hostname_sources: [os] # alternatively, use [dns,os] for setting FQDN as host.name and os as fallback
extensions:
health_check: {}
zpages: {}
exporters:
otlp:
endpoint: "redacted:4317"
tls:
insecure: true
logging:
logLevel: debug
service:
extensions: [health_check, zpages]
pipelines:
metrics:
receivers: [otlp, hostmetrics]
processors: [resourcedetection, batch]
exporters: [otlp]
metrics/prometheusexporter:
receivers: [prometheus]
processors: [resourcedetection, batch]
exporters: [otlp]
It says it's processing data but I don't see anything on the other end.Michael Slavitch
05/04/2022, 8:26 PMMichael Slavitch
05/04/2022, 10:25 PMalert: Host Down
expr: up{job="otel-collector"} == 0
for: 0s
labels:
severity: critical
summary: HOST DOWN
description: "HOST DOWN
VALUE = {{ $value }}
LABELS = {{ $labels }}"
It doesn't work with SigNozMichael Slavitch
05/04/2022, 10:25 PM