Skip to content

ap1/v1/rules endpoints seems not consistent across instances #104

@thepeterstone

Description

@thepeterstone

Is this an Issue/Bug or a Feature Request?

[x] Issue or Bug
[ ] Feature Request

What is this issue about? Or why do you want this feature?

Rules definitions should be consistent no matter which node your request hits, but it seems that one node says the groups are empty, and another says the rules are uploaded correctly.

What version of Metric Store are you using?

1.4.2 tile for TAS

Please provide output that helps describe the issue:
grafana/8cfa72fa-8f66-4ffc-a319-fed1c6298cc5:/var/vcap/jobs/grafana/bin# curl -k https://10.0.4.46:8080/api/v1/rules --cert cert --key key | jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    41  100    41    0     0    401      0 --:--:-- --:--:-- --:--:--   401
{
  "status": "success",
  "data": {
    "groups": []
  }
}
grafana/8cfa72fa-8f66-4ffc-a319-fed1c6298cc5:/var/vcap/jobs/grafana/bin# curl -k https://10.0.4.47:8080/api/v1/rules --cert cert --key key | jq .
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7625    0  7625    0     0  60968      0 --:--:-- --:--:-- --:--:-- 61491
{
  "status": "success",
  "data": {
    "groups": [
      {
        "name": "heathwatchCalculatedMetrics",
        "file": "/var/vcap/store/metric-store/rule_managers/heathwatchCalculatedMetrics/rules.yml",
        "rules": [
          {
            "name": "Diego_AvailableFreeChunksDisk",
            "query": "sum(floor(CapacityRemainingDisk / 6144))",
            "labels": {
              "chunkSize": "6144",
...
Is there anything unique or special about your setup?

cc @fredwangwang

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Inbox

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions