Gil
04/01/2025, 2:35 PMclickhouse-client -q "CREATE USER signoz IDENTIFIED BY 'signoz';"
clickhouse-client -q "GRANT ALL ON signoz_traces.* TO signoz;"
clickhouse-client -q "GRANT ALL ON signoz_logs.* TO signoz;"
clickhouse-client -q "GRANT ALL ON signoz_metrics.* TO signoz;"
clickhouse-client -q "CREATE DATABASE IF NOT EXISTS signoz_traces;"
clickhouse-client -q "CREATE DATABASE IF NOT EXISTS signoz_logs;"
clickhouse-client -q "CREATE DATABASE IF NOT EXISTS signoz_metrics;"
clickhouse-client --user signoz --password signoz
Connection ok
FOr SigNoz itself, once installed (following the documentation)
sudo bash -c 'cat <<EOF > /opt/signoz/conf/systemd.env
SIGNOZ_INSTRUMENTATION_LOGS_LEVEL=info
INVITE_EMAIL_TEMPLATE=/opt/signoz/templates/invitation_email_template.html
SIGNOZ_SQLSTORE_SQLITE_PATH=/var/lib/signoz/signoz.db
SIGNOZ_WEB_ENABLED=true
SIGNOZ_WEB_DIRECTORY=/opt/signoz/web
SIGNOZ_JWT_SECRET=secret
SIGNOZ_ALERTMANAGER_PROVIDER=signoz
SIGNOZ_TELEMETRYSTORE_PROVIDER=clickhouse
SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN=<tcp://localhost:9000?password=signoz>
EOF'
sudo getent passwd signoz >/dev/null || sudo useradd --system --home /opt/signoz --no-create-home --user-group --shell /sbin/nologin signoz
sudo chown -R signoz:signoz /var/lib/signoz
sudo chown -R signoz:signoz /opt/signoz
sudo bash -c 'cat <<EOF > /etc/systemd/system/signoz.service
[Unit]
Description=SigNoz
Documentation=<https://signoz.io/docs>
After=clickhouse-server.service
[Service]
User=signoz
Group=signoz
Type=simple
KillMode=mixed
Restart=on-failure
WorkingDirectory=/opt/signoz
EnvironmentFile=/opt/signoz/conf/systemd.env
ExecStart=/opt/signoz/bin/signoz --config=/opt/signoz/conf/prometheus.yml --use-logs-new-schema=true --use-trace-new-schema=true
[Install]
WantedBy=multi-user.target
EOF'
I have copy pasted on the dashboard the template for hostmetrics but I got.
code: 516, message: default: Authentication failed: password is incorrect, or there is no user with such name. If you use ClickHouse Cloud, the password can be reset at <https://clickhouse.cloud/> on the settings page for the corresponding service. If you have installed ClickHouse and forgot password you can reset it in the configuration file. The password for default user is typically located at /etc/clickhouse-server/users.d/default-password.xml and deleting this file will reset the password. See also /etc/clickhouse-server/users.xml on the server where ClickHouse is installed.
I may made a typo somewhere, but I think i have followed the how-to.
ANy idea here ?Vibhu Pandey
04/01/2025, 2:57 PMGil
04/02/2025, 7:22 AMGil
04/02/2025, 8:10 AMSHOW TABLES FROM signoz_metrics;
that I have nothing in it.
My otelcol maybe not well configuredVibhu Pandey
04/02/2025, 8:10 AMGil
04/02/2025, 8:13 AMGil
04/02/2025, 1:12 PM./schema-migrator sync --dsn="<tcp://localhost:9000?username=signoz&password=signoz>"
{"L":"info","timestamp":"2025-04-02T15:12:05.966+0200","C":"signozschemamigrator/main.go:91","M":"Running migrations in sync mode","dsn":"<tcp://localhost:9000?username=signoz&password=signoz>","replication":f
alse,"cluster-name":"cluster"}
{"L":"info","timestamp":"2025-04-02T15:12:05.966+0200","C":"signozschemamigrator/main.go:104","M":"Up migrations","versions":[]}
{"L":"info","timestamp":"2025-04-02T15:12:05.966+0200","C":"signozschemamigrator/main.go:117","M":"Down migrations","versions":[]}
{"L":"info","timestamp":"2025-04-02T15:12:05.966+0200","C":"signozschemamigrator/main.go:127","M":"Parsed DSN","optsError":"json: unsupported type: func(context.Context, string) (net.Conn, error)"}
{"L":"info","timestamp":"2025-04-02T15:12:05.967+0200","C":"signozschemamigrator/main.go:133","M":"Opened connection"}
Error: failed to bootstrap migrations: failed to create dbs
failed to create dbs
code: 701, message: Requested cluster 'cluster' not found
Usage:
signoz-schema-migrator sync [flags]
Flags:
--down string Down migrations to run, comma separated. Must provide down migrations explicitly to run
-h, --help help for sync
--up string Up migrations to run, comma separated. Leave empty to run all up migrations
Global Flags:
--cluster-name string Cluster name to use while running migrations (default "cluster")
--dev Development mode
--dsn string Clickhouse DSN
--replication Enable replication
Cluster not foundVibhu Pandey
04/02/2025, 2:03 PMGil
04/04/2025, 7:19 AMVibhu Pandey
04/04/2025, 7:20 AMcluster.xml
file creates the cluster to talk to.Gil
04/04/2025, 7:32 AMVibhu Pandey
04/04/2025, 8:07 AMGil
04/04/2025, 8:23 AMVibhu Pandey
04/04/2025, 8:32 AMGil
04/04/2025, 8:40 AMVibhu Pandey
04/04/2025, 8:41 AMGil
04/04/2025, 8:41 AMVibhu Pandey
04/04/2025, 8:42 AMGil
04/04/2025, 8:42 AMGil
04/04/2025, 8:56 AMVibhu Pandey
04/04/2025, 8:56 AMVibhu Pandey
04/04/2025, 8:58 AMGil
04/04/2025, 9:00 AMGil
04/04/2025, 9:01 AMVibhu Pandey
04/04/2025, 9:02 AMVibhu Pandey
04/04/2025, 9:03 AMGil
04/04/2025, 9:31 AMVibhu Pandey
04/04/2025, 9:31 AMGil
04/04/2025, 9:40 AMGil
04/04/2025, 9:48 AMVibhu Pandey
04/04/2025, 10:06 AMGil
04/04/2025, 10:10 AM-- Subject: Unit failed
-- Defined-By: systemd
-- Support: <https://access.redhat.com/support>
--
-- The unit zookeeper.service has entered the 'failed' state with result 'exit-code'.
Apr 04 12:03:46 FRPAR3DXSBOX systemd[1]: Failed to start Zookeeper.
-- Subject: Unit zookeeper.service has failed
-- Defined-By: systemd
-- Support: <https://access.redhat.com/support>
--
-- Unit zookeeper.service has failed.
--
-- The result is failed.
Apr 04 12:03:46 FRPAR3DXSBOX systemd[1]: zookeeper.service: Service RestartSec=100ms expired, scheduling restart.
Apr 04 12:03:46 FRPAR3DXSBOX systemd[1]: zookeeper.service: Scheduled restart job, restart counter is at 5.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: <https://access.redhat.com/support>
--
-- Automatic restarting of the unit zookeeper.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Apr 04 12:03:46 FRPAR3DXSBOX systemd[1]: Stopped Zookeeper.
-- Subject: Unit zookeeper.service has finished shutting down
-- Defined-By: systemd
-- Support: <https://access.redhat.com/support>
--
-- Unit zookeeper.service has finished shutting down.
Apr 04 12:03:46 FRPAR3DXSBOX systemd[1]: zookeeper.service: Start request repeated too quickly.
Apr 04 12:03:46 FRPAR3DXSBOX systemd[1]: zookeeper.service: Failed with result 'exit-code'.
Vibhu Pandey
04/04/2025, 10:11 AMGil
04/04/2025, 10:12 AMVibhu Pandey
04/04/2025, 10:13 AMZooKeeper runs in Java, release 1.8 or greater (JDK 8 LTS, JDK 11 LTS, JDK 12
Vibhu Pandey
04/04/2025, 10:13 AMJava 9 and 10 are not supported
Gil
04/04/2025, 10:14 AMGil
04/04/2025, 11:52 AMGil
04/04/2025, 11:55 AMGil
04/04/2025, 11:56 AM./signoz-schema-migrator_linux_amd64/bin/signoz-schema-migrator: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./signoz-schema-migrator_linux_amd64/bin/signoz-schema-migrator)
./signoz-schema-migrator_linux_amd64/bin/signoz-schema-migrator: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by ./signoz-schema-migrator_linux_amd64/bin/signoz-schema-migrator)
I think I need to build the binaries myselfGil
04/04/2025, 12:01 PMGil
04/04/2025, 12:06 PMGil
04/04/2025, 12:36 PMclickhouse-client -q "GRANT CLUSTER ON *.* TO signoz;"
clickhouse-client -q "GRANT CREATE DATABASE ON signoz_metadata.* TO signoz;"
clickhouse-client -q "GRANT CREATE DATABASE ON signoz_analytics.* TO signoz;"
clickhouse-client -q "GRANT SELECT(host_address, port, cluster) ON system.clusters TO signoz;"
clickhouse-client -q "GRANT SELECT(entry, cluster, query, host, port, status, exception_code) ON system.distributed_ddl_queue TO signoz;"
And I'm not finish. Is there a simple "ADMIN" role that I can give to my signoz user ?Gil
04/07/2025, 7:25 AM