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

InfluxDB 2.0: The "/scrapers" doesn't return Scrapers for specified organization [area/api] #13189

Closed
bednar opened this issue Apr 5, 2019 · 0 comments · Fixed by #13388
Closed
Assignees

Comments

@bednar
Copy link
Contributor

bednar commented Apr 5, 2019

When I trying get all scraper targets for specified organization then results contains scraper targets of organization that was used for authorization:

-> GET 
-> http://127.0.0.1:9999/api/v2/scrapers?orgID=03a71b9e791bc000

<- 200 
<- OK
<- {
	"links": {
		"self": "/api/v2/scrapers"
	},
	"configurations": [{
		"id": "03a71a21c9dbc000",
		"name": "InfluxDB scraper1554449638174-IT",
		"type": "prometheus",
		"url": "http://localhost:9999",
		"orgID": "03a71868e19bc000",
		"bucketID": "03a71868e19bc001",
		"organization": "my-org",
		"bucket": "my-bucket",
		"links": {
			"self": "/api/v2/scrapers/03a71a21c9dbc000",
			"bucket": "/api/v2/buckets/03a71868e19bc001",
			"organization": "/api/v2/orgs/03a71868e19bc000",
			"members": "/api/v2/scrapers/03a71a21c9dbc000/members",
			"owners": "/api/v2/scrapers/03a71a21c9dbc000/owners"
		}
	}, {
		"id": "03a71a29ec5bc000",
		"name": "InfluxDB scraper1554449646498-IT",
		"type": "prometheus",
		"url": "http://localhost:9999",
		"orgID": "03a71868e19bc000",
		"bucketID": "03a71868e19bc001",
		"organization": "my-org",
		"bucket": "my-bucket",
		"links": {
			"self": "/api/v2/scrapers/03a71a29ec5bc000",
			"bucket": "/api/v2/buckets/03a71868e19bc001",
			"organization": "/api/v2/orgs/03a71868e19bc000",
			"members": "/api/v2/scrapers/03a71a29ec5bc000/members",
			"owners": "/api/v2/scrapers/03a71a29ec5bc000/owners"
		}
	}, {
		"id": "03a71a2ea61bc000",
		"name": "InfluxDB scraper1554449651340-IT",
		"type": "prometheus",
		"url": "http://localhost:9999",
		"orgID": "03a71868e19bc000",
		"bucketID": "03a71868e19bc001",
		"organization": "my-org",
		"bucket": "my-bucket",
		"links": {
			"self": "/api/v2/scrapers/03a71a2ea61bc000",
			"bucket": "/api/v2/buckets/03a71868e19bc001",
			"organization": "/api/v2/orgs/03a71868e19bc000",
			"members": "/api/v2/scrapers/03a71a2ea61bc000/members",
			"owners": "/api/v2/scrapers/03a71a2ea61bc000/owners"
		}
	}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants