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

Failed to convert extracted value to float64 #310

Open
miqueet opened this issue Jun 20, 2024 · 0 comments
Open

Failed to convert extracted value to float64 #310

miqueet opened this issue Jun 20, 2024 · 0 comments

Comments

@miqueet
Copy link

miqueet commented Jun 20, 2024

I am having the hardest time to just convert some simple json to a Prometheus accepted format. I believe i got through the json path error. but now i am having an issue with the

modules:
  grafana_alerts:
    http_client_config:
      authorization:
        type: Bearer
        credentials: BEARER_TOKEN
    metrics:
      - name: grafana_alerts_names
        path: "{ [*] }"
        labels:
          alertname: "{.labels.alertname}"
          instance: "{.labels.instance}"
          job: "{.labels.job}"
          state: "{.labels.state}"
          team: "{.labels.team}"
          type: "{.labels.type}"
          summary: "{.annotations.summary}"
        values:
          startsAt: "{.startsAt | to_time}"
          endsAt: "{.endsAt | to_time}"
          updatedAt: "{.updatedAt | to_time}"

this is an example of my data. I dont understand why this is failing.

[
  {
    "annotations": {
      "__orgId__": "1",
      "__value_string__": "[ var='A' labels={__name__=systemd_unit_state, instance=js303p.contoso.com, job=cnJsProd, name=lst-stdsumer.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=js303p.contoso.com, job=cnJsProd, name=lst-stdsumer.service, state=active, type=service} value=1 ]",
      "__values__": "{\"A\":0,\"B\":1}",
      "description": "lst-stdsumer.service is down on js303p.contoso.com\n",
      "summary": "Service is down!\n"
    },
    "endsAt": "2024-06-20T12:10:50.000-04:00",
    "fingerprint": "0632146b88ffcd3b",
    "receivers": [
      {
        "active": null,
        "integrations": null,
        "name": "Ops"
      }
    ],
    "startsAt": "2024-06-14T15:00:50.000-04:00",
    "status": {
      "inhibitedBy": [],
      "silencedBy": [
        "be5935cd-c92e-4f8f-a67d-4f695c28107c"
      ],
      "state": "suppressed"
    },
    "updatedAt": "2024-06-20T12:06:53.450-04:00",
    "generatorURL": "https://monitor.contoso.com:3000/alerting/grafana/e22a4a64-021e-441f-8195-90cf84880ba0/view",
    "labels": {
      "__alert_rule_uid__": "e22a4a64-021e-441f-8195-90cf84880ba0",
      "__name__": "systemd_unit_state",
      "alertname": "Service Down SMS",
      "grafana_folder": "LinuxServices",
      "instance": "js303p.contoso.com",
      "job": "cnJsProd",
      "name": "lst-stdsumer.service",
      "state": "active",
      "team": "ops_sms",
      "teamsMsg": "yes",
      "type": "linuxService"
    }
  },

ts=2024-06-20T18:30:18.379Z caller=collector.go:72 level=error msg="Failed to convert extracted value to float64" path="{ [*] }" value="{\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumerncqa.service is down on ncjs303p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"0632146b88ffcd3b\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/e22a4a64-021e-441f-8195-90cf84880ba0/view\",\"labels\":{\"__alert_rule_uid__\":\"e22a4a64-021e-441f-8195-90cf84880ba0\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down SMS\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs303p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumerncqa.service\",\"state\":\"active\",\"team\":\"ops_sms\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team SMS\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:53.521-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ], [ var='B' labels={__name__=rabbitmq_queue_expected_consumers, instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ], [ var='C' labels={__name__=rabbitmq_queue_consumers, instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey, vhost=/} value=0 ], [ var='D' labels={instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ], [ var='E' labels={instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ]\",\"__values__\":\"{\\\"A\\\":1,\\\"B\\\":1,\\\"C\\\":0,\\\"D\\\":1,\\\"E\\\":1}\",\"description\":\"The import_loco-info_mg-grey queue, in upRabbitmqTest, has less than the expected number of consumers: 1\\n\\nCurrent number of consumers: 0\\n\",\"summary\":\"Missing consumers!\\n\"},\"endsAt\":\"2024-06-20T14:33:20.000-04:00\",\"fingerprint\":\"1e09b8c3d706375d\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/c63b5ad1-7a08-437a-841a-89fb8176cba2/view\",\"labels\":{\"__alert_rule_uid__\":\"c63b5ad1-7a08-437a-841a-89fb8176cba2\",\"alertname\":\"Consumer Threshold SMS\",\"grafana_folder\":\"RabbitMQ\",\"instance\":\"upq212p.contoso.com\",\"job\":\"upRabbitmqTest\",\"queue\":\"import_loco-info_mg-grey\",\"team\":\"ops_sms\",\"teamsMsg\":\"yes\",\"type\":\"rabbit\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team SMS\"}],\"startsAt\":\"2024-06-15T02:37:20.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"4d43178a-a178-46d6-8784-16f5169a08b4\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:25.453-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumer.service is down on ncjs303p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"5ea23fa964dc8159\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/dfbdc283-3001-4bb1-bd0e-c34409bc969b/view\",\"labels\":{\"__alert_rule_uid__\":\"dfbdc283-3001-4bb1-bd0e-c34409bc969b\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs303p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumer.service\",\"state\":\"active\",\"team\":\"ops\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team Mail\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:56.801-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ], [ var='B' labels={__name__=rabbitmq_queue_expected_consumers, instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ], [ var='C' labels={__name__=rabbitmq_queue_consumers, instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey, vhost=/} value=0 ], [ var='D' labels={instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ]\",\"__values__\":\"{\\\"A\\\":1,\\\"B\\\":1,\\\"C\\\":0,\\\"D\\\":1}\",\"description\":\"The import_loco-info_mg-grey queue, in upRabbitmqTest, has less than the expected number of consumers: 1\\n\\nCurrent number of consumers: 0\\n\",\"summary\":\"Missing consumers!\\n\"},\"endsAt\":\"2024-06-20T14:34:20.000-04:00\",\"fingerprint\":\"6182e7719587c9e9\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/cb987f83-6e6d-45ed-8490-7c3a21ff9091/view\",\"labels\":{\"__alert_rule_uid__\":\"cb987f83-6e6d-45ed-8490-7c3a21ff9091\",\"alertname\":\"Consumer Threshold\",\"grafana_folder\":\"RabbitMQ\",\"instance\":\"upq212p.contoso.com\",\"job\":\"upRabbitmqTest\",\"queue\":\"import_loco-info_mg-grey\",\"team\":\"ops\",\"teamsMsg\":\"yes\",\"type\":\"rabbit\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team Mail\"}],\"startsAt\":\"2024-06-15T02:37:20.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"4d43178a-a178-46d6-8784-16f5169a08b4\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:30:20.280-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumer.service is down on ncjs303p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"72a463a7136b79f8\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/e22a4a64-021e-441f-8195-90cf84880ba0/view\",\"labels\":{\"__alert_rule_uid__\":\"e22a4a64-021e-441f-8195-90cf84880ba0\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down SMS\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs303p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumer.service\",\"state\":\"active\",\"team\":\"ops_sms\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team SMS\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:53.521-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumer.service is down on ncjs313p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"8889f6eb84644221\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/e22a4a64-021e-441f-8195-90cf84880ba0/view\",\"labels\":{\"__alert_rule_uid__\":\"e22a4a64-021e-441f-8195-90cf84880ba0\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down SMS\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs313p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumer.service\",\"state\":\"active\",\"team\":\"ops_sms\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team SMS\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:53.521-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumerncqa.service is down on ncjs303p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"8a5cf9e41075c9fe\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/dfbdc283-3001-4bb1-bd0e-c34409bc969b/view\",\"labels\":{\"__alert_rule_uid__\":\"dfbdc283-3001-4bb1-bd0e-c34409bc969b\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs303p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumerncqa.service\",\"state\":\"active\",\"team\":\"ops\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team Mail\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:56.801-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumer.service is down on ncjs313p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"a4ccd4d8cec9f7f8\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/dfbdc283-3001-4bb1-bd0e-c34409bc969b/view\",\"labels\":{\"__alert_rule_uid__\":\"dfbdc283-3001-4bb1-bd0e-c34409bc969b\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs313p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumer.service\",\"state\":\"active\",\"team\":\"ops\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team Mail\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:56.801-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumerncqa.service is down on ncjs313p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"d5aa90051642c962\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/e22a4a64-021e-441f-8195-90cf84880ba0/view\",\"labels\":{\"__alert_rule_uid__\":\"e22a4a64-021e-441f-8195-90cf84880ba0\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down SMS\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs313p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumerncqa.service\",\"state\":\"active\",\"team\":\"ops_sms\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team SMS\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:53.521-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumerncqa.service is down on ncjs313p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"e71b73352f56deef\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/dfbdc283-3001-4bb1-bd0e-c34409bc969b/view\",\"labels\":{\"__alert_rule_uid__\":\"dfbdc283-3001-4bb1-bd0e-c34409bc969b\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs313p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumerncqa.service\",\"state\":\"active\",\"team\":\"ops\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team Mail\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:56.801-04:00\"}" err="value is not a valid number: {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumerncqa.service is down on ncjs303p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"0632146b88ffcd3b\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/e22a4a64-021e-441f-8195-90cf84880ba0/view\",\"labels\":{\"__alert_rule_uid__\":\"e22a4a64-021e-441f-8195-90cf84880ba0\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down SMS\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs303p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumerncqa.service\",\"state\":\"active\",\"team\":\"ops_sms\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team SMS\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:53.521-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ], [ var='B' labels={__name__=rabbitmq_queue_expected_consumers, instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ], [ var='C' labels={__name__=rabbitmq_queue_consumers, instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey, vhost=/} value=0 ], [ var='D' labels={instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ], [ var='E' labels={instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ]\",\"__values__\":\"{\\\"A\\\":1,\\\"B\\\":1,\\\"C\\\":0,\\\"D\\\":1,\\\"E\\\":1}\",\"description\":\"The import_loco-info_mg-grey queue, in upRabbitmqTest, has less than the expected number of consumers: 1\\n\\nCurrent number of consumers: 0\\n\",\"summary\":\"Missing consumers!\\n\"},\"endsAt\":\"2024-06-20T14:33:20.000-04:00\",\"fingerprint\":\"1e09b8c3d706375d\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/c63b5ad1-7a08-437a-841a-89fb8176cba2/view\",\"labels\":{\"__alert_rule_uid__\":\"c63b5ad1-7a08-437a-841a-89fb8176cba2\",\"alertname\":\"Consumer Threshold SMS\",\"grafana_folder\":\"RabbitMQ\",\"instance\":\"upq212p.contoso.com\",\"job\":\"upRabbitmqTest\",\"queue\":\"import_loco-info_mg-grey\",\"team\":\"ops_sms\",\"teamsMsg\":\"yes\",\"type\":\"rabbit\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team SMS\"}],\"startsAt\":\"2024-06-15T02:37:20.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"4d43178a-a178-46d6-8784-16f5169a08b4\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:25.453-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumer.service is down on ncjs303p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"5ea23fa964dc8159\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/dfbdc283-3001-4bb1-bd0e-c34409bc969b/view\",\"labels\":{\"__alert_rule_uid__\":\"dfbdc283-3001-4bb1-bd0e-c34409bc969b\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs303p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumer.service\",\"state\":\"active\",\"team\":\"ops\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team Mail\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:56.801-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ], [ var='B' labels={__name__=rabbitmq_queue_expected_consumers, instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ], [ var='C' labels={__name__=rabbitmq_queue_consumers, instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey, vhost=/} value=0 ], [ var='D' labels={instance=upq212p.contoso.com, job=upRabbitmqTest, queue=import_loco-info_mg-grey} value=1 ]\",\"__values__\":\"{\\\"A\\\":1,\\\"B\\\":1,\\\"C\\\":0,\\\"D\\\":1}\",\"description\":\"The import_loco-info_mg-grey queue, in upRabbitmqTest, has less than the expected number of consumers: 1\\n\\nCurrent number of consumers: 0\\n\",\"summary\":\"Missing consumers!\\n\"},\"endsAt\":\"2024-06-20T14:34:20.000-04:00\",\"fingerprint\":\"6182e7719587c9e9\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/cb987f83-6e6d-45ed-8490-7c3a21ff9091/view\",\"labels\":{\"__alert_rule_uid__\":\"cb987f83-6e6d-45ed-8490-7c3a21ff9091\",\"alertname\":\"Consumer Threshold\",\"grafana_folder\":\"RabbitMQ\",\"instance\":\"upq212p.contoso.com\",\"job\":\"upRabbitmqTest\",\"queue\":\"import_loco-info_mg-grey\",\"team\":\"ops\",\"teamsMsg\":\"yes\",\"type\":\"rabbit\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team Mail\"}],\"startsAt\":\"2024-06-15T02:37:20.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"4d43178a-a178-46d6-8784-16f5169a08b4\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:30:20.280-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumer.service is down on ncjs303p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"72a463a7136b79f8\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/e22a4a64-021e-441f-8195-90cf84880ba0/view\",\"labels\":{\"__alert_rule_uid__\":\"e22a4a64-021e-441f-8195-90cf84880ba0\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down SMS\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs303p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumer.service\",\"state\":\"active\",\"team\":\"ops_sms\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team SMS\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:53.521-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumer.service is down on ncjs313p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"8889f6eb84644221\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/e22a4a64-021e-441f-8195-90cf84880ba0/view\",\"labels\":{\"__alert_rule_uid__\":\"e22a4a64-021e-441f-8195-90cf84880ba0\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down SMS\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs313p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumer.service\",\"state\":\"active\",\"team\":\"ops_sms\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team SMS\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:53.521-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs303p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumerncqa.service is down on ncjs303p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"8a5cf9e41075c9fe\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/dfbdc283-3001-4bb1-bd0e-c34409bc969b/view\",\"labels\":{\"__alert_rule_uid__\":\"dfbdc283-3001-4bb1-bd0e-c34409bc969b\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs303p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumerncqa.service\",\"state\":\"active\",\"team\":\"ops\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team Mail\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:56.801-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumer.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumer.service is down on ncjs313p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"a4ccd4d8cec9f7f8\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/dfbdc283-3001-4bb1-bd0e-c34409bc969b/view\",\"labels\":{\"__alert_rule_uid__\":\"dfbdc283-3001-4bb1-bd0e-c34409bc969b\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs313p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumer.service\",\"state\":\"active\",\"team\":\"ops\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team Mail\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:56.801-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumerncqa.service is down on ncjs313p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"d5aa90051642c962\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/e22a4a64-021e-441f-8195-90cf84880ba0/view\",\"labels\":{\"__alert_rule_uid__\":\"e22a4a64-021e-441f-8195-90cf84880ba0\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down SMS\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs313p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumerncqa.service\",\"state\":\"active\",\"team\":\"ops_sms\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team SMS\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:53.521-04:00\"} {\"annotations\":{\"__orgId__\":\"1\",\"__value_string__\":\"[ var='A' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=0 ], [ var='B' labels={__name__=systemd_unit_state, instance=ncjs313p.contoso.com, job=ncJsTest, name=tsl-contsumerncqa.service, state=active, type=service} value=1 ]\",\"__values__\":\"{\\\"A\\\":0,\\\"B\\\":1}\",\"description\":\"tsl-contsumerncqa.service is down on ncjs313p.contoso.com\\n\",\"summary\":\"Service is down!\\n\"},\"endsAt\":\"2024-06-20T14:33:50.000-04:00\",\"fingerprint\":\"e71b73352f56deef\",\"generatorURL\":\"https://monitor.contoso.com:3000/alerting/grafana/dfbdc283-3001-4bb1-bd0e-c34409bc969b/view\",\"labels\":{\"__alert_rule_uid__\":\"dfbdc283-3001-4bb1-bd0e-c34409bc969b\",\"__name__\":\"systemd_unit_state\",\"alertname\":\"Service Down\",\"grafana_folder\":\"LinuxServices\",\"instance\":\"ncjs313p.contoso.com\",\"job\":\"ncJsTest\",\"name\":\"tsl-contsumerncqa.service\",\"state\":\"active\",\"team\":\"ops\",\"teamsMsg\":\"yes\",\"type\":\"linuxService\"},\"receivers\":[{\"active\":null,\"integrations\":null,\"name\":\"Ops Team Mail\"}],\"startsAt\":\"2024-06-14T15:00:50.000-04:00\",\"status\":{\"inhibitedBy\":[],\"silencedBy\":[\"be5935cd-c92e-4f8f-a67d-4f695c28107c\"],\"state\":\"suppressed\"},\"updatedAt\":\"2024-06-20T14:29:56.801-04:00\"}" metric="Desc{fqName: \"grafana_alerts_names\", help: \"grafana_alerts_names\", constLabels: {}, variableLabels: {instance,job,state,team,type,summary,alertname}}"

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