Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
flowengine-docker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template
flowengine-docker
Commits
baa1e312
Commit
baa1e312
authored
Nov 01, 2023
by
marwan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change name scraper
parent
068a3821
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
bash-influx/init.bash
+1
-1
grafana/datasources/influxdb_ds.yaml
+1
-1
grafana/datasources/influxdb_influxQL_ds.yaml
+1
-1
No files found.
bash-influx/init.bash
View file @
baa1e312
...
...
@@ -76,7 +76,7 @@ echo "Organization ID: ${OrgID[@]}"
echo
"Schema Type:
${
SchemaType
[@]
}
"
#echo curl -X POST http://localhost:8086/api/v2/scrapers -H "Authorization: Token ${INFLUX_TOKEN}" -H "Content-Type: application/json" -d "{ \"allowInsecure\": false, \"orgID\": \"${OrgID[@]}\", \"bucketID\": \"${ID[@]}\", \"name\": \"scraper_metrics\", \"type\": \"prometheus\", \"url": \"http://localhost:8086/metrics\" }"
curl
-X
POST
${
URI
}
/api/v2/scrapers
-H
"Authorization: Token
${
INFLUX_TOKEN
}
"
-H
"Content-Type: application/json"
-d
"{
\"
allowInsecure
\"
: false,
\"
orgID
\"
:
\"
${
OrgID
[@]
}
\"
,
\"
bucketID
\"
:
\"
${
ID
[@]
}
\"
,
\"
name
\"
:
\"
s
t
ring
\"
,
\"
type
\"
:
\"
prometheus
\"
,
\"
url
\"
:
\"
http://localhost:8086/metrics
\"
}"
-i
curl
-X
POST
${
URI
}
/api/v2/scrapers
-H
"Authorization: Token
${
INFLUX_TOKEN
}
"
-H
"Content-Type: application/json"
-d
"{
\"
allowInsecure
\"
: false,
\"
orgID
\"
:
\"
${
OrgID
[@]
}
\"
,
\"
bucketID
\"
:
\"
${
ID
[@]
}
\"
,
\"
name
\"
:
\"
s
craper_monito
ring
\"
,
\"
type
\"
:
\"
prometheus
\"
,
\"
url
\"
:
\"
http://localhost:8086/metrics
\"
}"
-i
echo
----success----
...
...
grafana/datasources/influxdb_ds.yaml
View file @
baa1e312
...
...
@@ -11,4 +11,4 @@ datasources:
defaultBucket
:
admin
tlsSkipVerify
:
true
secureJsonData
:
token
:
nexiiottoken
token
:
656467070787877795065822
grafana/datasources/influxdb_influxQL_ds.yaml
View file @
baa1e312
...
...
@@ -11,4 +11,4 @@ datasources:
httpMode
:
GET
httpHeaderName1
:
'
Authorization'
secureJsonData
:
httpHeaderValue1
:
'
Token
nexiiottoken
'
httpHeaderValue1
:
'
Token
656467070787877795065822
'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment