Skip to content

Grafana visualization: number of running containers includes ingress container #20

@sfc-gh-vtimofeenko

Description

@sfc-gh-vtimofeenko

Problem statement

The default grafana template shows 2 containers running when only 1 is specified in the service spec:

image

SHOW SERVICE CONTAINERS output
❯ snow sql --query "SHOW SERVICE CONTAINERS IN SERVICE SPCS_NETWORK_HANDS_ON_DB.PUBLIC.SERVICE_B" --format=json | jq length
1

This happens because of the ingress sidecar container is included in the query

image

Potential solutions

  1. Add a help note to the "Number of Running Containers" that mentions the ingress container

    Pros:

    • Explains the discrepancy of container count
      Cons:
    • A bit hard to see for the user
  2. Explicitly remove snowflake-ingress from the query (, snow_containers_container_name!="snowflake-ingress"})

    Pros:

    • Shows expected number of containers from the get-go
      Cons:
    • Relies on snowflake-ingress container name staying the same, may be brittle in the long run
  3. Remove the snowflake-ingress from the query and add a help note. Seems to be the best of both approaches: fewer surprises and enough data for the admin to make a decision.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions