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

prometheus #2146

Closed
sysmat opened this issue Sep 29, 2021 · 2 comments
Closed

prometheus #2146

sysmat opened this issue Sep 29, 2021 · 2 comments
Assignees
Labels

Comments

@sysmat
Copy link

sysmat commented Sep 29, 2021

Environment

  • k6 version: v0.33.0
  • OS and version: Win 10
  • Docker version and image, if applicable:

Expected Behavior

Actual Behavior

  • some error message can't publish or this option is not supported

Steps to Reproduce the Problem

export let options = {
  stages: [
    { duration: '30s', target: 20 },
    { duration: '1m30s', target: 10 },
    { duration: '20s', target: 0 }
  ],
  thresholds: {
    http_req_duration: ['p(99)<1500'], // 99% of requests must complete below 1.5s
    'status is 200': ['p(99)<1500'], // 99% of requests must complete below 1.5s
  },
  ext: {
    loadimpact: {
      apm: [
        {
          provider: "prometheus",
          remoteWriteURL: "http://monitoring.example.com:9090/api/v1/write", // this is fake endpoint
          // optional parameters
          credentials: {
            token: "aaaaabbbb"
          },
          includeDefaultMetrics: true,
          metrics: ["http_req_sending", "my_rate", "my_gauge"],
          includeTestRunId: false,
          resampleRate: 3
        },
      ]
    },
  }
};
@yorugac
Copy link
Contributor

yorugac commented Oct 1, 2021

Hi @sysmat

Yes, that documentation you linked describes k6 Cloud-only solution. With a fake endpoint, the test should run as usual but with an error about metrics export. Is that what happens with your test?

FYI, we have k6 OSS solutions for remote write here:

But they are WIP and are not as stable at the moment.

@yorugac yorugac removed the bug label Oct 1, 2021
@na-- na-- added the question label Oct 4, 2021
@na--
Copy link
Member

na-- commented Oct 5, 2021

I'll close this, since we already have other issues that track prometheus support by k6: #1761, #343, #858

@na-- na-- closed this as completed Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants