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

Remove labels on scraped Origins/Caches #1995

Open
CannonLock opened this issue Feb 6, 2025 · 1 comment
Open

Remove labels on scraped Origins/Caches #1995

CannonLock opened this issue Feb 6, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@CannonLock
Copy link
Contributor

Remove some of the metadata that currently is attached to metrics for scraped Origins and Caches.

  • instance
  • job
  • server_auth_url
  • server_lat
  • server_long
  • server_url
  • server_web_url

All of these are subject to change and when they do they create discontinuity in the time series which makes them harder to query.
I can get all this information via the api if needed, and since they are not interesting to filter they aren't used anyways.

For instance when I query process_start_time_seconds[1w] it gives me two time series for the same server because the Geo code got tweaked.

      {
        "metric": {
          "__name__": "process_start_time_seconds",
          "instance": "unl-cache.nationalresearchplatform.org:1094",
          "job": "origin_cache_servers",
          "server_auth_url": "https://unl-cache.nationalresearchplatform.org:8443",
          "server_lat": "40.8035",
          "server_long": "-96.6510",
          "server_name": "NEBRASKA_NRP_OSDF_CACHE",
          "server_type": "Cache",
          "server_url": "https://unl-cache.nationalresearchplatform.org:8443",
          "server_web_url": "https://unl-cache.nationalresearchplatform.org:1094"
        },
      },
      {
        "metric": {
          "__name__": "process_start_time_seconds",
          "instance": "unl-cache.nationalresearchplatform.org:1094",
          "job": "origin_cache_servers",
          "server_auth_url": "https://unl-cache.nationalresearchplatform.org:8443",
          "server_lat": "40.8161",
          "server_long": "-96.7036",
          "server_name": "NEBRASKA_NRP_OSDF_CACHE",
          "server_type": "Cache",
          "server_url": "https://unl-cache.nationalresearchplatform.org:8443",
          "server_web_url": "https://unl-cache.nationalresearchplatform.org:1094"
        },
@CannonLock CannonLock added the enhancement New feature or request label Feb 6, 2025
@CannonLock
Copy link
Contributor Author

CannonLock commented Feb 11, 2025

@patrickbrophy There might be a way that I can write the query better to remove these so that the timeseries get munged together.

I will poke at the a bit more before adding a milestone.

@CannonLock CannonLock added this to the parking-lot milestone Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants