Skip to content
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

signalfx_table_chart not showing column names correctly in dashboard view #395

Open
maulikp-splunk opened this issue Oct 19, 2022 · 0 comments

Comments

@maulikp-splunk
Copy link

maulikp-splunk commented Oct 19, 2022

Hi team,

I am using following code to generate Table chart in Splunk O11y:

terraform {
  required_providers {
    signalfx = {
      source  = "splunk-terraform/signalfx"
      version = "6.17.0"
    }
  }
  required_version = ">= 0.13"
}

provider "signalfx" {
  auth_token = "****************"
  api_url    = "https://api.us1.signalfx.com"
}

resource "signalfx_dashboard_group" "service_version" {
  name        = "Service Version"
  description = "Service Version details"
}

resource "signalfx_dashboard" "service_version_stage" {
  name            = "Service Version By Stage"
  dashboard_group = signalfx_dashboard_group.service_version.id

  chart {
    chart_id = signalfx_table_chart.service_version_stage.id
    column   = 0
    height   = 3
    row      = 0
    width    = 12
  }

}

resource "signalfx_table_chart" "service_version_stage" {
  name             = "Service Version by Stage"
  description      = "Replicate the Versions on all Services by Stage"
  disable_sampling = true
  program_text     = <<-EOF
    A = data('k8s.container.cpu_limit').sum(by=['container.image.tag', 'k8s.container.name']).publish(label='CPU Limit')
    B = data('k8s.container.memory_limit').sum(by=['container.image.tag', 'k8s.container.name']).publish(label='Memory Limit')
    C = data('k8s.container.ready').count(by=['container.image.tag', 'k8s.container.name']).publish(label='Count')
    EOF
  group_by         = ["k8s.container.name"]



}

When I view chart from dashboard, column names are showing incorrectly, although when I open a chart, column name shows up correctly. Attaching two screen shots here.
image
image

Can you please look into this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant