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

proj field not exclusively projects #1635

Open
CannonLock opened this issue Oct 9, 2024 · 1 comment
Open

proj field not exclusively projects #1635

CannonLock opened this issue Oct 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@CannonLock
Copy link
Contributor

CannonLock commented Oct 9, 2024

When I am looking at the reported xrootd_transfer_bytes as aggregated by the director the proj that is reported does not align with the field description in the docs.

I expect:

Client’s User-Agent header when requesting the file. This is used to label the project name that accesses the file.

I get:

Python/3.12 aiohttp/3.9.5
check_http/v2.2 (monitoring-plugins 2.2)
curl/7.76.1
pelican-client/7.9.9 project/LIGO
...

It is not clear to me if I should be doing more parsing or if this field is falsely populated.

==========================================================================

Below I have included the query that revealed that and the proj field values as they currently exist.

Query: sum by (proj) (increase(xrootd_transfer_bytes{type!="write",proj!=""}[1d]))

Result:

{
  "status": "success",
  "data": {
    "resultType": "vector",
    "result": [
      {
        "metric": {
          "proj": "xrdcl-pelican/1.0"
        },
        "value": [1728503234.765, "35516993256.308914"
        ]
      },
      {
        "metric": {
          "proj": "Python/3.12 aiohttp/3.9.4"
        },
        "value": [1728503234.765, "0"
        ]
      },
      {
        "metric": {
          "proj": "Go-http-client/1.1"
        },
        "value": [1728503234.765, "386735.14599450305"
        ]
      },
      {
        "metric": {
          "proj": "pelican-client/7.10.1"
        },
        "value": [1728503234.765, "0"
        ]
      },
      {
        "metric": {
          "proj": "pelican-client/7.10.1 project/eht"
        },
        "value": [1728503234.765, "1057450997.4816345"
        ]
      },
      {
        "metric": {
          "proj": "pelican-client/7.10.5"
        },
        "value": [1728503234.765, "0"
        ]
      },
      {
        "metric": {
          "proj": "pelican-client/7.10.5 project/xenon"
        },
        "value": [1728503234.765, "0"
        ]
      },
      {
        "metric": {
          "proj": "pelican-client/7.10.7"
        },
        "value": [1728503234.765, "42.00729341908078"
        ]
      },
      {
        "metric": {
          "proj": "pelican-client/7.10.7 project/KOTO"
        },
        "value": [1728503234.765, "0"
        ]
      },
      {
        "metric": {
          "proj": "pelican-client/7.9.9"
        },
        "value": [1728503234.765, "0"
        ]
      },
      {
        "metric": {
          "proj": "pelican-client/7.9.9 project/LIGO"
        },
        "value": [1728503234.765, "0"
        ]
      },
      {
        "metric": {
          "proj": "curl/7.76.1"
        },
        "value": [1728503234.765, "0"
        ]
      },
      {
        "metric": {
          "proj": "Python/3.12 aiohttp/3.9.5"
        },
        "value": [1728503234.765, "0"
        ]
      },
      {
        "metric": {
          "proj": "check_http/v2.2 (monitoring-plugins 2.2)"
        },
        "value": [1728503234.765, "12073302831.782104"
        ]
      }
    ]
  }
}
@CannonLock CannonLock added the bug Something isn't working label Oct 9, 2024
@CannonLock
Copy link
Contributor Author

CannonLock commented Oct 10, 2024

@patrickbrophy This is what I was talking about yesterday.

I would like to only populate this field if we know the project and move the other value ( Client version? ) into another tag leaving the proj as null if unknown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants