Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sol1 Ansible Roles
sol1-influxdb
Commits
fcdf13c5
Commit
fcdf13c5
authored
Jan 04, 2016
by
Ross McDonald
Browse files
Modified demo writes to use curl over Ansible (platform agnostic, and dependency free minus curl).
parent
dde0b0b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
tasks/demo.yml
View file @
fcdf13c5
...
...
@@ -9,11 +9,7 @@
when
:
db_listing.stdout.find("{{ influxdb_sample_database_name }}") == -1
-
name
:
Load demo data
uri
:
url
:
http://{{ influxdb_meta_hostname }}:{{ influxdb_http_port }}/write?db={{ influxdb_sample_database_name }}
method
:
POST
body
:
"
{{
influxdb_sample_measurement_name
}},host=server_{{
10
|
random
}},az=US{{
5
|
random
}}
value={{
100
|
random
}}"
status_code
:
204
command
:
"
curl
-XPOST
http://localhost:8086/write?db={{
influxdb_sample_database_name
}}
--data-binary
'{{
influxdb_sample_measurement_name
}},host=server_{{
10
|
random
}},az=US{{
5
|
random
}}
value={{
100
|
random
}}'"
with_sequence
:
start=1 end=10
Write
Preview
Supports
Markdown
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