Skip to content

Conversation

kannibalox
Copy link
Contributor

Screwed up the previous PR by force pushing and Github isn't letting me re-open it.

@pyroscope pyroscope self-assigned this Oct 26, 2017
@pyroscope
Copy link
Owner

Remind me on the weekend to take care of this… 👴

@kannibalox
Copy link
Contributor Author

@pyroscope ping

try:
# TODO: Use a session
requests.post(fluxurl, data=fluxjson, timeout=self.influxdb.timeout)
r = requests.post(fluxurl, data=datastr, timeout=self.influxdb.timeout)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use response or resp (no single-letter vars outside of comprehensions).

self.config.series_prefix, hostname, pid, view_name)
vstr += ','.join(['='.join([k, str(v)]) for k, v in values.items()])
datastr += vstr + "\n"
except (error.LoggableError, xmlrpc.ERRORS), exc:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as exc: (other places, too)

url = "{0}/write?db={1}".format(self.influxdb.url.rstrip('/'), self.config.dbname)

if self.influxdb.user and self.influxdb.password:
url += "?u={0}&p={1}".format(self.influxdb.user, self.influxdb.password)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/?/&/

@kannibalox
Copy link
Contributor Author

I no longer use influxdb, this has been replaced by #77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants