Skip to content

Unable to fetch docker container metrics #116

Description

@Siscos06

I'm trying to set up SigNoz to monitor my home server docker containers. I managed to deploy SigNoz in a docker environment using this guide.
However, when I pulled it, I got the exited - code 0 for otel-migrator-async and error - code 1 for otel-migrator-sync in Portainer. I don't know if this is related to my problem in some kind of way.
The dashboard I'm trying to use is this one. I was able to import and use the HostMetrics Dashboard, which I guess that means that still SigNoz works.
Since I quite new in this area, I don't exactly know how I should precede. Thus, I will be very thankful if someone can help me.

The logs are:

  • otel-migrator-async:
    L=info timestamp=2024-11-20T13:41:14.855Z C=signozschemamigrator/main.go:225 M=Parsed DSN optsError=json: unsupported type: func(context.Context, string) (net.Conn, error)
    L=info timestamp=2024-11-20T13:41:14.856Z C=signozschemamigrator/main.go:231 M=Opened connection
    L=info timestamp=2024-11-20T13:41:14.856Z C=signozschemamigrator/main.go:249 M=Migrating up
    L=info timestamp=2024-11-20T13:41:14.856Z C=schema_migrator/manager.go:682 M=Running migrations up async
    L=info timestamp=2024-11-20T13:41:14.856Z C=schema_migrator/manager.go:551 M=Checking if migration should run db=signoz_metrics migration_id=1000 versions=[]
    L=info timestamp=2024-11-20T13:41:14.856Z C=schema_migrator/manager.go:568 M=Fetching migration status query=SELECT * FROM signoz_metrics.schema_migrations_v2 WHERE migration_id = 1000 SETTINGS final = 1;
    L=info timestamp=2024-11-20T13:41:14.861Z C=schema_migrator/manager.go:579 M=Migration status migration_id=1000 status=finished
    L=info timestamp=2024-11-20T14:56:34.175Z C=signozschemamigrator/main.go:189 M=Running migrations in async mode dsn=tcp://clickhouse:9000 replication=false cluster-name=cluster
    L=info timestamp=2024-11-20T14:56:34.181Z C=signozschemamigrator/main.go:202 M=Up migrations versions=[]
    L=info timestamp=2024-11-20T14:56:34.181Z C=signozschemamigrator/main.go:215 M=Down migrations versions=[]
    L=info timestamp=2024-11-20T14:56:34.181Z C=signozschemamigrator/main.go:225 M=Parsed DSN optsError=json: unsupported type: func(context.Context, string) (net.Conn, error)
    L=info timestamp=2024-11-20T14:56:34.184Z C=signozschemamigrator/main.go:231 M=Opened connection
    L=info timestamp=2024-11-20T14:56:34.184Z C=signozschemamigrator/main.go:249 M=Migrating up
    L=info timestamp=2024-11-20T14:56:34.184Z C=schema_migrator/manager.go:682 M=Running migrations up async
    L=info timestamp=2024-11-20T14:56:34.185Z C=schema_migrator/manager.go:551 M=Checking if migration should run db=signoz_metrics migration_id=1000 versions=[]
    L=info timestamp=2024-11-20T14:56:34.185Z C=schema_migrator/manager.go:568 M=Fetching migration status query=SELECT * FROM signoz_metrics.schema_migrations_v2 WHERE migration_id = 1000 SETTINGS final = 1;
    L=info timestamp=2024-11-20T14:56:34.205Z C=schema_migrator/manager.go:579 M=Migration status migration_id=1000 status=finished
  • otel-migrator-sync
    L=info timestamp=2024-11-20T14:56:34.631Z C=signozschemamigrator/main.go:127 M=Parsed DSN optsError=json: unsupported type: func(context.Context, string) (net.Conn, error)
    L=info timestamp=2024-11-20T14:56:34.631Z C=signozschemamigrator/main.go:133 M=Opened connection
    Error: failed to bootstrap migrations: failed to create dbs
    failed to create dbs
    code: 999, message: Coordination error: Connection loss, path /clickhouse/task_queue/ddl/query-
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions